repo_name stringlengths 6 69 | path stringlengths 6 178 | copies stringclasses 278
values | size stringlengths 4 7 | content stringlengths 671 917k | license stringclasses 15
values |
|---|---|---|---|---|---|
HannesTuhkala/saitohud | src/SaitoHUD/lua/saitohud/modules/hook_manager.lua | 3 | 4534 | -- SaitoHUD
-- Copyright (c) 2009-2010 sk89q <http://www.sk89q.com>
-- Copyright (c) 2010 BoJaN
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- $Id$
g_SaitoHUDHookMemory = g_SaitoHUDHookMemory or {}
------------------------------------------------------------
-- SaitoHUDHookManager
------------------------------------------------------------
local PANEL = {}
function PANEL:Init()
self.HookMemory = g_SaitoHUDHookMemory
self:SetTitle("SaitoHUD Hook Manager")
self:SetSizable(true)
self:SetSize(math.max(600, ScrW() * 0.8), 400)
self:ShowCloseButton(true)
self:SetDraggable(true)
-- Make list view
self.HookList = vgui.Create("DCustomListView", self)
self.HookList:SetLineClass("DListView_CheckboxLine")
self.HookList:AddColumn(""):SetFixedWidth(25)
self.HookList:AddColumn("Hook"):SetWide(50)
self.HookList:AddColumn("ID"):SetWide(100)
self.HookList:AddColumn("File"):SetWide(200)
self.RefreshBtn = vgui.Create("DButton", self)
self.RefreshBtn:SetText("Refresh")
self.RefreshBtn:SetWide(100)
self.RefreshBtn.DoClick = function()
self:PopulateHooks()
end
self:PopulateHooks()
end
function PANEL:PopulateHooks()
self.HookList:Clear()
for h, hooks in pairs(hook.GetTable()) do
for id, func in pairs(hooks) do
local info = debug.getinfo(func, 'S')
local path = (info.source or ""):gsub("^@", "")
local line = self.HookList:AddLine("", h, id, path)
line:SetChecked(true)
line.OnChange = function(line, checked)
if checked then
self:EnableHook(h, id)
else
self:DisableHook(h, id)
end
end
end
for id, func in pairs(self.HookMemory[h] or {}) do
local info = debug.getinfo(func, 'S')
local path = (info.source or ""):gsub("^@", "")
local line = self.HookList:AddLine("", h, id, path)
line:SetChecked(false)
line.OnChange = function(line, checked)
if checked then
self:EnableHook(h, id)
else
self:DisableHook(h, id)
end
end
end
end
end
function PANEL:DisableHook(name, id)
local hookList = hook.GetTable()[name]
if not hookList or not hookList[id] then
Derma_Message("The hook doesn't exist anymore.", "Missing Hook")
return
end
self.HookMemory[name] = self.HookMemory[name] or {}
self.HookMemory[name][id] = hookList[id]
hook.Remove(name, id)
end
function PANEL:EnableHook(name, id)
local hookList = hook.GetTable()[name]
if hookList and hookList[id] then
hookList[id] = nil
Derma_Message("The hook was recreated.", "Hook Recreated")
return
end
if not self.HookMemory[name] or not self.HookMemory[name][id] then
Derma_Message("The hook was never saved.", "Error")
return
end
local f = self.HookMemory[name][id]
hook.Add(name, id, f)
self.HookMemory[name][id] = nil
end
function PANEL:PerformLayout()
self.BaseClass.PerformLayout(self)
local wide = self:GetWide()
local tall = self:GetTall()
self.HookList:StretchToParent(8, 28, 8, 36)
self.RefreshBtn:SetPos(7, tall - self.RefreshBtn:GetTall() - 7)
end
vgui.Register("SaitoHUDHookManager", PANEL, "DFrame")
------------------------------------------------------------
function SaitoHUD.OpenHookManager()
local frame = vgui.Create("SaitoHUDHookManager")
frame:Center()
frame:MakePopup()
end
concommand.Add("hook_manager", function()
SaitoHUD.OpenHookManager()
end) | gpl-2.0 |
sundream/gamesrv | script/card/golden/card115008.lua | 1 | 2808 | --<<card 导表开始>>
local super = require "script.card.init"
ccard115008 = class("ccard115008",super,{
sid = 115008,
race = 1,
name = "寒冰箭",
type = 101,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 0,
shield = 0,
warcry = 0,
dieeffect = 0,
sneak = 0,
magic_hurt_adden = 0,
cure_to_hurt = 0,
recoverhp_multi = 1,
magic_hurt_multi = 1,
max_amount = 2,
composechip = 100,
decomposechip = 10,
atk = 0,
maxhp = 0,
crystalcost = 2,
targettype = 33,
halo = nil,
desc = "对一个角色造成3点伤害,并使其冻结",
effect = {
onuse = {magic_hurt=1,addbuff={freeze=1,lifecircle=2}},
ondie = nil,
onhurt = nil,
onrecoverhp = nil,
onbeginround = nil,
onendround = nil,
ondelsecret = nil,
onputinwar = nil,
onremovefromwar = nil,
onaddweapon = nil,
onputinhand = nil,
before_die = nil,
after_die = nil,
before_hurt = nil,
after_hurt = nil,
before_recoverhp = nil,
after_recoverhp = nil,
before_beginround = nil,
after_beginround = nil,
before_endround = nil,
after_endround = nil,
before_attack = nil,
after_attack = nil,
before_playcard = nil,
after_playcard = nil,
before_putinwar = nil,
after_putinwar = nil,
before_removefromwar = nil,
after_removefromwar = nil,
before_addsecret = nil,
after_addsecret = nil,
before_delsecret = nil,
after_delsecret = nil,
before_addweapon = nil,
after_addweapon = nil,
before_delweapon = nil,
after_delweapon = nil,
before_putinhand = nil,
after_putinhand = nil,
before_removefromhand = nil,
after_removefromhand = nil,
},
})
function ccard115008:init(conf)
super.init(self,conf)
--<<card 导表结束>>
end --导表生成
function ccard115008:load(data)
if not data or not next(data) then
return
end
super.load(self,data)
-- todo: load data
end
function ccard115008:save()
local data = super.save(self)
-- todo: save data
return data
end
function ccard115008:onuse(pos,targetid,choice)
local owner = self:getowner()
local target = owner:gettarget(targetid)
local magic_hurt = ccard115008.effect.onuse.magic_hurt
magic_hurt = self:get_magic_hurt(magic_hurt)
local buff = self:newbuff(ccard115008.effect.onuse.addbuff)
if targetid == owner.hero.id or targetid == owner.enemy.hero.id then
local lifecircle = buff.lifecircle or buff.freeze
target:setstate("freeze",lifecircle)
else
target:addbuff(buff)
end
target:addhp(-magic_hurt,self.id)
end
return ccard115008
| gpl-2.0 |
tltneon/NutScript | gamemode/core/libs/sh_attribs.lua | 2 | 3272 | if (!nut.char) then include("sh_character.lua") end
nut.attribs = nut.attribs or {}
nut.attribs.list = nut.attribs.list or {}
function nut.attribs.loadFromDir(directory)
for k, v in ipairs(file.Find(directory.."/*.lua", "LUA")) do
local niceName = v:sub(4, -5)
ATTRIBUTE = nut.attribs.list[niceName] or {}
if (PLUGIN) then
ATTRIBUTE.plugin = PLUGIN.uniqueID
end
nut.util.include(directory.."/"..v)
ATTRIBUTE.name = ATTRIBUTE.name or "Unknown"
ATTRIBUTE.desc = ATTRIBUTE.desc or "No description availalble."
nut.attribs.list[niceName] = ATTRIBUTE
ATTRIBUTE = nil
end
end
function nut.attribs.setup(client)
local character = client:getChar()
if (character) then
for k, v in pairs(nut.attribs.list) do
if (v.onSetup) then
v:onSetup(client, character:getAttrib(k, 0))
end
end
end
end
-- Add updating of attributes to the character metatable.
do
local charMeta = nut.meta.character
if (SERVER) then
function charMeta:updateAttrib(key, value)
local attribute = nut.attribs.list[key]
if (attribute) then
local attrib = self:getAttribs()
local client = self:getPlayer()
attrib[key] = math.min((attrib[key] or 0) + value, attribute.maxValue or nut.config.get("maxAttribs", 30))
if (IsValid(client)) then
netstream.Start(client, "attrib", self:getID(), key, attrib[key])
if (attribute.setup) then
attribute.setup(attrib[key])
end
end
end
hook.Run("OnCharAttribUpdated", client, self, key, value)
end
function charMeta:setAttrib(key, value)
local attribute = nut.attribs.list[key]
if (attribute) then
local attrib = self:getAttribs()
local client = self:getPlayer()
attrib[key] = value
if (IsValid(client)) then
netstream.Start(client, "attrib", self:getID(), key, attrib[key])
if (attribute.setup) then
attribute.setup(attrib[key])
end
end
end
hook.Run("OnCharAttribUpdated", client, self, key, value)
end
function charMeta:addBoost(boostID, attribID, boostAmount)
local boosts = self:getVar("boosts", {})
boosts[attribID] = boosts[attribID] or {}
boosts[attribID][boostID] = boostAmount
hook.Run("OnCharAttribBoosted", self:getPlayer(), self, attribID, boostID, boostAmount)
return self:setVar("boosts", boosts, nil, self:getPlayer())
end
function charMeta:removeBoost(boostID, attribID)
local boosts = self:getVar("boosts", {})
boosts[attribID] = boosts[attribID] or {}
boosts[attribID][boostID] = nil
hook.Run("OnCharAttribBoosted", self:getPlayer(), self, attribID, boostID, true)
return self:setVar("boosts", boosts, nil, self:getPlayer())
end
else
netstream.Hook("attrib", function(id, key, value)
local character = nut.char.loaded[id]
if (character) then
character:getAttribs()[key] = value
end
end)
end
function charMeta:getBoost(attribID)
local boosts = self:getBoosts()
return boosts[attribID]
end
function charMeta:getBoosts()
return self:getVar("boosts", {})
end
function charMeta:getAttrib(key, default)
local att = self:getAttribs()[key] or default
local boosts = self:getBoosts()[key]
if (boosts) then
for k, v in pairs(boosts) do
att = att + v
end
end
return att
end
end | mit |
ijuma/thrift | test/lua/test_basic_server.lua | 57 | 5557 | -- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may not use this file except in compliance
-- with the License. You may obtain a copy of the License at
-- http://www.apache.org/licenses/LICENSE-2.0
-- Unless required by applicable law or agreed to in writing,
-- software distributed under the License is distributed on an
-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-- KIND, either express or implied. See the License for the
-- specific language governing permissions and limitations
-- under the License.
require('ThriftTest_ThriftTest')
require('TSocket')
require('TFramedTransport')
require('TBinaryProtocol')
require('TServer')
require('liblualongnumber')
--------------------------------------------------------------------------------
-- Handler
TestHandler = ThriftTestIface:new{}
-- Stops the server
function TestHandler:testVoid()
self.__server:stop()
end
function TestHandler:testString(str)
return str
end
function TestHandler:testByte(byte)
return byte
end
function TestHandler:testI32(i32)
return i32
end
function TestHandler:testI64(i64)
return i64
end
function TestHandler:testDouble(d)
return d
end
function TestHandler:testBinary(by)
return by
end
function TestHandler:testStruct(thing)
return thing
end
--------------------------------------------------------------------------------
-- Test
local server
function teardown()
if server then
server:close()
end
end
function testBasicServer()
-- Handler & Processor
local handler = TestHandler:new{}
assert(handler, 'Failed to create handler')
local processor = ThriftTestProcessor:new{
handler = handler
}
assert(processor, 'Failed to create processor')
-- Server Socket
local socket = TServerSocket:new{
port = 9090
}
assert(socket, 'Failed to create server socket')
-- Transport & Factory
local trans_factory = TFramedTransportFactory:new{}
assert(trans_factory, 'Failed to create framed transport factory')
local prot_factory = TBinaryProtocolFactory:new{}
assert(prot_factory, 'Failed to create binary protocol factory')
-- Simple Server
server = TSimpleServer:new{
processor = processor,
serverTransport = socket,
transportFactory = trans_factory,
protocolFactory = prot_factory
}
assert(server, 'Failed to create server')
-- Serve
server:serve()
server = nil
end
testBasicServer()
teardown() | apache-2.0 |
rastin45/waqer12 | plugins/anti-spam11.lua | 7 | 2439 | local NUM_MSG_MAX = 11 -- Max number of messages per TIME_CHECK seconds
local TIME_CHECK = 11
local function kick_user(user_id, chat_id)
local chat = 'chat#id'..chat_id
local user = 'user#id'..user_id
chat_del_user(chat, user, function (data, success, result)
if success ~= 1 then
local text = 'I can\'t kick '..data.user..' but should be kicked'
send_msg(data.chat, '', ok_cb, nil)
end
end, {chat=chat, user=user})
end
local function run (msg, matches)
if msg.to.type ~= 'chat' then
return 'Anti-flood works only on channels'
else
local chat = msg.to.id
local hash = 'anti-flood:enabled:'..chat
if matches[1] == 'enable' then
redis:set(hash, true)
return 'Spam Limit Is now 11'
end
if matches[1] == 'disable' then
redis:del(hash)
return 'Spam limit is Not 11 now'
end
end
end
local function pre_process (msg)
-- Ignore service msg
if msg.service then
print('Service message')
return msg
end
local hash_enable = 'anti-flood:enabled:'..msg.to.id
local enabled = redis:get(hash_enable)
if enabled then
print('anti-flood enabled')
-- Check flood
if msg.from.type == 'user' then
-- Increase the number of messages from the user on the chat
local hash = 'anti-flood:'..msg.from.id..':'..msg.to.id..':msg-num'
local msgs = tonumber(redis:get(hash) or 0)
if msgs > NUM_MSG_MAX then
local receiver = get_receiver(msg)
local user = msg.from.id
local text = 'User '..user..' is Spaming I Will Fuck He/She'
local chat = msg.to.id
send_msg(receiver, text, ok_cb, nil)
if msg.to.type ~= 'chat' then
print("Flood in not a chat group!")
elseif user == tostring(our_id) then
print('I won\'t kick myself')
elseif is_sudo(msg) then
print('I won\'t kick an admin!')
else
-- kick user
-- TODO: Check on this plugin kicks
local bhash = 'kicked:'..msg.to.id..':'..msg.from.id
redis:set(bhash, true)
kick_user(user, chat)
end
msg = nil
end
redis:setex(hash, TIME_CHECK, msgs+1)
end
end
return msg
end
return {
description = 'Plugin to kick flooders from group.',
usage = {},
patterns = {
'^!antiflood11 (enable)$',
'^!antiflood11 (disable)$'
},
run = run,
privileged = true,
pre_process = pre_process
}
| gpl-2.0 |
Houshalter/lw-replay | irc/util.lua | 6 | 3065 | local setmetatable = setmetatable
local sub = string.sub
local byte = string.byte
local char = string.char
local table = table
local assert = assert
local tostring = tostring
local type = type
local random = math.random
module "irc"
--protocol parsing
function parse(line)
local prefix
local lineStart = 1
if line:sub(1,1) == ":" then
local space = line:find(" ")
prefix = line:sub(2, space-1)
lineStart = space
end
local _, trailToken = line:find("%s+:", lineStart)
local lineStop = line:len()
local trailing
if trailToken then
trailing = line:sub(trailToken + 1)
lineStop = trailToken - 2
end
local params = {}
local _, cmdEnd, cmd = line:find("(%S+)", lineStart)
local pos = cmdEnd + 1
while true do
local _, stop, param = line:find("(%S+)", pos)
if not param or stop > lineStop then
break
end
pos = stop + 1
params[#params + 1] = param
end
if trailing then
params[#params + 1] = trailing
end
return prefix, cmd, params
end
function parseNick(nick)
local access, name = nick:match("^([%+@]*)(.+)$")
return parseAccess(access or ""), name
end
function parsePrefix(prefix)
local user = {}
if prefix then
user.access, user.nick, user.username, user.host = prefix:match("^([%+@]*)(.+)!(.+)@(.+)$")
end
user.access = parseAccess(user.access or "")
return user
end
function parseAccess(accessString)
local access = {op = false, halfop = false, voice = false}
for c in accessString:gmatch(".") do
if c == "@" then access.op = true
elseif c == "%" then access.halfop = true
elseif c == "+" then access.voice = true
end
end
return access
end
--mIRC markup scheme (de-facto standard)
color = {
black = 1,
blue = 2,
green = 3,
red = 4,
lightred = 5,
purple = 6,
brown = 7,
yellow = 8,
lightgreen = 9,
navy = 10,
cyan = 11,
lightblue = 12,
violet = 13,
gray = 14,
lightgray = 15,
white = 16
}
local colByte = char(3)
setmetatable(color, {__call = function(_, text, colornum)
colornum = type(colornum) == "string" and assert(color[colornum], "Invalid color '"..colornum.."'") or colornum
return table.concat{colByte, tostring(colornum), text, colByte}
end})
local boldByte = char(2)
function bold(text)
return boldByte..text..boldByte
end
local underlineByte = char(31)
function underline(text)
return underlineByte..text..underlineByte
end
function checkNick(nick)
return nick:find("^[a-zA-Z_%-%[|%]%^{|}`][a-zA-Z0-9_%-%[|%]%^{|}`]*$") ~= nil
end
function defaultNickGenerator(nick)
-- LuaBot -> LuaCot -> LuaCou -> ...
-- We change a random charachter rather than appending to the
-- nickname as otherwise the new nick could exceed the ircd's
-- maximum nickname length.
local randindex = random(1, #nick)
local randchar = sub(nick, randindex, randindex)
local b = byte(randchar)
b = b + 1
if b < 65 or b > 125 then
b = 65
end
-- Get the halves before and after the changed character
local first = sub(nick, 1, randindex - 1)
local last = sub(nick, randindex + 1, #nick)
nick = first..char(b)..last -- Insert the new charachter
return nick
end
| mit |
sundream/gamesrv | script/card/neutral/card165033.lua | 1 | 2692 | --<<card 导表开始>>
local super = require "script.card.init"
ccard165033 = class("ccard165033",super,{
sid = 165033,
race = 6,
name = "霜狼督军",
type = 201,
magic_immune = 0,
assault = 0,
sneer = 0,
atkcnt = 1,
shield = 0,
warcry = 1,
dieeffect = 0,
sneak = 0,
magic_hurt_adden = 0,
cure_to_hurt = 0,
recoverhp_multi = 1,
magic_hurt_multi = 1,
max_amount = 2,
composechip = 100,
decomposechip = 10,
atk = 4,
maxhp = 4,
crystalcost = 5,
targettype = 0,
halo = nil,
desc = "战吼:战场上每有1个其他友方随从,便获得+1/+1。",
effect = {
onuse = {addbuff={addatk=1,addmaxhp=1,addhp=1}},
ondie = nil,
onhurt = nil,
onrecoverhp = nil,
onbeginround = nil,
onendround = nil,
ondelsecret = nil,
onputinwar = nil,
onremovefromwar = nil,
onaddweapon = nil,
onputinhand = nil,
before_die = nil,
after_die = nil,
before_hurt = nil,
after_hurt = nil,
before_recoverhp = nil,
after_recoverhp = nil,
before_beginround = nil,
after_beginround = nil,
before_endround = nil,
after_endround = nil,
before_attack = nil,
after_attack = nil,
before_playcard = nil,
after_playcard = nil,
before_putinwar = nil,
after_putinwar = nil,
before_removefromwar = nil,
after_removefromwar = nil,
before_addsecret = nil,
after_addsecret = nil,
before_delsecret = nil,
after_delsecret = nil,
before_addweapon = nil,
after_addweapon = nil,
before_delweapon = nil,
after_delweapon = nil,
before_putinhand = nil,
after_putinhand = nil,
before_removefromhand = nil,
after_removefromhand = nil,
},
})
function ccard165033:init(conf)
super.init(self,conf)
--<<card 导表结束>>
end --导表生成
function ccard165033:load(data)
if not data or not next(data) then
return
end
super.load(self,data)
-- todo: load data
end
function ccard165033:save()
local data = super.save(self)
-- todo: save data
return data
end
function ccard165033:onuse(pos,targetid,choice)
local owner = self:getowner()
local num = 0
for i,id in ipairs(owner.warcards) do
if self.id ~= id then
num = num + 1
end
end
if num == 0 then
return
end
local buff = self:newbuff(ccard165033.effect.onuse.addbuff)
for k,v in pairs(buff) do
if k ~= "lifecircle" then
buff[k] = v * num
end
end
self:addbuff(buff)
end
return ccard165033
| gpl-2.0 |
Sour/pfUI | env/locales_deDE.lua | 1 | 109317 | pfUI_locale["deDE"] = {}
pfUI_locale["deDE"]["class"] = {
["Hexenmeister"] = "WARLOCK",
["Krieger"] = "WARRIOR",
["Jäger"] = "HUNTER",
["Magier"] = "MAGE",
["Priester"] = "PRIEST",
["Druide"] = "DRUID",
["Paladin"] = "PALADIN",
["Schamane"] = "SHAMAN",
["Schurke"] = "ROGUE",
}
pfUI_locale["deDE"]["bagtypes"] = {
["Köcher"] = "QUIVER",
["Seelentasche"] = "SOULBAG",
["Behälter"] = "DEFAULT",
}
pfUI_locale["deDE"]["itemtypes"] = {
["INVTYPE_WAND"] = "Zauberstab",
["INVTYPE_THROWN"] = "Wurfwaffe",
["INVTYPE_GUN"] = "Schusswaffe",
["INVTYPE_CROSSBOW"] = "Armbrust",
["INVTYPE_PROJECTILE"] = "Projektil",
}
pfUI_locale["deDE"]["rangecheck"] = {
["PALADIN"] = "Heiliges Licht",
["PRIEST"] = "Blitzheilung",
["DRUID"] = "Heilende Berührung",
["SHAMAN"] = "Welle der Heilung",
}
pfUI_locale["deDE"]["hunterpaging"] = {
["MELEE"] = "Zurechtstutzen",
["RANGED"] = "Arkaner Schuss",
}
pfUI_locale["deDE"]["customcast"] = {
["AIMEDSHOT"] = "Gezielter Schuss",
["MULTISHOT"] = "Mehrfach-Schuss",
}
pfUI_locale["deDE"]["critters"] = {
'Otter',
'Käfer',
'Turmfledermaus',
'Gallkröte',
'Schwarze Ratte',
'Brauner Präriehund',
'Eingesperrter Hase',
'Eingesperrtes Schaf',
'Eingesperrtes Eichhörnchen',
'Eingesperrte Kröte',
'Katze',
'Huhn',
'Cleo',
'Kernratte',
'Kuh',
'Verwandelte Kuh',
'Geheiltes Reh',
'Geheilte Gazelle',
'Untergrundratte',
'Reh',
'Hund',
'Effsee',
'Umzauberte Untergrundratte',
'Reißzahn',
'Rehkitz',
'Feuerkäfer',
'Flauschie',
'Kleiner Frosch',
'Gazelle',
'Hase',
'Pferd',
'Titanische Kröte',
'Infiziertes Reh',
'Infiziertes Eichhörnchen',
'Dschungelkröte',
'Krakles Thermometer',
'Lady',
'Larve',
'Lavakrebs',
'Made',
'Wasserschlange',
'Maus',
'Mr. Bigglesworth',
'Nibbles',
'Noarm',
'Graumähne',
'Papagei',
'Verwandeltes Schwein',
'Piratenschatz Auslöser Meute',
'Verseuchtes Insekt',
'Verseuchte Made',
'Verseuchte Ratte',
'Pestlandtermite',
'Verwandeltes Huhn',
'Verwandelte Ratte',
'Präriehund',
'Kaninchen',
'Widder',
'Ratte',
'Reitwidder',
'Schabe',
'Salome',
'Fischschwarm',
'Skorpid',
'Verwandeltes Schaf',
'Schaf',
'Irrwisch der Shen\'dralar',
'Kränkliches Reh',
'Kränkliche Gazelle',
'Natter',
'Spinne',
'Spike',
'Eichhörnchen',
'Schwein',
'Besudelte Kakerlake',
'Besudelte Ratte',
'Kröte',
'Transporterfehlfunktion',
'Verwandelte Schildkröte',
'Schleicherpfote',
'Stimme von Elune',
'Waypoint',
'Irrwisch',
}
pfUI_locale["deDE"]["debuffs"] = {
["Peitschenkrautumschlingung"] = 18,
["Mondfeuer"] = 12,
["Feuerball"] = 8,
["Frostblitz"] = 9,
["Schlangenbiss"] = 15,
["Schattenwort: Schmerz"] = 18,
["Heiliges Feuer"] = 10,
["Pyroschlag"] = 12,
["Feuerbrand"] = 15,
["Verwunden"] = 21,
["Mal der Wildnis"] = 1800,
["Sternensplitter"] = 6,
["Verderbnis"] = 18,
["Wucherwurzeln"] = 27,
["Zerfetzen"] = 12,
["Blutung"] = 6,
["Erdrosseln"] = 18,
["Donnerknall"] = 30,
["Blutsauger"] = 5,
["Fluch der Schwäche"] = 120,
["Fluch der Pein"] = 24,
["Heiliges Wort: Seelenstärke"] = 1800,
["Dornen"] = 600,
["Gedankenschinden"] = 3,
["Berührung der Schwäche"] = 120,
["Verschlingende Seuche"] = 24,
["Verhexung der Schwäche"] = 120,
["Richturteil des Kreuzfahrers"] = 10,
["Flammenschock"] = 12,
["Demoralisierendes Gebrüll"] = 30,
["Kreuzfahrerstoß"] = 30,
["Rüstung schwächen"] = 30,
["Solarplexus"] = 4,
["Demoralisierungsruf"] = 30,
["Rüstung zerreißen"] = 30,
["Druckwelle"] = 6,
["Feuerbrandfalle"] = 15,
["Angriff des Frostbrands"] = 8,
["Arkane Intelligenz"] = 1800,
["Spöttischer Schlag"] = 6,
["Insektenschwarm"] = 12,
["Tödliches Gift V"] = 12,
["Starkes Spalten"] = 10,
["Krallenhieb"] = 9,
["Feenfeuer"] = 40,
["Frostnova"] = 8,
["Hammer der Gerechtigkeit"] = 6,
["Frostschock"] = 8,
["Psychischer Schrei"] = 8,
["Tödliches Gift IV"] = 12,
["Tödliches Toxin IV"] = 12,
["Seelendieb"] = 15,
["Mana entziehen"] = 5,
["Fluch der Tollkühnheit"] = 120,
["Verwandlung"] = 50,
["Wundgift"] = 15,
["Skorpidstich"] = 20,
["Mal des Jägers"] = 120,
["Feenfeuer (Tiergestalt)"] = 40,
["Lebensentzug"] = 30,
["Besudeltes Blut"] = 10,
["Richturteil des Lichts"] = 10,
["Tödlicher Stoß"] = 10,
["Schrei"] = 4,
["Skorpidgift"] = 10,
["Verwandlung: Schaf"] = 10,
["Furcht"] = 20,
["Kniesehne"] = 15,
["Hieb"] = 4,
["Anspringblutung"] = 18,
["Anspringen"] = 2,
["Tier besänftigen"] = 15,
["Festfrieren"] = 10,
["Rattennova"] = 10,
["Untote vertreiben"] = 20,
["Gedankenkontrolle"] = 60,
["Gedankenbesänftigung"] = 15,
["Untote fesseln"] = 50,
["Kopfnuss"] = 45,
["Tödliches Gift III"] = 12,
["Gedankenbenebelndes Gift III"] = 14,
["Tödliches Toxin III"] = 12,
["Fluch der Elemente"] = 300,
["Dämonensklave"] = 300,
["Kälte"] = 1.5,
["Zurechtstutzen"] = 10,
["Vipernbiss"] = 8,
["Eiskältefalle"] = 20,
["Sprengfalle"] = 20,
["Wildtier ängstigen"] = 20,
["Göttlicher Willen"] = 1800,
["Blutsturz"] = 15,
["Todesmantel"] = 3,
["Winterschlaf"] = 40,
["Richturteil der Weisheit"] = 10,
["Betäubung abfangen"] = 3,
["Gegenangriff"] = 5,
["Belästigen"] = 30,
["Stich des Flügeldrachen"] = 12,
["Rechtschaffene Schwächung"] = 10,
["Verwandlung: Huhn"] = 10,
["Eisketten"] = 20,
["Schlaf"] = 30,
["Tödliches Gift II"] = 12,
["Verlangsamen"] = 15,
["Zerhäckseln"] = 6,
["Nierenhieb"] = 1,
["Gedankenbenebelndes Gift II"] = 12,
["Verkrüppelndes Gift"] = 12,
["Tödliches Toxin II"] = 12,
["Fluch der Sprachen"] = 30,
["Schwarzer Pfeil"] = 30,
["Schreckensgeheul"] = 15,
["Fluch der Schatten"] = 300,
["Verbannen"] = 30,
["Frostzauber"] = 0.001,
["Verkrüppeln"] = 20,
["Gedankenverfall"] = 30,
["Wilder Angriff"] = 5,
["Fluch der Torheit"] = 120,
["Stasis"] = 15,
["Tödliches Gift"] = 12,
["Betäubender Stoß"] = 4,
["Gedankenbenebelndes Gift"] = 10,
["Ungeschick"] = 10,
["Schattenpirscher-Stich"] = 5,
["Fieser Trick"] = 5,
["Einhüllende Winde"] = 10,
["Schattenpirscher-Streich"] = 5,
["Seelen-Siphon"] = 10,
["Verwirrtheit"] = 15,
["Donnerknall"] = 10,
["Donnerkracher"] = 2.5,
["Überraschungs-Angriff"] = 2.5,
["Voodooverhexung"] = 120,
["Stille"] = 10,
["Arantir\'s Zorn"] = 6,
["Tödliches Toxin"] = 12,
["Einschlag"] = 2,
["Erfrierung"] = 5,
["Lange Benommenheit"] = 6,
["Rachebetäubung"] = 3,
["Heulende Klinge"] = 30,
["Schattenverwundbarkeit"] = 15,
["Blackout"] = 3,
["Dämonengabel"] = 25,
["Spinnenkuss"] = 10,
["Sturmschlag"] = 12,
["Kriegsdonner"] = 2,
["Betäuben"] = 2,
["Richturteil der Gerechtigkeit"] = 10,
["Fleddern"] = 2,
["Zerstückeln"] = 10,
["Arkane Wucht"] = 8,
["Fluch der Verdammnis"] = 60,
["Entwaffnen"] = 10,
["Umschlingen"] = 8,
["Gift"] = 30,
["Gespinst"] = 10,
["Wahre Erfüllung"] = 20,
["Käfer mutieren"] = 240,
["Käfer explodieren lassen"] = 4,
["Gezeiten-Glücksbringer"] = 3,
["Kaltauge"] = 15,
["Herausforderungsruf"] = 6,
["Wildtier zähmen"] = 20,
["Benommen"] = 4,
["Entkräftender Sturmangriff"] = 8,
["Blenden"] = 10,
["Magie entdecken"] = 120,
["Stalvans Fluch"] = 600,
["Eisklaue"] = 6,
["Eiskalter Atem"] = 12,
["Rasender Befehl"] = 10,
["Gletschergebrüll"] = 3,
["Eisiger Griff"] = 5,
["Abschreckknurren"] = 30,
["Fleisch zerreißen"] = 12,
["Kopfkracher"] = 20,
["Tollwut"] = 600,
["Thules Fluch"] = 240,
["Verheeren"] = 2,
["Peinigender Schmerz"] = 15,
["Schreddern"] = 12,
["Entzünden"] = 20,
["Berührung von Rabenklaue"] = 5,
["Blutgeheul"] = 15,
["Dunkler Schlamm"] = 300,
["Flammenpeitsche"] = 45,
["Egelgift"] = 40,
["Thules Wut"] = 120,
["Tödliches Egelgift"] = 45,
["Ätzgift"] = 30,
["Infizierte Wunde"] = 300,
["Gedanken verseuchen"] = 600,
["Wandernde Seuche"] = 300,
["Versklaven"] = 15,
["Nachtseeles Klagelied"] = 15,
["Faultier"] = 3,
["Schlamm"] = 3,
["Naraxis-Gespinst"] = 30,
["Schädelkracher"] = 2,
["Flüchtige Infektion"] = 120,
["Ohrenbetäubendes Kreischen"] = 8,
["Erdbindung"] = 5,
["Fackelexplosion"] = 30,
["Ablenkender Schmerz"] = 15,
["Sehnenriss"] = 8,
["Lähmendes Gift"] = 8,
["Kristallblick"] = 6,
["Kristallener Schlummer"] = 15,
["Matsch schleudern"] = 15,
["Giftwolke"] = 45,
["Zauberschutz von Laze"] = 3,
["Diskombobulieren"] = 12,
["Hochentwickelte Zielattrappe Spawneffekt"] = 10,
["Trelanes Eiskälteberührung"] = 12,
["Zielattrappe Spawneffekt"] = 5,
["Essenz extrahieren"] = 12,
["Umschließende Gespinste"] = 6,
["Welkberührung"] = 120,
["Kampfbefehl"] = 6,
["Erschütternder Schuss"] = 4,
["Ruf des Grabes"] = 60,
["Erz schmelzen"] = 20,
["Niederschlagen"] = 2,
["Vergiftete Harpune"] = 60,
["Herausforderndes Gebrüll"] = 6,
["Flüssiges Metall"] = 15,
["Thistlenettles Zug"] = 8,
["Drohruf"] = 8,
["Verfluchte Klinge"] = 20,
["Eiskälte"] = 15,
["Welkstoß"] = 8,
["Wellenbrecher"] = 10,
["Giftiger Katalysator"] = 120,
["Giftstachel"] = 45,
["Aufschlitzen"] = 8,
["Klauengriff"] = 4,
["Sicht verdunkeln"] = 12,
["Morastiger Matsch"] = 5,
["Rache der Knarzklauen"] = 6,
["Bedrohliches Knurren"] = 30,
["Bansheefluch"] = 12,
["Rüstung durchstechen"] = 20,
["Rückhand"] = 2,
["Fackelwurf"] = 30,
["Kodostampfen"] = 3,
["Schleichender Schimmelpilz"] = 60,
["Rhahk\'Zor-Zerschmettern"] = 3,
["Säurespritzer"] = 30,
["Verführung"] = 15,
["Smite-Stampfen"] = 10,
["Smite-Schmettern"] = 3,
["Axtwurf"] = 3,
["Bodenbeben"] = 2,
["Schmutz schleudern"] = 10,
["Vorarbeitergift"] = 60,
["Netz"] = 10,
["Schreckliches Kreischen"] = 4,
["Peitsche"] = 2,
["Stichschuss"] = 15,
["Kopfnuss"] = 2,
["Schwaches Gift"] = 12,
["Schlammtoxin"] = 45,
["Verderbte Stärke"] = 4,
["Verderbte Beweglichkeit"] = 4,
["Verderbte Intelligenz"] = 4,
["Verderbte Ausdauer"] = 4,
["Moosbedeckte Hände"] = 180,
["Moosbedeckte Füße"] = 180,
["Elende Kälte"] = 120,
["Totenbett"] = 10,
["Kranker Brühschleimer"] = 120,
["Dornenfluch"] = 180,
["Giftspucke"] = 10,
["Schattenhornfluch"] = 300,
["Unglaublicher Gestank"] = 6,
["Fluch der Herzschinder"] = 180,
["Verfallene Stärke"] = 300,
["Windstoß"] = 4,
["Verlassene Fertigkeiten"] = 300,
["Spukgeister"] = 300,
["Schleier des Schattens"] = 15,
["Kreischen der Vergangenheit"] = 5,
["Einschüchterung"] = 4,
["Fluch der Heilung"] = 180,
["Verpestende Fäulnis"] = 240,
["Arugals Gabe"] = 300,
["Toxinspeichel"] = 120,
["Wankelmut"] = 60,
["Teufelstampfen"] = 3,
["Schwäche aufdecken"] = 5,
["Teufelssaurierhaken"] = 10,
["Staubwolke"] = 12,
["Schwarzer Schlamm"] = 120,
["Schrumpfen"] = 120,
["Seelensauger"] = 10,
["Gemütliches Feuer"] = 60,
["Giftiger Stich"] = 15,
["Flasche Gift"] = 30,
["Infizierter Biss"] = 180,
["Erschrecken"] = 4,
["Heulende Wut"] = 300,
["Arugals Fluch"] = 10,
["Gedanken beherrschen"] = 10,
["Verhexung von Rabenklaue"] = 30,
["Klagender Toter"] = 6,
["Inferno-Muschelschale"] = 10,
["Gemeinsame Bande"] = 4,
["Donnerschock"] = 5,
["Verfallene Beweglichkeit"] = 300,
["Geist einfangen"] = 9,
["Sturmangriffsbetäubung"] = 1,
["Lähmendes Toxin"] = 60,
["Rauchbombe"] = 4,
["Naralex\' Alptraum"] = 15,
["Verlangsamendes Gift"] = 25,
["Stärke entziehen"] = 300,
["Rußschicht"] = 10,
["Tetanus"] = 1200,
["Willensverfall"] = 1200,
["Druidenschlummer"] = 15,
["Silithidenpocken"] = 1800,
["Mirkfallonfungus"] = 2700,
["Fieberhafte Erschöpfung"] = 1800,
["Greifende Ranken"] = 10,
["Uups!"] = 10,
["Schildschlag"] = 2,
["Ätzende Säure"] = 300,
["Tödliches Toxin+"] = 180,
["Verfluchtes Blut"] = 600,
["Gedankenbeben"] = 600,
["Vergifteter Schuss"] = 75,
["Schallexplosion"] = 10,
["Blutfluch"] = 600,
["Toben"] = 2.5,
["Falle"] = 10,
["Maschine steuern"] = 60,
["Mobilitätsstörung"] = 20,
["Parasit"] = 75,
["Erdengriff"] = 4,
["Frostblitz-Salve"] = 8,
["Fieberseuche"] = 180,
["Schnapptritt"] = 2,
["Schreckliches Geheul"] = 3,
["Niedriger Prankenhieb"] = 12,
["Heiliges Zerreißen"] = 60,
["Tiefer Schlaf"] = 10,
["Rauchwolke"] = 3,
["Ätzender Brühschlammer"] = 60,
["Schlammflossenfungus"] = 8,
["Flammen verstärken"] = 30,
["Sengende Flammen"] = 9,
["Flammenpuffer"] = 45,
["Tintenschauer"] = 15,
["Rissleuchtfeuer"] = 60,
["Bestrahlt"] = 60,
["Verseuchung"] = 60,
["Strahlung"] = -0.001,
["Phantomstoß"] = 20,
["Harsche Winde"] = 1,
["Magenta-Kappen-Erkrankung"] = 1200,
["Gallkröten-Infektion"] = 180,
["Chemie-Schälung"] = 10,
["Aufreißungen"] = 60,
["Schwaches Beben"] = 0.001,
["Durchdringendes Heulen"] = 6,
["Fluch des Auges"] = 120,
["Befrieden"] = 10,
["Hagelsturm"] = 3,
["Reflexionsfeld"] = 5,
["Waffe ergreifen"] = 15,
["Kampfnetz"] = 10,
["Verzögerung"] = 10,
["Hallendes Gebrüll"] = 20,
["Geysir"] = 5,
["Versteinern"] = 8,
["Eiszapfen"] = 10,
["Eisschlag"] = 10,
["Arthas\' Gabe"] = 180,
["Krankheitsschuss"] = 300,
["Zerschmettern"] = 2,
["Welkberührung"] = 180,
["Verhexung"] = 10,
["Sul\'thraze"] = 15,
["Rüstung durchstechen"] = 30,
["Elektrifiziertes Netz"] = 10,
["Steif frieren"] = 10,
["Fluch der Schreckensfelsoger"] = 60,
["Entkräften"] = 120,
["Dampfstrahl"] = 10,
["Seuchenwolke"] = 240,
["Muskelriss"] = 5,
["Infiziertes Rückgrat"] = 300,
["Schaden verstärken"] = 10,
["Virulentes Gift"] = 30,
["Fluch von Tuten\'kash"] = 900,
["Säure von Hakkar"] = 60,
["Verhexung von Jammal\'an"] = 10,
["Gebrechlichkeit"] = 60,
["Eiskalte Berührung"] = 8,
["Ghulfäulnis"] = 600,
["Grollflosse"] = 20,
["Frostschuss"] = 10,
["Winterkälte"] = 15,
["Tiefe Wunde"] = 12,
["Bodenzerkracher"] = 3,
["Erschütternder Schlag"] = 5,
["Wahnsinn verursachen"] = 6,
["Tiefer Schlummer"] = 15,
["Eitriger Gestank"] = 10,
["Schrumpfstrahl"] = 20,
["Rüstung auflösen"] = 20,
["Net-o-Matik"] = 10,
["Gnomen-Gedankenkontrollkappe"] = 20,
["Gnomentodesstrahl"] = 4,
["Tollkühnes Stürmen"] = 30,
["Fluch der Totenwaldfelle"] = 120,
["Hakennetz"] = 10,
["Unerträgliche Schmerzen"] = 180,
["Terrorknurren"] = 15,
["Magmaspritzer"] = 30,
["Welkendes Gift"] = 180,
["Faust des Ragnaros"] = 5,
["Dämon zerschmettern"] = 5,
["Erschreckendes Gebrüll"] = 5,
["Kopfzerkracher"] = 2,
["Blutblütengift"] = 30,
["Tunnelgräbersäure"] = 30,
["Dickflüssigkeitsfieber"] = 600,
["Säureschleim"] = 30,
["Klebriger Teer"] = 4,
["Riposte"] = 6,
["Geisterhafter Stoß"] = 7,
["Heimtückisches Zerfleischen"] = 15,
["Krabblergift"] = 300,
["Abtrennung"] = 300,
["Stachelstich"] = 300,
["Baggererkrankung"] = 300,
["Auraschock"] = 300,
["Eitriges Enzym"] = 300,
["Gifthautsekret"] = 30,
["Abwerfender Draufschlag"] = 0.001,
["Mal der Flammen"] = 120,
["Kristallschwächer"] = 120,
["Rüstung spalten"] = 20,
["Betäubender Schlag"] = 8,
["Vampirumarmung"] = 60,
["Einhüllendes Gespinst"] = 8,
["Gespinstexplosion"] = 10,
["Erbarmungsloses Gift"] = 120,
["Schwärender Ausschlag"] = 1800,
["Durchbohren"] = 9,
["Einstechen"] = 10,
["Einsperren"] = 30,
["Verlangsamender Brühschlammer"] = 10,
["Fluch der Feuerbrand"] = 300,
["Axt werfen"] = 2,
["Erschauerndes Gebrüll"] = 5,
["Kadaverwürmer"] = 600,
["Entkräftende Berührung"] = 120,
["Spukphantome"] = 300,
["Stichschatten"] = 1800,
["Seelenzapfer"] = 12,
["Seuchennebel"] = 8,
["Schwarze Fäulnis"] = 1800,
["Madenschleim"] = 1800,
["Hammer des Richters"] = 10,
["Ghulseuche"] = 1800,
["Schwärende Bisse"] = 1800,
["Schleimdurchfall"] = 1800,
["Muttermilch"] = -0.001,
["Einschüchterndes Gebrüll"] = 8,
["Benebelnder Schmerz"] = 10,
["Tod durch Ertrinken"] = 300,
["Besudelte Gedanken"] = 600,
["Eitrige Galle"] = 45,
["Macht von Shahram"] = 5,
["Segen des Kriegshäuptlings"] = 3600,
["Verzauberndes Schlaflied"] = 10,
["Blitzeis"] = 5,
["Großbrand"] = 10,
["Bansheekreischen"] = 5,
["Eisgrabmal"] = 10,
["Kahlholz-Fluch"] = 60,
["Wasseratmung"] = 600,
["Große Unsichtbarkeit entdecken"] = 600,
["Elixier der Riesen"] = 1200,
["Gesundheit II"] = 3600,
["Beweglichkeit VIII"] = 3600,
["Rüstung IV"] = 3600,
["Großes Arkanelixier"] = 1800,
["Feuermeer"] = 30,
["Rüstungszertrümmerung"] = 45,
["Eiskälteklaue"] = 5,
["Hirnhacker"] = 30,
["Tödlicher Stich"] = 12,
["Sickernde Weide"] = 30,
["Madenglibber"] = 6,
["Fluch der Rache"] = 900,
["Besitz ergreifen"] = 120,
["Verbrühen"] = 4,
["Kreuzfahrer-Hammer"] = 4,
["Brennende Winde"] = 8,
["Knockout"] = 6,
["Fangzahn der Kristallspinne"] = 10,
["Balnazzar - Transformieren - Betäuben"] = 5,
["Beherrschung"] = 15,
["Wunde"] = 25,
["Luftblasen"] = 10,
["Knochenverhüttung"] = 20,
["Schattenblitz"] = 6,
["Brandzeichen der Schädelesse"] = 30,
["Hand von Thaurissan"] = 5,
["Krückstock des Sklaventreibers"] = 30,
["Malowns Zerschmetterer"] = 2,
["Timmys Fluch"] = 60,
["Seelenbrecher"] = 30,
["Wehklagen der Banshee"] = 12,
["Marduks Fluch"] = 5,
["Entweihende Aura"] = 5,
["Fluch der Seuchenratte"] = 14,
["Erkrankte Spucke"] = 10,
["Zerreißendes Spalten"] = 30,
["Erdbohrersäure"] = 30,
["Feuerschwall"] = 3,
["Eiskühlenova"] = 10,
["Nachwirkung"] = 5,
["Fluch des gefallenen Magram"] = 900,
["Brennendes Adrenalin"] = 20,
["Fluch der Erschöpfung"] = 12,
["Dunkle Seuche"] = 90,
["Verhinderungsruf"] = 60,
["Absitzschuss"] = 2,
["Absitzschlag"] = 0.001,
["Tritt - zum Schweigen gebracht"] = 2,
["Dröhnendes Gebrüll"] = 3,
["Gegenzauber - zum Schweigen gebracht"] = 4,
["Schildhieb - zum Schweigen gebracht"] = 3,
["Fluch von Hakkar"] = 120,
["Schwächende Krankheit"] = 30,
["Gesundheit wegsaugen"] = 15,
["Fluch des Dunkelmeisters"] = 60,
["Taelans Leiden"] = 2,
["Feuerschutz"] = 3600,
["Dunkle Energie"] = 300,
["Gift der Atal\'ai"] = 30,
["Frost"] = 10,
["Sturmblitz"] = 5,
["Einfangen"] = 5,
["Verbessertes Zurechtstutzen"] = 5,
["Erdstampfer"] = 5,
["Uralter Schrecken"] = 900,
["Ausbrennende Flammen"] = 900,
["Welkende Hitze"] = 900,
["Uralte Verzweiflung"] = 5,
["Uralte Hysterie"] = 900,
["Seelenbrand"] = 16,
["Verbrennen"] = 60,
["Panik"] = 8,
["Verbesserter erschütternder Schuss"] = 3,
["Magmaspucke"] = 30,
["Ätzende Säurespucke"] = 10,
["Gedanken vergiften"] = 15,
["Verbesserter Skorpidstich"] = 20,
["Magmafesseln"] = 15,
["Streuschuss"] = 4,
["Eisklauenbären zähmen"] = 20,
["Rüstungsschmelze"] = 60,
["Flammen anstacheln"] = 60,
["Mana entzünden"] = 300,
["Großen Klippeneber zähmen"] = 20,
["Wilde Attacke"] = 4,
["Schneeleoparden zähmen"] = 900,
["Erwachsenen Ebenenschreiter zähmen"] = 900,
["Präriepirscher zähmen"] = 900,
["Sturzflieger zähmen"] = 900,
["Scheckigen Terroreber zähmen"] = 900,
["Brandungskriecher zähmen"] = 900,
["Gepanzerten Skorpid zähmen"] = 900,
["Waldweberlauerer zähmen"] = 900,
["Pirschenden Nachtsäbler zähmen"] = 900,
["Strigidkreischer zähmen"] = 900,
["Drohende Verdammnis"] = 10,
["Lucifrons Fluch"] = 300,
["Shazzrahs Fluch"] = 300,
["Gehennas Fluch"] = 300,
["Wassergestank"] = 3600,
["Schreckenskralle"] = 60,
["Sägebiss"] = 30,
["Hand von Ragnaros"] = 2,
["Unheiliger Fluch"] = 12,
["Einhüllende Flammen"] = 6,
["Buße"] = 6,
["Lebende Bombe"] = 8,
["Schleichende Pest"] = 20,
["Statische Leitung"] = 15,
["Golemaggs Vertrauen"] = 2,
["Elementarfeuer"] = 8,
["Windschnitter"] = 20,
["Magiereflexion"] = 10,
["Ätzende Giftspucke"] = 10,
["Schlafwandeln"] = 10,
["Gerechtigkeit des Hochlords"] = 5,
["Sturmblitz"] = 8,
["Fluch der Stämme"] = 1800,
["Rüstung zerschmettern"] = 30,
["Mal von Kazzak"] = 60,
["Eitriger Atem"] = 30,
["Verdrehte Reflexion"] = 45,
["Leereblitz"] = 10,
["Giftblitz"] = 10,
["Larvenglibber"] = 6,
["Schadenschild"] = 10,
["Kühlung"] = 30,
["Griff des Befehls"] = 10,
["Aura des Kampfes"] = 10,
["Verderbte Furcht"] = 2,
["Toxische Salve"] = 15,
["Dornensalve"] = 2,
["Schlachtgewand der Macht"] = 6,
["Abstoßendes Starren"] = 8,
["Hexenmeisterschrecken"] = 2,
["Tornado"] = 4,
["Zorn der Winde"] = 12,
["Blauer Strahl"] = -0.001,
["Große Verwandlung"] = 20,
["Brutkraft: Rot"] = 5,
["Brutkraft: Grün"] = 6,
["Brutkraft: Blau"] = 6,
["Brutkraft: Bronze"] = 5,
["Eisblitz"] = 2,
["Fluch der Machtlosigkeit"] = 120,
["Springflut"] = 4,
["Untertauchen"] = 60,
["Mal der Detonation"] = 30,
["Eisnova"] = 2,
["Verletzender Schlag"] = 5,
["Eskhandars Krallenhieb"] = 30,
["Opfern"] = 8,
["Manaschwäche"] = 10,
["Welken"] = 21,
["Schattenbefehl"] = 15,
["Schattenflamme"] = 10,
["Inferno Effekt"] = 2,
["Super Schrumpfstrahl"] = 20,
["Tödliches Spalten"] = 5,
["Schlachtruf der Drachentöter"] = 7200,
["Auge von Immol\'thar"] = 4,
["Gepflanzt"] = 3,
["Feuerverwundbarkeit"] = 30,
["Seuche"] = 40,
["Schlachtstandarte"] = 3,
["Segen des schwarzen Marsches"] = 6,
["Brutgebrechen: Blau"] = 600,
["Brutgebrechen: Schwarz"] = 600,
["Brutgebrechen: Rot"] = 600,
["Brutgebrechen: Grün"] = 600,
["Brutgebrechen: Bronze"] = 600,
["Chromatische Mutation"] = 300,
["Frostbeulen"] = 15,
["Ritualkerzenaura"] = 6,
["Demoralisieren"] = 30,
["Grässlicher Schrecken"] = 5,
["Zeitraffer"] = 8,
["Fleisch entzünden"] = 60,
["Schattenschwinges Schatten"] = 8,
["Berserker"] = 30,
["Ungewollte Transformation"] = 30,
["Verdorbene Heilung"] = 30,
["Wilde Magie"] = 30,
["Paralysieren"] = 30,
["Einhüllend"] = 6,
["Segen des Siphons"] = 30,
["Verdorbene Totems"] = 30,
["Essenz des Roten"] = 180,
["Blutheilung"] = 6,
["Wilde Verwandlung"] = 20,
["Zauber-Verwundbarkeit"] = 5,
["Verbesserte Kniesehne"] = 5,
["Schmarotzerschlange"] = 10,
["Kampfrausch"] = 15,
["Einlullendes Gift"] = 8,
["Axtwirbel"] = 2,
["Wirbeltrip"] = 2,
["Giftblitzsalve"] = 10,
["Einhüllende Gespinste"] = 8,
["Peitschenkrautwurzeln"] = 15,
["Wille von Hakkar"] = 20,
["Arlokks Mal"] = 120,
["Zaubersperre"] = 3,
["Gehirnwäsche"] = -0.001,
["Irrbilder von Jin\'do"] = 20,
["Bedrohlicher Blick"] = 6,
["Hirnschaden"] = 30,
["Geist von Zandalar"] = 7200,
["Berauschendes Gift"] = 120,
["Netzwirbel"] = 7,
["Aspekt von Mar\'li"] = 6,
["Aspekt von Jeklik"] = 5,
["Aspekt von Venoxis"] = 10,
["Aspekt von Arlokk"] = 2,
["Höllenbestienfeuer"] = -0.001,
["Verderbnis der Erde"] = 10,
["Stinkfalle"] = 120,
["Schlotternachtsschreck"] = 6,
["Stampfen"] = 2,
["Schlachtruf"] = 900,
["Feuerschwäche"] = 45,
["Frostschwäche"] = 45,
["Naturschwäche"] = 45,
["Arkanschwäche"] = 45,
["Schattenschwäche"] = 45,
["Juckreiz"] = 8,
["Katalysator des Zaraschwarms"] = 30,
["Schwingen der Verzweiflung"] = 6,
["Monstrositätenspucke"] = 10,
["Verzehren"] = 15,
["Schockwelle"] = 2,
["Angriffsreihenfolge"] = 10,
["Aura des Befehls"] = 30,
["Tödliche Wunde"] = 15,
["Schwanzpeitscher"] = 2,
["Giftstachel"] = 10,
["Reinigung"] = 2,
["Mentale Kontrolle"] = 120,
["Rache"] = 600,
["Seelenkorruption"] = 15,
["Alptraumkreatur"] = 30,
["Furchterregendes Kreischen"] = 6,
["Massenheilung"] = 12,
["Eberangriff"] = 1,
["Manabrand"] = 8,
["Säurespucke"] = 30,
["Veknisskatalysator"] = 30,
["Vorgeschmack des Wahnsinns"] = 3,
["Geflüster des C\'Thun"] = 20,
["Durchdringendes Kreischen"] = 6,
["Schattenbrand"] = 5,
["Säurespritzer"] = 10,
["Mondfestglück!"] = 1800,
["Mondfestglück"] = 1800,
["Neutralisieren"] = 8,
["Schlag des Ungleichgewichts"] = 6,
["Aura der Furcht"] = 3,
["Fluch des Elementarlords"] = 60,
["Entweiht"] = 10,
["Ektoplasmadestillierer"] = 3,
["Dirks intelligentes Gift"] = 30,
["Fünf-Fettfinger-Pressur-Herzexplosionstechnik"] = 30,
["Tritt"] = 6,
["Detonierendes Mana"] = 5,
["Schattenmal"] = 15,
["Krankheitsstoß"] = 20,
["Schleimstrahl"] = 3,
["Mutagene Injektion"] = 10,
["AE Charm"] = 300,
["Verwandlung: Kuh"] = 50,
["Verwandlung: Schildkröte"] = 50,
["Verwandlung: Schwein"] = 50,
["Berührung des Flammenschockers"] = 3,
["Rache des Flammenschockers"] = 2,
["Wirbelwind"] = 2,
["Sargeras Odem"] = 90,
["Schleier der Dunkelheit"] = 7,
["Blinzeln"] = 1,
["Fehlgeschlagene Verwandlung"] = 8,
["Ketten von Kel\'Thuzad"] = 20,
["Aura der Pein"] = 8,
["Giftangriff"] = 9,
["Spinnennetz"] = 1,
["Blutzapfer"] = -0.001,
["Frostaura"] = 5,
["Lebenssauger"] = 12,
["Seele einfangen"] = 60,
["Auferweckung der Seele"] = 1800,
["Umarmung der Witwe"] = 30,
["Elementarverwundbarkeit"] = 30,
["Nekrotisches Gift"] = 30,
["Heuschreckenschwarm"] = 6,
["Mal von Korth\'azz"] = 75,
["Mal von Blaumeux"] = 75,
["Mal von Morgraine"] = 75,
["Mal von Zeliek"] = 75,
["Rechtschaffenes Feuer"] = 8,
["Verwesendes Fleisch"] = 10,
["Hoffnungslos"] = -0.001,
["Stygischer Griff"] = 5,
["Unausweichliches Schicksal"] = 10,
["Fluch des Seuchenfürsten"] = 10,
["Zorn des Seuchenfürsten"] = 10,
["Pilzwucher"] = 90,
["Feuerfestverstärkung"] = 3600,
["Säuresalve"] = 25,
["Gespinstschauer"] = 10,
["Feuerfestfuror"] = 3600,
["Giftaura"] = 12,
["Schwächefieber"] = 21,
["Würgeseuche"] = 300,
["Schleimexplosion"] = 5,
["Rasender Sturzflug"] = 2,
["Biss der Fäulnis"] = 30,
["Adlerklaue"] = 15,
["Stärkungszauber"] = -0.001,
["Schleimblitz"] = 6,
}
pfUI_locale["deDE"]["interrupts"] = {
["Schildhieb"] = true,
["Zuschlagen"] = true,
["Tritt"] = true,
["Erdschock"] = true,
["Kriegsdonner"] = true,
["Erschütternder Schlag"] = true,
["Sturmangriffsbetäubung"] = true,
["Betäubung abfangen"] = true,
["Hammer der Gerechtigkeit"] = true,
["Fieser Trick"] = true,
["Solarplexus"] = true,
["Nierenhieb"] = true,
["Stille"] = true,
["Gegenzauber"] = true,
["Gegenzauber - zum Schweigen gebracht"] = true,
["Hieb"] = true,
["Furcht"] = true,
["Schreckensgeheul"] = true,
["Psychischer Schrei"] = true,
["Drohruf"] = true,
["Sternenfeuerbetäubung"] = true,
["Rachebetäubung"] = true,
["Verbesserter erschütternder Schuss"] = true,
["Einschlag"] = true,
["Feuerschwall"] = true,
["Blackout"] = true,
["Betäuben"] = true,
["Streitkolbenbetäubung"] = true,
["Erderschütterer"] = true,
["Buße"] = true,
["Streuschuss"] = true,
["Blenden"] = true,
["Winterschlaf"] = true,
["Stich des Flügeldrachen"] = true,
["Raue Kupferbombe"] = true,
["Große Kupferbombe"] = true,
["Kleine Bronzebombe"] = true,
["Große Bronzebombe"] = true,
["Große Eisenbombe"] = true,
["Mithrilschrapnellbombe"] = true,
["Hochexplosive Bombe"] = true,
["Dunkeleisenbombe"] = true,
["Eisengranate"] = true,
["M73 Schrapnellgranate"] = true,
["Thoriumgranate"] = true,
["Goblin-Mörser"] = true,
}
pfUI_locale["deDE"]["spells"] = {
['Eisenherz nimmt wieder Huhngestalt an'] = {t=1000, icon="Ability_Racial_BearForm" },
['Monstrositätenspucke'] = {t=2500, icon="Spell_Nature_CorrosiveBreath" },
['Säure von Hakkar'] = {t=1000, icon="Spell_Nature_Acid_01" },
['Säurespucke'] = {t=3000, icon="Spell_Nature_Acid_01" },
['Säurespritzer'] = {t=1000, icon="INV_Drink_06" },
['Säurespritzer'] = {t=2000, icon="Spell_Nature_Acid_01" },
['Verteidigung aktivieren'] = {t=5000, icon="Temp" },
['Einstellung anpassen'] = {t=2000, icon="INV_Gizmo_01" },
['Gezielter Schuss'] = {t=3000, icon="INV_Spear_07" },
['Schaden verstärken'] = {t=2000, icon="Spell_Nature_AbolishMagic" },
['Flammen verstärken'] = {t=1000, icon="Spell_Fire_Fireball" },
['Geist der Ahnen'] = {t=10000, icon="Spell_Nature_Regenerate" },
['Antimagieschild'] = {t=2000, icon="Spell_Shadow_AntiMagicShell" },
['Salbe auftragen'] = {t=1300, icon="Temp" },
['Verführungsdrüse anwenden'] = {t=2500, icon="INV_Misc_Bowl_01" },
['Den Köder anwenden'] = {t=4000, icon="Temp" },
['Aquadynamischer Fischanlocker'] = {t=5000, icon="INV_Misc_Orb_03" },
['Aquadynamische Fischlinse'] = {t=5000, icon="INV_Misc_Spyglass_01" },
['Rune des geschmolzenen Kerns löschen'] = {t=1000, icon="Temp" },
['Arkanblitz'] = {t=1000, icon="Spell_Arcane_StarFire" },
['Arkane Bombe'] = {t=1500, icon="Spell_Holy_Silence" },
['Arkane Explosion'] = {t=1500, icon="Spell_Nature_WispSplode" },
['Arkaner Geist II'] = {t=1000, icon="Spell_Holy_MagicalSentry" },
['Arkaner Geist III'] = {t=1000, icon="Spell_Holy_MagicalSentry" },
['Arkaner Geist IV'] = {t=1000, icon="Spell_Holy_MagicalSentry" },
['Arkaner Geist V'] = {t=1000, icon="Spell_Holy_MagicalSentry" },
['Arkanschwäche'] = {t=5000, icon="INV_Misc_QirajiCrystal_01" },
['Arkanitdietrich'] = {t=5000, icon="Temp" },
['Archaedas wecken\'-Bild (DND)'] = {t=1500, icon="Spell_Nature_Earthquake" },
['Arktischer Wolf'] = {t=3000, icon="Ability_Mount_WhiteDireWolf" },
['Flächenbrand'] = {t=3000, icon="Spell_Fire_SelfDestruct" },
['Zauber \'Arugal einbrüten\''] = {t=2000, icon="Temp" },
['Arugals Gabe'] = {t=2500, icon="Spell_Shadow_ChillTouch" },
['Arygos Rache'] = {t=2000, icon="Temp" },
['Ashcrombes Teleporter'] = {t=2000, icon="Spell_Fire_SelfDestruct" },
['Ashcrombes Öffner'] = {t=4000, icon="Spell_Nature_MoonKey" },
['Aspekt von Neptulon'] = {t=1000, icon="Temp" },
['Astraler Rückruf'] = {t=10000, icon="Spell_Nature_AstralRecal" },
['Atal\'ai - Altar - Licht - Bild (DND)'] = {t=1000, icon="Temp" },
['Eingestellter Dämpfer'] = {t=2000, icon="Spell_Holy_SearingLight" },
['Kerlonian wecken'] = {t=4500, icon="Temp" },
['Den Seelenschinder wecken'] = {t=5000, icon="Temp" },
['Gewölbewärter wecken'] = {t=5000, icon="Spell_Nature_Earthquake" },
['Aynashas Pfeil'] = {t=500, icon="Temp" },
['Rückhand'] = {t=1000, icon="Spell_Shadow_LifeDrain" },
['Naturgleichgewicht'] = {t=3000, icon="Temp" },
['Naturgleichgewicht-Fehlschlag'] = {t=10000, icon="Temp" },
['Kugelblitzschlag'] = {t=1000, icon="Spell_Lightning_LightningBolt01" },
['Verbannen'] = {t=1500, icon="Spell_Shadow_Cripple" },
['Brennenden Verbannten verbannen'] = {t=1000, icon="Spell_Shadow_LifeDrain" },
['Schäumenden Verbannten verbannen'] = {t=1000, icon="Spell_Shadow_LifeDrain" },
['Donnernden Verbannten verbannen'] = {t=1000, icon="Spell_Shadow_LifeDrain" },
['Bansheefluch'] = {t=2000, icon="Spell_Nature_Drowsy" },
['Wehklagen der Banshee'] = {t=1500, icon="Spell_Shadow_ShadowBolt" },
['Lichtbarriere'] = {t=2000, icon="Temp" },
['Einfaches Lagerfeuer'] = {t=10000, icon="Spell_Fire_Fire" },
['Wildtierklauen'] = {t=1000, icon="Spell_Nature_Regeneration" },
['Wildtierklauen II'] = {t=1000, icon="Spell_Nature_Regeneration" },
['Wildtierklauen III'] = {t=1000, icon="Spell_Nature_Regeneration" },
['Dröhnendes Gebrüll'] = {t=1500, icon="Spell_Fire_Fire" },
['Biegsamer Schienbeinknochen'] = {t=1500, icon="Temp" },
['Große Bronzebombe'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Große Eisenbombe'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Geburt'] = {t=2000, icon="Temp" },
['Schwarzer Pfeil'] = {t=2000, icon="Ability_TheBlackArrow" },
['Schwarzer Schlachtenschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Schwarzer Widder'] = {t=3000, icon="Ability_Mount_MountainRam" },
['Schwarzer Schlamm'] = {t=3000, icon="Spell_Shadow_CallofBone" },
['Rappe'] = {t=3000, icon="Ability_Mount_NightmareHorse" },
['Schwarzer Kriegskodo'] = {t=3000, icon="Ability_Mount_Kodo_01" },
['Schwarzer Kriegswidder'] = {t=3000, icon="Ability_Mount_MountainRam" },
['Schwarzer Kriegsraptor'] = {t=3000, icon="Ability_Mount_Raptor" },
['Schwarzes Schlachtross'] = {t=3000, icon="Ability_Mount_NightmareHorse" },
['Schwarzer Kriegstiger'] = {t=3000, icon="Ability_Mount_BlackPanther" },
['Schwarzer Kriegswolf'] = {t=3000, icon="Ability_Mount_BlackDireWolf" },
['Schwarzer Wolf'] = {t=3000, icon="Ability_Mount_BlackDireWolf" },
['Gesegnetes Zauberöl'] = {t=3000, icon="Temp" },
['Segen von Shahram'] = {t=1000, icon="Spell_Holy_LayOnHands" },
['Blizzard'] = {t=2000, icon="Spell_Frost_IceStorm" },
['Blutgeheul'] = {t=1000, icon="Spell_Shadow_LifeDrain" },
['Blue Dragon Transform DND'] = {t=1000, icon="Temp" },
['Blauer Roboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Blauer Widder'] = {t=3000, icon="Ability_Mount_MountainRam" },
['Blaues Skelettpferd'] = {t=3000, icon="Ability_Mount_Undeadhorse" },
['Bly\'s Band\'s Escape'] = {t=10000, icon="INV_Misc_Rune_01" },
['Bombe'] = {t=2000, icon="Spell_Fire_SelfDestruct" },
['Bombardieren'] = {t=3000, icon="Ability_GolemStormBolt" },
['Bombardieren II'] = {t=3000, icon="Ability_GolemStormBolt" },
['Schleimbombardement'] = {t=1000, icon="Temp" },
['Knochensplitter'] = {t=500, icon="Spell_Shadow_ScourgeBuild" },
['Felsen'] = {t=2000, icon="Ability_Throw" },
['Großes Zeug abbrechen'] = {t=2000, icon="Spell_Shadow_CurseOfAchimonde" },
['Zeug abbrechen'] = {t=2000, icon="Spell_Shadow_CurseOfAchimonde" },
['Atem'] = {t=5000, icon="Spell_Fire_Fire" },
['Sargeras Odem'] = {t=2000, icon="Spell_Shadow_Metamorphosis" },
['Helle Schmuckstücke'] = {t=5000, icon="INV_Misc_Orb_03" },
['Helles Lagerfeuer'] = {t=10000, icon="Spell_Fire_Fire" },
['Hervorragendes Manaöl'] = {t=3000, icon="Temp" },
['Hervorragendes Zauberöl'] = {t=3000, icon="Temp" },
['Brut Nozdormus Fraktion +1000'] = {t=1000, icon="Temp" },
['Braunes Pferd'] = {t=3000, icon="Ability_Mount_RidingHorse" },
['Brauner Kodo'] = {t=3000, icon="Ability_Mount_Kodo_03" },
['Brauner Widder'] = {t=3000, icon="Ability_Mount_MountainRam" },
['Braunes Skelettpferd'] = {t=3000, icon="Ability_Mount_Undeadhorse" },
['Brauner Wolf'] = {t=3000, icon="Ability_Mount_BlackDireWolf" },
['Brennende Winde'] = {t=1000, icon="Spell_Nature_Cyclone" },
['Eingraben'] = {t=1000, icon="Ability_Vanish" },
['Samuels sterbliche Überreste begraben'] = {t=2000, icon="Temp" },
['Buttermilchküsschen'] = {t=1000, icon="INV_ValentinesChocolate01" },
['Bannfluch rufen'] = {t=1000, icon="Temp" },
['Die Uralten herbeirufen'] = {t=7000, icon="Temp" },
['Segnung rufen'] = {t=1000, icon="Temp" },
['Kahlen Worg rufen'] = {t=1300, icon="Spell_Shadow_ChillTouch" },
['Glyphen des Zauberschutzes herbeirufen'] = {t=3000, icon="Temp" },
['Werwolfschrecken rufen'] = {t=1300, icon="Spell_Shadow_ChillTouch" },
['Ruf des Grabes'] = {t=2000, icon="Spell_Shadow_ChillTouch" },
['Ruf des Nether'] = {t=10000, icon="Temp" },
['Ruf der Leere'] = {t=3000, icon="Spell_Shadow_DeathCoil" },
['Thunds Ruf'] = {t=1500, icon="Spell_Frost_Wisp" },
['Prismatische Barriere herbeirufen'] = {t=10000, icon="Temp" },
['Sabbernden Worg rufen'] = {t=1300, icon="Spell_Shadow_ChillTouch" },
['Ivus anrufen'] = {t=10000, icon="Temp" },
['Kanonenfeuer'] = {t=1000, icon="Spell_Fire_FireBolt02" },
['Inkantation der Manifestation'] = {t=2000, icon="Spell_Magic_LesserInvisibilty" },
['Grark fangen'] = {t=3000, icon="Temp" },
['Worgwelpen einfangen'] = {t=2500, icon="Temp" },
['Termiten fangen'] = {t=5000, icon="Temp" },
['Rosenblütenregen'] = {t=500, icon="INV_Misc_Dust_04" },
['Kettenblitzschlag'] = {t=2500, icon="Spell_Nature_ChainLightning" },
['Kettenbrand'] = {t=3000, icon="Spell_Shadow_ManaBurn" },
['Kettenheilung'] = {t=2500, icon="Spell_Nature_HealingWaveGreater" },
['Kettenblitzschlag'] = {t=2500, icon="Spell_Nature_ChainLightning" },
['Kettenblitzschlag'] = {t=1800, icon="Spell_Nature_ChainLightning" },
['Eisketten'] = {t=1300, icon="Spell_Frost_ChainsOfIce" },
['Aufgeladener Arkanblitz'] = {t=7000, icon="Spell_Arcane_StarFire" },
['Laden'] = {t=5000, icon="Spell_Shadow_EvilEye" },
['Kastanienbraune Stute'] = {t=3000, icon="Ability_Mount_RidingHorse" },
['Eiskalter Atem'] = {t=1000, icon="Spell_Frost_Wisp" },
['Chromatisches Reittier'] = {t=3000, icon="INV_Misc_Head_Dragon_Black" },
['CHUs QUESTZAUBER'] = {t=4000, icon="Spell_Shadow_LifeDrain" },
['Stinkbombe neutralisieren'] = {t=5000, icon="Temp" },
['Thunderhorn-Brunnen säubern'] = {t=10000, icon="Temp" },
['Wildmane-Brunnen säubern'] = {t=10000, icon="Temp" },
['Winterhoof-Brunnen säubern'] = {t=10000, icon="Temp" },
['Spalten'] = {t=2500, icon="Ability_Warrior_Cleave" },
['Klonen'] = {t=2500, icon="Spell_Shadow_BlackPlague" },
['Schließen'] = {t=1000, icon="Temp" },
['Grobes Dynamit'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Krähenhorstei holen'] = {t=500, icon="Temp" },
['Ablagerungen sammeln'] = {t=4000, icon="Temp" },
['Kollossusschlag'] = {t=5000, icon="Temp" },
['Altar der Beschwörung herbeizaubern'] = {t=10000, icon="Temp" },
['Kreis des Rufens herbeizaubern'] = {t=10000, icon="Temp" },
['Traumesriss heraufbeschwören'] = {t=10000, icon="Temp" },
['Furis Teufelsross herbeizaubern ATTRAPPE DND'] = {t=5000, icon="Temp" },
['Geweihte Waffe'] = {t=3000, icon="Temp" },
['Cookies Kochkunst'] = {t=2000, icon="Spell_Holy_Heal" },
['Dunkle Versuchung'] = {t=1000, icon="INV_ValentinesChocolate04" },
['Furcht'] = {t=1500, icon="Spell_Shadow_Possession" },
['Frostblitz'] = {t=1500, icon="Spell_Frost_FrostBolt02" },
['Großes Heilen'] = {t=2000, icon="Spell_Holy_Heal" },
['Welle der Heilung'] = {t=3000, icon="Spell_Nature_MagicImmunity" },
['Ruf erhöhen'] = {t=1000, icon="Temp" },
['Portal: Undercity'] = {t=10000, icon="Spell_Arcane_PortalUnderCity" },
['Kopie von \'Zornklaue freigeben\''] = {t=10000, icon="Temp" },
['Ätzende Säure'] = {t=1500, icon="Spell_Nature_Acid_01" },
['Ätzende Säurespucke'] = {t=3000, icon="Spell_Nature_Acid_01" },
['Ätzgift'] = {t=1500, icon="Spell_Nature_CorrosiveBreath" },
['Ätzende Giftspucke'] = {t=2500, icon="Spell_Nature_CorrosiveBreath" },
['Verderbter Redpath'] = {t=2000, icon="Temp" },
['Verderbnis'] = {t=2000, icon="Spell_Shadow_AbominationExplosion" },
['Wellenbrecher'] = {t=2000, icon="Spell_Frost_FrostNova" },
['Säuberungstotem herstellen'] = {t=5000, icon="Spell_Shadow_LifeDrain" },
['Zünder für Raketenbündel herstellen'] = {t=2000, icon="INV_Misc_EngGizmos_03" },
['Verwahrungskasten herstellen'] = {t=500, icon="Temp" },
['Gefüllten Verwahrungskasten herstellen'] = {t=2000, icon="Temp" },
['Zünder für Feuerwerksraketen herstellen'] = {t=2000, icon="INV_Musket_04" },
['Gesundheitsstein herstellen'] = {t=3000, icon="INV_Stone_04" },
['Gesundheitsstein herstellen (groß)'] = {t=3000, icon="INV_Stone_04" },
['Gesundheitsstein herstellen (gering)'] = {t=3000, icon="INV_Stone_04" },
['Gesundheitsstein herstellen (erheblich)'] = {t=3000, icon="INV_Stone_04" },
['Gesundheitsstein herstellen (schwach)'] = {t=3000, icon="INV_Stone_04" },
['Gegenstand erstellen - Bild (DND)'] = {t=5000, icon="Spell_Shadow_SoulGem" },
['Magierkugel herstellen'] = {t=4000, icon="Temp" },
['Magierrobe herstellen'] = {t=4000, icon="Temp" },
['PX83-Enigmatron herstellen'] = {t=2000, icon="INV_Misc_Bowl_01" },
['Reliktbündel herstellen'] = {t=1000, icon="Temp" },
['Riss herstellen'] = {t=3000, icon="Temp" },
['Sapta herstellen'] = {t=3000, icon="INV_Misc_Food_09" },
['Rolle herstellen'] = {t=5000, icon="INV_Scroll_05" },
['Wahrsageschale herstellen'] = {t=2500, icon="INV_Misc_Bowl_01" },
['Schredder herstellen'] = {t=1000, icon="INV_Misc_Gear_01" },
['Wasser der Seher herstellen'] = {t=5000, icon="Spell_Shadow_LifeDrain" },
['Totembündel der Witherbark herstellen'] = {t=2000, icon="Spell_Lightning_LightningBolt01" },
['CreatureSpecial'] = {t=2000, icon="Temp" },
['Krabblergift'] = {t=2000, icon="Spell_Nature_NullifyPoison" },
['Wappen der Vergeltung'] = {t=1000, icon="INV_Shield_19" },
['Verkrüppeln'] = {t=3000, icon="Spell_Shadow_Cripple" },
['Verkrüppelndes Gift'] = {t=3000, icon="Ability_PoisonSting" },
['Gruftskarabäen'] = {t=1500, icon="Spell_Shadow_CarrionSwarm" },
['Kristallblitzstrahl'] = {t=2000, icon="Spell_Shadow_Teleport" },
['Kristallblick'] = {t=2000, icon="Ability_GolemThunderClap" },
['Kristallener Schlummer'] = {t=2000, icon="Spell_Nature_Sleep" },
['Armors Pfeil'] = {t=1000, icon="Temp" },
['Krankheit heilen'] = {t=2500, icon="Spell_Holy_NullifyDisease" },
['Blutfluch'] = {t=2000, icon="Spell_Shadow_RitualOfSacrifice" },
['Fluch von Hakkar'] = {t=2500, icon="Spell_Shadow_GatherShadows" },
['Fluch der Heilung'] = {t=1000, icon="Spell_Shadow_AntiShadow" },
['Fluch von Shahram'] = {t=1000, icon="Spell_Magic_LesserInvisibilty" },
['Stalvans Fluch'] = {t=1000, icon="Spell_Shadow_ShadowPact" },
['Fluch des Dunkelmeisters'] = {t=2000, icon="Spell_Shadow_AntiShadow" },
['Fluch der Totenwaldfelle'] = {t=2000, icon="Spell_Shadow_GatherShadows" },
['Fluch des gefallenen Magram'] = {t=2000, icon="Spell_Shadow_UnholyFrenzy" },
['Fluch der Feuerbrand'] = {t=2000, icon="Ability_Creature_Cursed_03" },
['Fluch der Seuchenratte'] = {t=1500, icon="Spell_Shadow_UnholyFrenzy" },
['Fluch der Stämme'] = {t=2000, icon="Spell_Shadow_CurseOfMannoroth" },
['Dornenfluch'] = {t=2000, icon="Spell_Shadow_AntiShadow" },
['Thules Fluch'] = {t=2000, icon="Spell_Shadow_ShadowPact" },
['Timmys Fluch'] = {t=1000, icon="Spell_Shadow_ShadowPact" },
['Fluch der Schwäche'] = {t=1000, icon="Spell_Shadow_CurseOfMannoroth" },
['Verkleidung als Hexer von Dalaran'] = {t=3000, icon="Ability_Rogue_Disguise" },
['Wagen beschädigen'] = {t=2000, icon="Spell_Fire_Fire" },
['Dunkle Versuchung'] = {t=1000, icon="INV_ValentinesChocolate04" },
['Dunkeleisenbombe'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Dunkeleisenzwerg-Verkleidung'] = {t=3000, icon="Ability_Rogue_Disguise" },
['Dunkeleisenlandmine'] = {t=1000, icon="Spell_Shadow_Metamorphosis" },
['Dunkle Besserung'] = {t=3500, icon="Spell_Shadow_ChillTouch" },
['Dunkles Wiederherstellen'] = {t=2000, icon="Ability_Hunter_MendPet" },
['Dunkler Schlamm'] = {t=5000, icon="Spell_Shadow_CreepingPlague" },
['Dunkles Geflüster'] = {t=3000, icon="Spell_Shadow_Haunting" },
['Sicht verdunkeln'] = {t=2000, icon="Spell_Shadow_Fumble" },
['Abschreckknurren'] = {t=1000, icon="Ability_Racial_Cannibalize" },
[' Dämmerungstrickfalle'] = {t=1500, icon="Temp" },
['Tödliches Gift'] = {t=3000, icon="Ability_Rogue_DualWeild" },
['Tödliches Gift II'] = {t=3000, icon="Ability_Rogue_DualWeild" },
['Tödliches Gift III'] = {t=3000, icon="Ability_Rogue_DualWeild" },
['Tödliches Gift IV'] = {t=3000, icon="Ability_Rogue_DualWeild" },
['Tödliches Gift V'] = {t=3000, icon="Ability_Rogue_DualWeild" },
['Todesminen-Dynamit'] = {t=2000, icon="Spell_Fire_SelfDestruct" },
['Tod und Verfall'] = {t=2000, icon="Spell_Shadow_DeathAndDecay" },
['Totenbett'] = {t=2000, icon="Spell_Shadow_Twilight" },
['Todesstreitross'] = {t=3000, icon="Ability_Mount_Undeadhorse" },
['Verfallene Beweglichkeit'] = {t=2000, icon="Spell_Holy_HarmUndeadAura" },
['Verfallene Stärke'] = {t=2000, icon="Spell_Holy_HarmUndeadAura" },
['Tiefer Schlummer'] = {t=1000, icon="Spell_Shadow_Cripple" },
['Defiasverkleidung'] = {t=3000, icon="Ability_Rogue_Disguise" },
['Defibrillation'] = {t=4000, icon="Spell_Nature_Purge" },
['Delete Me'] = {t=4000, icon="INV_Scroll_02" },
['Dämonenhacke'] = {t=5000, icon="Temp" },
['Dämonenportal'] = {t=500, icon="Spell_Arcane_TeleportOrgrimmar" },
['Fackel zur Dämonenbeschwörung'] = {t=3000, icon="Temp" },
['Dichtes Dynamit'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Ei zerstören'] = {t=3000, icon="INV_Misc_MonsterClaw_02" },
['Geistermagneten zerstören'] = {t=10000, icon="Temp" },
['Zelt zerstören'] = {t=2500, icon="Temp" },
['Explodieren'] = {t=2000, icon="Temp" },
['Detonation'] = {t=5000, icon="Spell_Fire_SelfDestruct" },
['Nach Kobalt graben'] = {t=1500, icon="Temp" },
['Dimensionsportal'] = {t=2000, icon="Temp" },
['Terrorknurren'] = {t=1000, icon="Ability_Racial_Cannibalize" },
['Terrorwolf'] = {t=3000, icon="Ability_Mount_WhiteDireWolf" },
['Falle entschärfen'] = {t=2000, icon="Spell_Shadow_GrimWard" },
['Krankheitsstoß'] = {t=1500, icon="Spell_Nature_EarthBind" },
['Krankheitsschuss'] = {t=2000, icon="Spell_Shadow_CallofBone" },
['Kranker Brühschleimer'] = {t=2000, icon="Spell_Shadow_CreepingPlague" },
['Erkrankte Spucke'] = {t=3000, icon="Spell_Shadow_CreepingPlague" },
['Entzaubern'] = {t=3000, icon="Spell_Holy_RemoveCurse" },
['Tier freigeben'] = {t=5000, icon="Spell_Nature_SpiritWolf" },
['Bannen'] = {t=1000, icon="Spell_Holy_DispelMagic" },
['Gift bannen'] = {t=2000, icon="Spell_Holy_Purify" },
['Temporalriss versetzen'] = {t=5000, icon="Temp" },
['Störung'] = {t=3000, icon="Temp" },
['Krähenhorstei stören'] = {t=1000, icon="Temp" },
['Rutengangtrance'] = {t=5000, icon="Temp" },
['Gedanken beherrschen'] = {t=2000, icon="Spell_Shadow_ShadowWordDominate" },
['Beherrschung'] = {t=1000, icon="Spell_Shadow_ShadowWordDominate" },
['Herrschaft der Seele'] = {t=3000, icon="Spell_Shadow_ShadowWordDominate" },
['Übergießen'] = {t=5000, icon="Temp" },
['Ewige Flamme löschen'] = {t=1000, icon="Temp" },
['Draco-Incarcinatrix 900'] = {t=2000, icon="Temp" },
['Uralte Glyphen zeichnen'] = {t=10000, icon="Temp" },
['Thistlenettles Zug'] = {t=2000, icon="Spell_Shadow_Haunting" },
['Zeichenset'] = {t=7000, icon="Temp" },
['Schwachen Trank trinken'] = {t=3000, icon="Spell_Holy_Heal" },
['Trank trinken'] = {t=3000, icon="Spell_Holy_Heal" },
['Nimboyas behängte Pike platzieren'] = {t=2000, icon="Temp" },
['Druidenschlummer'] = {t=2500, icon="Spell_Nature_Sleep" },
['Betrunkene Boxencrew'] = {t=2000, icon="Temp" },
['Attrappe NSC Beschwören'] = {t=20000, icon="Spell_Shadow_UnsummonBuilding" },
['Atombomben-Attrappe'] = {t=2000, icon="Temp" },
['Staubwolke'] = {t=1500, icon="Ability_Hibernation" },
['Dynamit'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Erdelementar'] = {t=3000, icon="Ability_Temp" },
['Erdengriff-Totem'] = {t=500, icon="Spell_Nature_NatureTouchDecay" },
['Holunderbeerenkuchen'] = {t=1000, icon="INV_Misc_Food_10" },
['Elektrifiziertes Netz'] = {t=500, icon="Ability_Ensnare" },
['Elementarrüstung'] = {t=1000, icon="Spell_Frost_Frost" },
['Elementarfeuer'] = {t=500, icon="Spell_Fire_Fireball02" },
['Elementarfuror'] = {t=1000, icon="Spell_Fire_FireArmor" },
['Elunes Kerze'] = {t=500, icon="Temp" },
['Glutseher - Start'] = {t=5000, icon="Spell_Nature_EarthBindTotem" },
['Smaragdfarbener Raptor'] = {t=3000, icon="Ability_Mount_Raptor" },
['Tier ermächtigen'] = {t=500, icon="Spell_Shadow_DeathPact" },
['Leerer Festtagskrug'] = {t=2000, icon="Temp" },
['Einsperren'] = {t=2000, icon="Spell_Shadow_Teleport" },
['Umschließende Gespinste'] = {t=2000, icon="Spell_Nature_EarthBind" },
['Annalen von Darrowshire\' verzaubern'] = {t=3500, icon="Temp" },
['Verzaubertes Gaeasamenkorn'] = {t=5000, icon="Temp" },
['Verzauberte Schnelligkeit'] = {t=3000, icon="Spell_Nature_Invisibilty" },
['Verzauberter Resonitkristall'] = {t=5000, icon="Temp" },
['Verzauberndes Schlaflied'] = {t=1000, icon="Spell_Shadow_SoothingKiss" },
['Energieentzug'] = {t=1500, icon="Spell_Shadow_Cripple" },
['Manaschwäche'] = {t=1500, icon="Ability_Creature_Poison_03" },
['Entkräften'] = {t=2000, icon="Spell_Shadow_CurseOfMannoroth" },
['Einhüllende Schatten'] = {t=1500, icon="Spell_Shadow_LifeDrain02" },
['Stumpfe Waffe erweitern'] = {t=3000, icon="Temp" },
['Stumpfe Waffe erweitern II'] = {t=3000, icon="Temp" },
['Stumpfe Waffe erweitern III'] = {t=3000, icon="Temp" },
['Stumpfe Waffe erweitern IV'] = {t=3000, icon="Temp" },
['Stumpfe Waffe intensivieren V'] = {t=3000, icon="Temp" },
['Vergrößern'] = {t=2000, icon="Spell_Nature_Strength" },
['Erleuchtung'] = {t=2000, icon="Spell_Shadow_Fumble" },
['Dämonensklave'] = {t=3000, icon="Spell_Shadow_EnslaveDemon" },
['Wucherwurzeln'] = {t=1500, icon="Spell_Nature_StrangleVines" },
['Einhüllende Winde'] = {t=2000, icon="Spell_Nature_Cyclone" },
['Entfesselungskünstler'] = {t=500, icon="Ability_Rogue_Trip" },
['Everlook Transporter'] = {t=10000, icon="Spell_Fire_SelfDestruct" },
['Böser Blick'] = {t=1500, icon="Spell_Shadow_Charm" },
['Böser Gott\'-Gegenzauber'] = {t=300000, icon="Temp" },
['Läuterung von Atiesh'] = {t=20000, icon="Temp" },
['Geister austreiben'] = {t=4000, icon="Temp" },
['Explosivgeschoss'] = {t=1000, icon="Spell_Fire_Fireball02" },
['Explodierendes Schaf'] = {t=2000, icon="Ability_Repair" },
['Explosivschuss'] = {t=1000, icon="Spell_Fire_Fireball02" },
['Löschen'] = {t=2000, icon="Temp" },
['Augenstrahl'] = {t=2000, icon="Spell_Nature_CallStorm" },
['Auge von Immol\'thar'] = {t=2000, icon="Spell_Shadow_AntiMagicShell" },
['Auge von Kilrogg'] = {t=5000, icon="Spell_Shadow_EvilEye" },
['Auge von Yesmur (PT)'] = {t=2000, icon="Temp" },
['Augen des Wildtiers'] = {t=2000, icon="Ability_EyeOfTheOwl" },
['EZ-Thro-Dynamit'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Feenfeuer'] = {t=2000, icon="Spell_Nature_FaerieFire" },
['Attrappenschuss'] = {t=2000, icon="Ability_Marksmanship" },
['Fanatische Klinge'] = {t=1000, icon="Spell_Fire_Immolation" },
['Fernsicht'] = {t=2000, icon="Spell_Nature_FarSight" },
['Fernsicht (PT)'] = {t=2000, icon="Temp" },
['Furcht'] = {t=1500, icon="Spell_Shadow_Possession" },
['Furcht (NYI)'] = {t=3000, icon="Spell_Shadow_Possession" },
['Schwachsinn'] = {t=1000, icon="Spell_Shadow_MindSteal" },
['Schwachsinn II'] = {t=1000, icon="Spell_Shadow_MindSteal" },
['Schwachsinn III'] = {t=1000, icon="Spell_Shadow_MindSteal" },
['Teufelsfluch'] = {t=4000, icon="Temp" },
['Felstrom-Auferstehung'] = {t=3000, icon="Spell_Totem_WardOfDraining" },
['Wildgeist'] = {t=3000, icon="Spell_Nature_SpiritWolf" },
['Wildgeist II'] = {t=3000, icon="Spell_Nature_SpiritWolf" },
['Fieberhafte Erschöpfung'] = {t=3000, icon="Spell_Nature_NullifyDisease" },
['Fieberseuche'] = {t=4500, icon="Spell_Nature_NullifyDisease" },
['Feurige Lohe'] = {t=3000, icon="Spell_Fire_SelfDestruct" },
['Feuerexplosion'] = {t=1500, icon="Spell_Fire_FireBolt" },
['Phiole füllen'] = {t=5000, icon="Temp" },
['Wird aufgefüllt'] = {t=3000, icon="Temp" },
['Reliktfragment suchen'] = {t=5000, icon="Temp" },
['Kanone abfeuern'] = {t=2000, icon="Temp" },
['Feuerelementar'] = {t=3000, icon="Ability_Temp" },
['Feuerschild'] = {t=1000, icon="Spell_Fire_Immolation" },
['Feuerschild II'] = {t=1000, icon="Spell_Fire_Immolation" },
['Feuerschild III'] = {t=1000, icon="Spell_Fire_Immolation" },
['Feuerschild IV'] = {t=1000, icon="Spell_Fire_Immolation" },
['Feuersturm'] = {t=2000, icon="Spell_Fire_SelfDestruct" },
['Feuerschwäche'] = {t=5000, icon="INV_Misc_QirajiCrystal_02" },
['Feuergeröstetes Brötchen'] = {t=1000, icon="INV_Misc_Food_11" },
['Feuerball'] = {t=3500, icon="Spell_Fire_FlameBolt" },
['Feuerballsalve'] = {t=3000, icon="Spell_Fire_FlameBolt" },
['Feuerblitz'] = {t=2000, icon="Spell_Fire_FireBolt" },
['Feuerblitz II'] = {t=3000, icon="Spell_Fire_FireBolt02" },
['Feuerblitz III'] = {t=3000, icon="Spell_Fire_FireBolt02" },
['Feuerblitz IV'] = {t=3000, icon="Spell_Fire_FireBolt02" },
['Feuerwerk'] = {t=500, icon="Temp" },
['Erste Hilfe'] = {t=3000, icon="Spell_Holy_GreaterHeal" },
['Faust von Shahram'] = {t=1000, icon="Ability_Whirlwind" },
['Ritualglocke reparieren (DND)'] = {t=3000, icon="Temp" },
['Ritualkerze reparieren (DND)'] = {t=3000, icon="Temp" },
['Ritualknoten reaktivieren'] = {t=3000, icon="Temp" },
['Flammenstoß'] = {t=7000, icon="Spell_Fire_SelfDestruct" },
['Flammenatem'] = {t=1700, icon="Spell_Fire_Fire" },
['Flammenpuffer'] = {t=2200, icon="Spell_Fire_Fireball" },
['Flammenexplosion'] = {t=3000, icon="Spell_Fire_SelfDestruct" },
['Flammenkanone'] = {t=1500, icon="Spell_Fire_FlameBolt" },
['Flammenpeitsche'] = {t=1000, icon="Spell_Fire_Fireball" },
['Flammenstachel'] = {t=3000, icon="Spell_Fire_SelfDestruct" },
['Flammenschauer'] = {t=1700, icon="Spell_Fire_Fire" },
['Flammenknall'] = {t=2500, icon="Spell_Fire_Fire" },
['Flammen des Chaos'] = {t=1000, icon="Spell_Fire_WindsofWoe" },
['Flammen der Vergeltung'] = {t=3000, icon="Temp" },
['Flammen von Shahram'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Flammenspeien'] = {t=3000, icon="Spell_Fire_FlameBolt" },
['Flammenstoß'] = {t=3000, icon="Spell_Fire_SelfDestruct" },
['Blitzheilung'] = {t=1500, icon="Spell_Holy_FlashHeal" },
['Lichtblitz'] = {t=1500, icon="Spell_Holy_FlashHeal" },
['Fleischfressender Wurm'] = {t=5000, icon="INV_Misc_Orb_03" },
['Fackelwurf'] = {t=1000, icon="Spell_Fire_Flare" },
['Leuchtend grüner Roboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Fokussieren'] = {t=5000, icon="Temp" },
['Machthieb'] = {t=1000, icon="INV_Gauntlets_31" },
['Verigans Faust schmieden'] = {t=600, icon="Spell_Holy_RighteousFury" },
['Vergebung'] = {t=1000, icon="Temp" },
['Gabelblitzschlag'] = {t=2000, icon="Spell_Nature_ChainLightning" },
['Mondpirschergestalt (keine Unsichtbarkeit)'] = {t=1000, icon="Ability_Hibernation" },
['Verlassene Fertigkeiten'] = {t=2500, icon="Spell_Shadow_AntiShadow" },
['Eiskälte'] = {t=4000, icon="Spell_Frost_Glacier" },
['Krähenhorstei einfrieren'] = {t=500, icon="Temp" },
['Krähenhorstei einfrieren - Prototyp'] = {t=500, icon="Temp" },
['Steif frieren'] = {t=2500, icon="Spell_Frost_Glacier" },
['Schreckenskralle'] = {t=1000, icon="Spell_Shadow_ShadowPact" },
['Frostatem'] = {t=250, icon="Spell_Frost_FrostNova" },
['Frostbeulen'] = {t=2000, icon="Spell_Frost_ChillingBlast" },
['Frostöl'] = {t=3000, icon="Temp" },
['Frostwidder'] = {t=3000, icon="Ability_Mount_MountainRam" },
['Frostwiderstand'] = {t=1000, icon="Spell_Frost_WizardMark" },
['Frostschwäche'] = {t=5000, icon="INV_Misc_QirajiCrystal_04" },
['Frostblitz'] = {t=3000, icon="Spell_Frost_FrostBolt02" },
['Frostblitz-Salve'] = {t=2000, icon="Spell_Frost_FrostBolt02" },
['Stärke der Frostmane'] = {t=1000, icon="Spell_Nature_UndyingStrength" },
['Frostsäbler'] = {t=3000, icon="Ability_Mount_WhiteTiger" },
['Frostwolfheuler'] = {t=3000, icon="Ability_Mount_WhiteDireWolf" },
['Vollständige Heilung'] = {t=1000, icon="Temp" },
['Ungeschick'] = {t=1000, icon="Spell_Shadow_Fumble" },
['Ungeschick II'] = {t=1000, icon="Spell_Shadow_Fumble" },
['Ungeschick III'] = {t=1000, icon="Spell_Shadow_Fumble" },
['Furbolggestalt'] = {t=2000, icon="INV_Misc_MonsterClaw_04" },
['Gargoylestoß'] = {t=1500, icon="Spell_Shadow_ShadowBolt" },
['Gasbombe'] = {t=1000, icon="INV_Misc_Ammo_Bullet_01" },
['Edelstein der Schlange'] = {t=5000, icon="Temp" },
['Geisterwolf'] = {t=3000, icon="Spell_Nature_SpiritWolf" },
['Gabe von Xavian'] = {t=5000, icon="Spell_Holy_FlashHeal" },
['Gletschergebrüll'] = {t=1000, icon="Spell_Frost_FrostNova" },
['Starren'] = {t=500, icon="Temp" },
['Gnomen-Kameraverbindung'] = {t=3000, icon="Temp" },
['Gnomischer Transporter'] = {t=10000, icon="Temp" },
['Goblin-Kameraverbindung'] = {t=3000, icon="Temp" },
['Goblin-Landmine'] = {t=1000, icon="Spell_Shadow_Metamorphosis" },
['Goblin-Mörser'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Gong'] = {t=500, icon="Temp" },
['Gong Zul\'Farrak Gong'] = {t=500, icon="Temp" },
['Grüner Gordokgrog'] = {t=1000, icon="INV_Drink_03" },
['Greifende Ranken'] = {t=1000, icon="Spell_Nature_Earthquake" },
['Grauer Kodo'] = {t=3000, icon="Ability_Mount_Kodo_01" },
['Grauer Widder'] = {t=3000, icon="Ability_Mount_MountainRam" },
['Grauer Wolf'] = {t=3000, icon="Ability_Mount_WhiteDireWolf" },
['Großer brauner Kodo'] = {t=3000, icon="Ability_Mount_Kodo_03" },
['Großer grauer Kodo'] = {t=3000, icon="Ability_Mount_Kodo_01" },
['Großes Heilen'] = {t=4000, icon="Spell_Holy_Heal" },
['Großer weißer Kodo'] = {t=3000, icon="Ability_Mount_Kodo_01" },
['Mächtige Magie bannen'] = {t=4000, icon="Spell_Arcane_StarFire" },
['Große Heilung'] = {t=3000, icon="Spell_Holy_GreaterHeal" },
['Große Unsichtbarkeit'] = {t=3000, icon="Spell_Nature_Invisibilty" },
['Green Dragon Transform DND'] = {t=1000, icon="Temp" },
['Grüner Kodo'] = {t=3000, icon="Ability_Mount_Kodo_02" },
['Grüner Roboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Grünes Skelettschlachtross'] = {t=3000, icon="Ability_Mount_Undeadhorse" },
['Groms Tribut'] = {t=2000, icon="Temp" },
['Arglist des Raptors'] = {t=3000, icon="INV_Misc_MonsterClaw_02" },
['Windstoß'] = {t=2000, icon="Spell_Nature_EarthBind" },
['Hammer des Zorns'] = {t=1000, icon="Ability_ThunderClap" },
['Hand von Iruxos'] = {t=5000, icon="Temp" },
['Silithidenei einsammeln'] = {t=5000, icon="Temp" },
['Abbau-Schwarm'] = {t=3000, icon="Spell_Holy_Dizzy" },
['Spukphantome'] = {t=2000, icon="Spell_Shadow_BlackPlague" },
['Spukgeister'] = {t=2000, icon="Spell_Shadow_BlackPlague" },
['Heilen'] = {t=3000, icon="Spell_Holy_Heal02" },
['Heilen Bild (DND)'] = {t=3500, icon="Spell_Holy_Heal" },
['Schlangenstrunkranke heilen'] = {t=500, icon="Temp" },
['Kreis der Heilung'] = {t=3000, icon="Spell_Holy_BlessingOfProtection" },
['Heilsprache'] = {t=1000, icon="Spell_Holy_Heal" },
['Heilsprache II'] = {t=1000, icon="Spell_Holy_Heal" },
['Heilende Berührung'] = {t=3500, icon="Spell_Nature_HealingTouch" },
['Heilungszauberschutz'] = {t=2000, icon="Spell_Holy_LayOnHands" },
['Welle der Heilung'] = {t=3000, icon="Spell_Nature_MagicImmunity" },
['Welle der Heilung von Antu\'sul'] = {t=1000, icon="Spell_Holy_Heal02" },
['Herz von Hakkar - Molthor verzehrt das Herz'] = {t=2000, icon="Temp" },
['Ruhestein'] = {t=10000, icon="INV_Misc_Rune_01" },
['Schweres Dynamit'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Geschärfte Sinne'] = {t=1000, icon="Temp" },
['Höllenfeuer'] = {t=3000, icon="Spell_Fire_SelfDestruct" },
['Höllenfeuer II'] = {t=3000, icon="Spell_Fire_SelfDestruct" },
['Höllenfeuer III'] = {t=3000, icon="Spell_Fire_SelfDestruct" },
['Kräutersammeln'] = {t=5000, icon="Spell_Nature_NatureTouchGrow" },
['Verhexung'] = {t=2000, icon="Spell_Nature_Polymorph" },
['Verhexung von Rabenklaue'] = {t=2000, icon="Spell_Shadow_Charm" },
['Hochexplosive Bombe'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Winterschlaf'] = {t=1500, icon="Spell_Nature_Sleep" },
['Heiliges Feuer'] = {t=3500, icon="Spell_Holy_SearingLight" },
['Heiliges Licht'] = {t=2500, icon="Spell_Holy_HolyBolt" },
['Heiliges Schmettern'] = {t=2500, icon="Spell_Holy_HolySmite" },
['Heiliger Zorn'] = {t=2000, icon="Spell_Holy_Excorcism" },
['Ehrenpunkte +138'] = {t=1000, icon="Temp" },
['Ehrenpunkte +228'] = {t=1000, icon="Temp" },
['Ehrenpunkte +2388'] = {t=1000, icon="INV_BannerPVP_02" },
['Ehrenpunkte +378'] = {t=1000, icon="Temp" },
['Ehrenpunkte +398'] = {t=1000, icon="Temp" },
['Ehrenpunkte +50'] = {t=1000, icon="Temp" },
['Ehrenpunkte +82'] = {t=1000, icon="Temp" },
['Hakennetz'] = {t=500, icon="Ability_Ensnare" },
['Schreckensgeheul'] = {t=2000, icon="Spell_Shadow_DeathScream" },
['Heulende Wut'] = {t=5000, icon="Ability_BullRush" },
['Eisgrabmal'] = {t=1500, icon="Spell_Frost_Glacier" },
['Eisblitz'] = {t=2000, icon="Spell_Frost_FrostBolt02" },
['Eiszapfen'] = {t=1500, icon="Spell_Frost_FrostBolt02" },
['Eisblauer Roboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Brut identifizieren'] = {t=10000, icon="Spell_Lightning_LightningBolt01" },
['Fleisch entzünden'] = {t=2000, icon="Spell_Fire_Fire" },
['Kroshius entzünden'] = {t=3000, icon="Temp" },
['Ilkruds Wächter'] = {t=5000, icon="Spell_Shadow_SummonVoidWalker" },
['Brust erfüllen - Absorbieren'] = {t=5000, icon="Spell_Holy_GreaterHeal" },
['Brust erfüllen - Geringes Absorbieren'] = {t=5000, icon="Spell_Holy_GreaterHeal" },
['Brust erfüllen - Geringe Willenskraft'] = {t=5000, icon="Spell_Holy_GreaterHeal" },
['Brust erfüllen - Schwache Willenskraft'] = {t=5000, icon="Spell_Holy_GreaterHeal" },
['Umhang erfüllen - Schwacher Schutz'] = {t=5000, icon="Spell_Holy_GreaterHeal" },
['Umhang erfüllen - Schwacher Widerstand'] = {t=5000, icon="Spell_Holy_GreaterHeal" },
['Waffe erfüllen - Wildtiertöter'] = {t=5000, icon="Spell_Holy_GreaterHeal" },
['Feuerbrand'] = {t=2000, icon="Spell_Fire_Immolation" },
['Implosion'] = {t=10000, icon="Spell_Fire_SelfDestruct" },
['Brandpulver'] = {t=5000, icon="Temp" },
['Verbrennen'] = {t=2000, icon="Spell_Shadow_ChillTouch" },
['Verbrennung'] = {t=5000, icon="Temp" },
['Ruf erhöhen'] = {t=1000, icon="Temp" },
['Vision hervorrufen'] = {t=30000, icon="Spell_Shadow_LifeDrain" },
['Inferno'] = {t=2000, icon="Spell_Shadow_SummonInfernal" },
['Inferno-Muschelschale'] = {t=3000, icon="Spell_Fire_SelfDestruct" },
['Tintenschauer'] = {t=1000, icon="Spell_Nature_Sleep" },
['Sofort wirkendes Gift'] = {t=3000, icon="Ability_Poisons" },
['Sofort wirkendes Gift II'] = {t=3000, icon="Ability_Poisons" },
['Sofort wirkendes Gift III'] = {t=3000, icon="Ability_Poisons" },
['Sofort wirkendes Gift IV'] = {t=3000, icon="Ability_Poisons" },
['Sofort wirkendes Gift V'] = {t=3000, icon="Ability_Poisons" },
['Sofort wirkendes Gift VI'] = {t=3000, icon="Ability_Poisons" },
['Sofort wirkendes Toxin'] = {t=3000, icon="INV_Potion_19" },
['Lord Valthalaks Geist freigeben DND'] = {t=5000, icon="Temp" },
['Starke Schmerzen'] = {t=1000, icon="Spell_Shadow_ShadowWordPain" },
['Einschüchterndes Knurren'] = {t=1000, icon="Ability_Racial_Cannibalize" },
['Unsichtbar - Bärenfalle platzieren'] = {t=2000, icon="Temp" },
['Unsichtbarkeit'] = {t=3000, icon="Spell_Nature_Invisibilty" },
['Eisengranate'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Elfenbeinfarbener Raptor'] = {t=3000, icon="Ability_Mount_Raptor" },
['Ivus Teleporter Bild DND'] = {t=1000, icon="Temp" },
['J\'eevee beschwört ein Objekt'] = {t=2000, icon="Temp" },
['Jarkals Übersetzung'] = {t=4500, icon="Spell_Holy_Restoration" },
['Julies Segen'] = {t=2000, icon="Spell_Holy_Renew" },
['Springblitzschlag'] = {t=3000, icon="Spell_Nature_Lightning" },
['Kadraks Flagge'] = {t=2000, icon="INV_Banner_03" },
['Kalaran-Fackel herbeizaubern'] = {t=1000, icon="Temp" },
['Kev'] = {t=3000, icon="Spell_Fire_FireBolt" },
['Khadgars Öffnung'] = {t=10000, icon="INV_Misc_Key_14" },
['König der Gordok'] = {t=1000, icon="INV_Crown_02" },
['Kodokombobulator'] = {t=5000, icon="Trade_Fishing" },
['Kreegs Hauweg Starkbier'] = {t=1000, icon="INV_Drink_05" },
['Große Kupferbombe'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Große Zephyriumladung'] = {t=5000, icon="Temp" },
['Großer Waldwolf'] = {t=3000, icon="Ability_Mount_BlackDireWolf" },
['Leopard'] = {t=3000, icon="Ability_Mount_JungleTiger" },
['Lepraheilmittel!'] = {t=2000, icon="Spell_Holy_FlashHeal" },
['Geringes Heilen'] = {t=2500, icon="Spell_Holy_LesserHeal" },
['Geringe Welle der Heilung'] = {t=1500, icon="Spell_Nature_HealingWaveLesser" },
['Geringe Unsichtbarkeit'] = {t=3000, icon="Spell_Magic_LesserInvisibilty" },
['Geringes Manaöl'] = {t=3000, icon="Temp" },
['Geringes Zauberöl'] = {t=3000, icon="Temp" },
['Tödliches Toxin+'] = {t=3000, icon="Spell_Nature_CorrosiveBreath" },
['Lebensernte'] = {t=1000, icon="Spell_Shadow_Requiem" },
['Lebensdiebstahl'] = {t=1500, icon="Spell_Shadow_LifeDrain02" },
['Siegel aufheben'] = {t=2000, icon="Temp" },
['Blitzschlag'] = {t=3200, icon="Spell_Nature_Lightning" },
['Blitzschlag'] = {t=3000, icon="Spell_Nature_Lightning" },
['Blitzschlagatem'] = {t=2000, icon="Spell_Nature_Lightning" },
['Blitzschlagwolke'] = {t=3000, icon="Spell_Nature_CallStorm" },
['Blitzschlagtotem'] = {t=500, icon="Spell_Nature_Lightning" },
['Brunnen des Lichts'] = {t=1500, icon="Spell_Holy_SummonLightwell" },
['Linkens Bumerang'] = {t=500, icon="INV_Weapon_ShortBlade_10" },
['Echsenschlag'] = {t=2000, icon="Spell_Nature_Lightning" },
['Heuschreckenschwarm'] = {t=3000, icon="Spell_Nature_InsectSwarm" },
['Langschuss II'] = {t=4000, icon="Ability_Marksmanship" },
['Langschuss III'] = {t=4000, icon="Ability_Marksmanship" },
['Langsicht'] = {t=1000, icon="Ability_TownWatch" },
['Mondfesteinladung'] = {t=5000, icon="Spell_Arcane_TeleportMoonglade" },
['Maschinengewehr'] = {t=500, icon="Ability_Marksmanship" },
['Magathas Brandpulver'] = {t=1300, icon="Temp" },
['Magierblick'] = {t=3000, icon="Temp" },
['Magmaschlag'] = {t=1000, icon="Spell_Fire_FlameShock" },
['Majordomus-Teleporter - Bild'] = {t=1000, icon="Spell_Arcane_Blink" },
['Manabrand'] = {t=3000, icon="Spell_Shadow_ManaBurn" },
['Manasturm'] = {t=2000, icon="Spell_Frost_IceStorm" },
['Geist manifestieren'] = {t=5000, icon="Spell_Totem_WardOfDraining" },
['Manifestation der Säuberung'] = {t=4000, icon="Temp" },
['Mal der Flammen'] = {t=1000, icon="Spell_Fire_Fireball" },
['Schützen-Treffer'] = {t=2000, icon="Ability_Marksmanship" },
['Massenbannung'] = {t=1000, icon="Spell_Shadow_Teleport" },
['Massenheilung'] = {t=1000, icon="Spell_Holy_GreaterHeal" },
['Massiver Geysir'] = {t=1500, icon="Spell_Frost_SummonWaterElemental" },
['Massiver Mörser'] = {t=3000, icon="Temp" },
['Maibaum'] = {t=10000, icon="Spell_Shadow_Twilight" },
['Meboks Klugheitstrank'] = {t=3000, icon="Temp" },
['Mechanikreparaturset'] = {t=2000, icon="INV_Gizmo_03" },
['Mechanisches Eichhörnchen'] = {t=1000, icon="Spell_Shadow_Metamorphosis" },
['Megavolt'] = {t=2000, icon="Spell_Nature_ChainLightning" },
['Melodische Ekstase'] = {t=1000, icon="Temp" },
['Erz schmelzen'] = {t=1500, icon="Spell_Fire_SelfDestruct" },
['Verschmelzende Brühschlammer'] = {t=500, icon="INV_Potion_12" },
['Merithras Erwachen'] = {t=2000, icon="Temp" },
['Miblons Köder'] = {t=2000, icon="INV_Misc_Food_50" },
['Sonnenwendwürstchen'] = {t=1000, icon="INV_Misc_Food_53" },
['Macht von Ragnaros'] = {t=500, icon="Spell_Fire_SelfDestruct" },
['Macht von Shahram'] = {t=1000, icon="Spell_Nature_WispSplode" },
['Gedankenschlag'] = {t=1500, icon="Spell_Shadow_UnholyFrenzy" },
['Gedankenkontrolle'] = {t=3000, icon="Spell_Shadow_ShadowWordDominate" },
['Gedankenverfall'] = {t=2000, icon="Spell_Shadow_MindRot" },
['Gedankenbeben'] = {t=2000, icon="Spell_Nature_Earthquake" },
['Gedankenbenebelndes Gift'] = {t=3000, icon="Spell_Nature_NullifyDisease" },
['Gedankenbenebelndes Gift II'] = {t=3000, icon="Spell_Nature_NullifyDisease" },
['Gedankenbenebelndes Gift III'] = {t=3000, icon="Spell_Nature_NullifyDisease" },
['Mini-Pistole'] = {t=100, icon="INV_Musket_04" },
['Bergbau'] = {t=3200, icon="Trade_Mining" },
['Diener von Morganth'] = {t=2500, icon="Spell_Totem_WardOfDraining" },
['Malathroms Diener'] = {t=1000, icon="Spell_Shadow_CorpseExplode" },
['Schwaches Manaöl'] = {t=3000, icon="Temp" },
['Schwaches Zauberöl'] = {t=3000, icon="Temp" },
['Morastiger Matsch'] = {t=1000, icon="Spell_Nature_StrangleVines" },
['Mirkfallonfungus'] = {t=3000, icon="Spell_Holy_HarmUndeadAura" },
['Mistelzweig'] = {t=1000, icon="INV_Misc_Branch_01" },
['Mithrilschrapnellbombe'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Schmelzschlag'] = {t=2000, icon="Spell_Fire_Fire" },
['Flüssiges Metall'] = {t=2000, icon="Spell_Fire_Fireball" },
['Magmaregen'] = {t=2000, icon="Temp" },
['Mor\'rogal verzaubern'] = {t=1300, icon="Temp" },
['Rotgescheckter Raptor'] = {t=3000, icon="Ability_Mount_Raptor" },
['Nagmaras Liebestrank'] = {t=1000, icon="Temp" },
['Narain!'] = {t=3000, icon="INV_Misc_Head_Gnome_01" },
['Naralex\' Alptraum'] = {t=2000, icon="Spell_Nature_Sleep" },
['Naturschwäche'] = {t=5000, icon="INV_Misc_QirajiCrystal_03" },
['Ruchloser Angriff 001'] = {t=1000, icon="Temp" },
['Netheredelstein'] = {t=3000, icon="Temp" },
['Nachtkriecher'] = {t=5000, icon="Trade_Fishing" },
['Nachtsäbler'] = {t=3000, icon="Ability_Mount_BlackPanther" },
['Nostalgie'] = {t=4000, icon="Spell_Shadow_LifeDrain" },
['Mana neutralisieren'] = {t=2000, icon="Spell_Shadow_DarkRitual" },
['Benebelnder Schmerz'] = {t=1500, icon="Spell_Nature_CorrosiveBreath" },
['Obsidianschwarzer Raptor'] = {t=3000, icon="Ability_Mount_Raptor" },
['Öffnen'] = {t=5000, icon="Temp" },
['Öffnen'] = {t=5000, icon="Temp" },
['Bartür öffnen'] = {t=5000, icon="Temp" },
['Benedicts Truhe öffnen'] = {t=5000, icon="Temp" },
['Beutetruhe öffnen'] = {t=5000, icon="Temp" },
['Käfig öffnen'] = {t=5000, icon="Temp" },
['Truhe öffnen'] = {t=5000, icon="Temp" },
['Dunklen Kasten öffnen'] = {t=5000, icon="Temp" },
['Großen Skarabäuskasten öffnen'] = {t=5000, icon="Temp" },
['Reliktkasten öffnen'] = {t=5000, icon="Temp" },
['Safe öffnen'] = {t=5000, icon="Temp" },
['Skarabäuskasten öffnen'] = {t=5000, icon="Temp" },
['Geheimen Safe öffnen'] = {t=5000, icon="Temp" },
['Sicheren Safe öffnen'] = {t=5000, icon="Temp" },
['Briefkasten von Stratholme öffnen'] = {t=5000, icon="Temp" },
['Geldkassette öffnen'] = {t=5000, icon="Temp" },
['Termitenfass öffnen'] = {t=5000, icon="Temp" },
['Ouro Abtauchen Bild'] = {t=1500, icon="Spell_Fire_Volcano" },
['Eulengestalt'] = {t=5000, icon="Spell_Nature_RavenForm" },
['Ozzie explodiert'] = {t=2000, icon="Temp" },
['Palamino-Hengst'] = {t=3000, icon="Ability_Mount_RidingHorse" },
['Palomino-Hengst'] = {t=3000, icon="Ability_Mount_RidingHorse" },
['Panther'] = {t=3000, icon="Ability_Mount_BlackPanther" },
['Pantherkäfigschlüssel'] = {t=5000, icon="Temp" },
['Parasit'] = {t=2000, icon="Ability_Poisons" },
['Partylaune'] = {t=1000, icon="Spell_Shadow_DarkSummoning" },
['Arbeiterverkleidung'] = {t=3000, icon="Ability_Rogue_Disguise" },
['Peon-Verkleidung'] = {t=3000, icon="Ability_Rogue_Disguise" },
['Dauerhafte \'Bischöfin Tyriona\'-Illusion'] = {t=3000, icon="Ability_Rogue_Disguise" },
['Dauerhafte Tyrion-Illusion'] = {t=3000, icon="Ability_Rogue_Disguise" },
['Schloss knacken'] = {t=5000, icon="Spell_Nature_MoonKey" },
['Taschendieb (PT)'] = {t=5000, icon="Temp" },
['Stichschatten'] = {t=2000, icon="Spell_Shadow_ChillTouch" },
['Säulenerforschung'] = {t=5000, icon="Temp" },
['Schecke'] = {t=3000, icon="Ability_Mount_RidingHorse" },
['Arkanitboje platzieren'] = {t=2000, icon="Temp" },
['Geistermagneten platzieren'] = {t=1500, icon="Temp" },
['Löwengerippe platzieren'] = {t=2500, icon="INV_Misc_Bowl_01" },
['Orakel platzieren'] = {t=3000, icon="Temp" },
['Dreschadongerippe platzieren'] = {t=2500, icon="INV_Misc_Bowl_01" },
['Toxinvernebler platzieren'] = {t=3000, icon="INV_Cask_01" },
['Unbefeuerte Klinge platzieren'] = {t=1000, icon="Temp" },
['Ungeschmiedetes Siegel platzieren'] = {t=500, icon="Temp" },
['Signalfackel platzieren'] = {t=2300, icon="Temp" },
['Bärenfalle platzieren'] = {t=2000, icon="Temp" },
['Anhänger platzieren'] = {t=5000, icon="Temp" },
['Smokeys Sprengstoff platzieren'] = {t=3000, icon="Temp" },
['Seuchenwolke'] = {t=2000, icon="Spell_Shadow_CallofBone" },
['Gedanken verseuchen'] = {t=4000, icon="Spell_Shadow_CallofBone" },
['Gor\'tesh-Kopf einpflanzen'] = {t=5000, icon="Temp" },
['Magische Bohnen pflanzen'] = {t=2000, icon="INV_Misc_Food_Wheat_02" },
['Samenkörner pflanzen'] = {t=5000, icon="Temp" },
['Flagge aufstellen'] = {t=2300, icon="Temp" },
['Guses Signal platzieren'] = {t=5000, icon="Temp" },
['Ichmans Signal platzieren'] = {t=5000, icon="Temp" },
['Jeztors Signal platzieren'] = {t=5000, icon="Temp" },
['Mulvericks Signal platzieren'] = {t=5000, icon="Temp" },
['Rysons Signal platzieren'] = {t=5000, icon="Temp" },
['Slidores Signal platzieren'] = {t=5000, icon="Temp" },
['Vipores Signal platzieren'] = {t=5000, icon="Temp" },
['Spitzer Stachel'] = {t=500, icon="Ability_ImpalingBolt" },
['Giftblitz'] = {t=2500, icon="Spell_Nature_CorrosiveBreath" },
['Giftwolke'] = {t=1000, icon="Spell_Nature_Regenerate" },
['Giftstachel'] = {t=2000, icon="INV_Misc_MonsterTail_03" },
['Vergiftete Harpune'] = {t=2000, icon="Ability_Poisons" },
['Vergifteter Schuss'] = {t=2000, icon="Ability_Poisons" },
['Giftspucke'] = {t=2000, icon="Spell_Nature_CorrosiveBreath" },
['Polaritätsveränderung'] = {t=3000, icon="Spell_Nature_Lightning" },
['Verwandlung'] = {t=1500, icon="Spell_Nature_Polymorph" },
['Verwandlung: Kuh'] = {t=1500, icon="Spell_Nature_Polymorph_Cow" },
['Verwandlung: Schwein'] = {t=1500, icon="Spell_Magic_PolymorphPig" },
['Verwandlung: Schildkröte'] = {t=1500, icon="Ability_Hunter_Pet_Turtle" },
['Portal: Darnassus'] = {t=10000, icon="Spell_Arcane_PortalDarnassus" },
['Portal: Ironforge'] = {t=10000, icon="Spell_Arcane_PortalIronForge" },
['Portal: Karazhan'] = {t=10000, icon="Spell_Arcane_PortalUnderCity" },
['Portal: Orgrimmar'] = {t=10000, icon="Spell_Arcane_PortalOrgrimmar" },
['Portal: Stormwind'] = {t=10000, icon="Spell_Arcane_PortalStormWind" },
['Portal: Thunder Bluff'] = {t=10000, icon="Spell_Arcane_PortalThunderBluff" },
['Portal: Undercity'] = {t=10000, icon="Spell_Arcane_PortalUnderCity" },
['Trankwurf'] = {t=2000, icon="Spell_Misc_Drink" },
['Mächtige Zephyriumladung'] = {t=5000, icon="Temp" },
['Mächtiges Riechsalz'] = {t=2000, icon="INV_Misc_Ammo_Gunpowder_01" },
['Elunes Gebet'] = {t=1000, icon="Spell_Holy_Resurrection" },
['Gebet der Heilung'] = {t=3000, icon="Spell_Holy_PrayerOfHealing02" },
['Gegenwart des Todes'] = {t=1000, icon="Spell_Shadow_ShadeTrueSight" },
['Urzeitleopard'] = {t=3000, icon="Ability_Mount_JungleTiger" },
['Prinzessin beschwört Portal'] = {t=10000, icon="Spell_Arcane_PortalIronForge" },
['Proudmoores Verteidigung'] = {t=3000, icon="Spell_Holy_BlessingOfProtection" },
['Psychometrie'] = {t=5000, icon="Spell_Holy_Restoration" },
['Essen läutern und platzieren'] = {t=5000, icon="INV_Misc_Bowl_01" },
['Purpurhände'] = {t=4000, icon="Spell_Shadow_SiphonMana" },
['Lila Roboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Purpurnes Skelettschlachtross'] = {t=3000, icon="Ability_Mount_Undeadhorse" },
['Pyroschlag'] = {t=6000, icon="Spell_Fire_Fireball02" },
['Quest - Sergra Darkthorn - Zauber'] = {t=3000, icon="Temp" },
['Quest - Treant beschwören'] = {t=3000, icon="Spell_Nature_NatureTouchGrow" },
['Quest - Teleport Spawn-out'] = {t=1000, icon="Temp" },
['Quest - Trollhelden beschwören - Bild'] = {t=30000, icon="Temp" },
['Schneller Kampfrausch'] = {t=2000, icon="Spell_Nature_BloodLust" },
['Schneller Flammenzauberschutz'] = {t=1500, icon="Spell_Fire_SealOfFire" },
['Schneller Frostzauberschutz'] = {t=1500, icon="Spell_Fire_SealOfFire" },
['Strahlungsblitz'] = {t=3000, icon="Spell_Shadow_CorpseExplode" },
['Thules Wut'] = {t=1500, icon="Spell_Shadow_UnholyFrenzy" },
['Ragnaros Auftauchen'] = {t=2900, icon="Spell_Fire_LavaSpawn" },
['Feuerregen'] = {t=3000, icon="Spell_Shadow_RainOfFire" },
['Totenerweckung'] = {t=1000, icon="Spell_Shadow_RaiseDead" },
['Untoten Skarabäus erwecken'] = {t=1000, icon="Spell_Shadow_Contagion" },
['Raptorfeder'] = {t=5000, icon="Temp" },
['Grimmhauer'] = {t=1000, icon="Spell_Nature_Thorns" },
['Wiedergeburt'] = {t=2000, icon="Spell_Nature_Reincarnation" },
['Rückruf'] = {t=10000, icon="Temp" },
['Worte von Celebras rezitieren'] = {t=3000, icon="Temp" },
['Rekonstruktion'] = {t=3000, icon="Temp" },
['Rotblauer Roboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Red Dragon Transform DND'] = {t=1000, icon="Temp" },
['Roter Roboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Rotes Skelettpferd'] = {t=3000, icon="Ability_Mount_Undeadhorse" },
['Rotes Skelettschlachtross'] = {t=3000, icon="Ability_Mount_Undeadhorse" },
['Roter Wolf'] = {t=3000, icon="Ability_Mount_BlackDireWolf" },
['Erlösung'] = {t=10000, icon="Spell_Holy_Resurrection" },
['Nachwachsen'] = {t=2000, icon="Spell_Nature_ResistNature" },
['Rentierstaubeffekt'] = {t=8000, icon="Temp" },
['Wichtel freigeben'] = {t=2000, icon="Temp" },
['J\'eevee erlösen'] = {t=2000, icon="Temp" },
['Zornklaue freigeben'] = {t=10000, icon="Temp" },
['Die Hunde loslassen'] = {t=2000, icon="Temp" },
['Umis Yeti freigeben'] = {t=2000, icon="Temp" },
['Winnas Kätzchen freigeben'] = {t=1000, icon="Ability_Seal" },
['Verderbten Brühschlammer freigeben'] = {t=5000, icon="INV_Potion_19" },
['Fernzündung'] = {t=1000, icon="INV_Misc_StoneTablet_04" },
['Abzeichen entfernen'] = {t=1000, icon="Temp" },
['Erneuerung'] = {t=2000, icon="Spell_Holy_Renew" },
['Geist auffüllen'] = {t=3000, icon="Spell_Nature_MoonGlow" },
['Geist auffüllen II'] = {t=3000, icon="Spell_Nature_MoonGlow" },
['Ruf - Ahn\'Qiraj Tempelendgegner'] = {t=1000, icon="Temp" },
['Ruf - Booty Bay +500'] = {t=1000, icon="Temp" },
['Ruf - Everlook +500'] = {t=1000, icon="Temp" },
['Ruf - Gadgetzan +500'] = {t=1000, icon="Temp" },
['Ruf - Ratchet +500'] = {t=1000, icon="Temp" },
['Neulieferung'] = {t=2000, icon="Spell_Misc_Drink" },
['Auferstehung'] = {t=10000, icon="Spell_Holy_Resurrection" },
['Würgeseuche'] = {t=2000, icon="Spell_Shadow_CallofBone" },
['Grubenratte wiederbeleben'] = {t=3000, icon="Spell_Holy_Resurrection" },
['Tier wiederbeleben'] = {t=10000, icon="Ability_Hunter_BeastSoothe" },
['Ringo wiederbeleben'] = {t=2500, icon="Temp" },
['Reitkodo'] = {t=3000, icon="INV_Misc_Head_Tauren_02" },
['Reitschildkröte'] = {t=3000, icon="Ability_Hunter_Pet_Turtle" },
['Rissleuchtfeuer'] = {t=2000, icon="Spell_Nature_AbolishMagic" },
['Rechtschaffene Flamme'] = {t=4000, icon="Spell_Holy_InnerFire" },
['Rimblat lässt Blumen wachsen'] = {t=2000, icon="Temp" },
['Ritual der Verdammnis'] = {t=10000, icon="Spell_Shadow_AntiMagicShell" },
['Ritual der Verdammnis'] = {t=10000, icon="Spell_Arcane_PortalDarnassus" },
['Ritual der Beschwörung'] = {t=5000, icon="Spell_Shadow_Twilight" },
['Ritual der Beschwörung'] = {t=5000, icon="Temp" },
['Raketenschlag'] = {t=3000, icon="Temp" },
['Krähenhorstwelpe - Spawningzauber'] = {t=500, icon="Temp" },
['Rotationsauslöser'] = {t=3000, icon="Temp" },
['Raue Kupferbombe'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Raues Dynamit'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Rumsey-Rum'] = {t=1000, icon="INV_Drink_03" },
['Schwarzer Rumsey Rum'] = {t=1000, icon="INV_Drink_04" },
['Dunkler Rumsey-Rum'] = {t=1000, icon="INV_Drink_04" },
['Klarer Rumsey-Rum'] = {t=1000, icon="INV_Drink_08" },
['Rune des Öffnens'] = {t=5000, icon="Temp" },
['Ruul Snowhoof Formwandel (DND)'] = {t=1000, icon="Temp" },
['Rysons allsehendes Auge'] = {t=1000, icon="Ability_Ambush" },
['Rysons Himmelsauge'] = {t=1000, icon="Ability_Hunter_EagleEye" },
['Opferung'] = {t=1000, icon="Spell_Holy_DivineIntervention" },
['Spinndrüsen-Opferung'] = {t=10000, icon="Temp" },
['Sandstoß'] = {t=2000, icon="Spell_Nature_Cyclone" },
['Sandatem'] = {t=2000, icon="Spell_Fire_WindsofWoe" },
['Pionierexplosion'] = {t=5000, icon="Spell_Fire_SelfDestruct" },
['Saphiron'] = {t=20000, icon="Temp" },
['Sarilus\' Elementare'] = {t=3000, icon="Spell_Shadow_RaiseDead" },
['Wildtier ängstigen'] = {t=1500, icon="Ability_Druid_Cower" },
['Scharlachrot-Auferstehung'] = {t=2000, icon="Spell_Holy_Resurrection" },
['Portal der Schmetterschilde'] = {t=1500, icon="Spell_Arcane_TeleportOrgrimmar" },
['Versengen'] = {t=1500, icon="Spell_Fire_SoulBurn" },
['Sengende Flammen'] = {t=2000, icon="Spell_Fire_Immolation" },
['Sengender Schmerz'] = {t=1500, icon="Spell_Fire_SoulBurn" },
['Verführung'] = {t=1500, icon="Spell_Shadow_MindSteal" },
['Sickernde Weide'] = {t=1000, icon="Spell_Nature_CorrosiveBreath" },
['Sergra Darkthorn'] = {t=3000, icon="Temp" },
['Selbstzerstörung'] = {t=7000, icon="Spell_Fire_SelfDestruct" },
['Selbstdetonation'] = {t=7000, icon="Spell_Fire_SelfDestruct" },
['Selbst-Auferstehung'] = {t=5000, icon="Temp" },
['Schlangensäuberung'] = {t=30000, icon="Spell_Shadow_LifeDrain" },
['NG-5-Ladung einstellen (Blau)'] = {t=5000, icon="INV_Misc_Bomb_05" },
['NG-5-Ladung einstellen (Rot)'] = {t=5000, icon="INV_Misc_Bomb_05" },
['Untote fesseln'] = {t=1500, icon="Spell_Nature_Slow" },
['Schattenblitz'] = {t=3000, icon="Spell_Shadow_ShadowBolt" },
['Fehlgeschlagener Schattenblitz'] = {t=2000, icon="Spell_Shadow_ShadowBolt" },
['Schattenblitzsalve'] = {t=3000, icon="Spell_Shadow_ShadowBolt" },
['Schattenflamme'] = {t=2000, icon="Spell_Fire_Incinerate" },
['Schattennova II'] = {t=3000, icon="Spell_Shadow_ShadeTrueSight" },
['Schattenöl'] = {t=3000, icon="Temp" },
['Schattenhafen'] = {t=250, icon="Spell_Shadow_AntiShadow" },
['Schattenportal'] = {t=1000, icon="Spell_Shadow_SealOfKings" },
['Schattenwiderstand'] = {t=1000, icon="Spell_Frost_WizardMark" },
['Schattenschale'] = {t=1000, icon="Spell_Shadow_AntiShadow" },
['Schattenschwäche'] = {t=5000, icon="INV_Misc_QirajiCrystal_05" },
['Schattenblinzeln'] = {t=500, icon="Spell_Shadow_DetectLesserInvisibility" },
['Gemeinsame Bande'] = {t=1500, icon="Spell_Shadow_UnsummonBuilding" },
['Klinge schärfen'] = {t=3000, icon="Temp" },
['Klinge schärfen II'] = {t=3000, icon="Temp" },
['Klinge schärfen III'] = {t=3000, icon="Temp" },
['Klinge schärfen IV'] = {t=3000, icon="Temp" },
['Klinge schärfen V'] = {t=3000, icon="Temp" },
['Waffe schärfen - Kritisch'] = {t=3000, icon="Temp" },
['Shays Glocke'] = {t=4500, icon="Temp" },
['Schild der Reflektion'] = {t=1000, icon="Spell_Shadow_Teleport" },
['Glänzendes Schmuckstück'] = {t=5000, icon="INV_Misc_Orb_03" },
['Schock'] = {t=1000, icon="Temp" },
['Schockwelle'] = {t=2000, icon="Ability_Whirlwind" },
['Bogenschuss'] = {t=1000, icon="Ability_Marksmanship" },
['Armbrust abschießen'] = {t=1000, icon="Ability_Marksmanship" },
['Schusswaffe abfeuern'] = {t=1000, icon="Ability_Marksmanship" },
['Geschoss abfeuern'] = {t=3000, icon="INV_Ammo_Bullet_03" },
['Rakete abfeuern'] = {t=3000, icon="INV_Ammo_Bullet_03" },
['Schredderrüstungsschmelze'] = {t=2000, icon="Spell_Fire_Incinerate" },
['Schrumpfen'] = {t=3000, icon="Spell_Shadow_AntiShadow" },
['Stille'] = {t=1500, icon="Spell_Holy_Silence" },
['Silithidenpocken'] = {t=2000, icon="Spell_Nature_NullifyDisease" },
['Silberdietrich'] = {t=5000, icon="Temp" },
['Einfacher Teleporter'] = {t=1000, icon="Spell_Magic_LesserInvisibilty" },
['Einfacher Gruppen-Teleporter'] = {t=2000, icon="Spell_Magic_LesserInvisibilty" },
['Einfacher Teleporter - Andere'] = {t=1000, icon="Spell_Magic_LesserInvisibilty" },
['Skelettpferd'] = {t=3000, icon="Ability_Mount_Undeadhorse" },
['Skelettminenarbeiterexplosion'] = {t=5000, icon="Spell_Fire_SelfDestruct" },
['Skelettross'] = {t=3000, icon="Ability_Mount_Undeadhorse" },
['Kürschnerei'] = {t=2500, icon="INV_Misc_Pelt_Wolf_01" },
['Zerschmettern'] = {t=1500, icon="Ability_Warrior_DecisiveStrike" },
['Sklavensauger'] = {t=1000, icon="Spell_Shadow_ChillTouch" },
['Schlaf'] = {t=1500, icon="Spell_Nature_Sleep" },
['Schleimblitz'] = {t=2500, icon="Spell_Nature_CorrosiveBreath" },
['Schmutz schleudern'] = {t=1000, icon="Spell_Nature_Sleep" },
['Matsch schleudern'] = {t=1000, icon="Spell_Nature_Sleep" },
['Schleichendes Gift'] = {t=1000, icon="Spell_Nature_SlowPoison" },
['Schleichendes Gift II'] = {t=1000, icon="Spell_Nature_SlowPoison" },
['Verlangsamendes Gift'] = {t=1000, icon="Spell_Nature_SlowPoison" },
['Schlammtoxin'] = {t=2000, icon="Spell_Nature_Regenerate" },
['Kleine Bronzebombe'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Kleine Zephyriumladung'] = {t=5000, icon="Temp" },
['Göttliche Pein'] = {t=2500, icon="Spell_Holy_HolySmite" },
['Liebesrausch'] = {t=1000, icon="INV_Ammo_Arrow_02" },
['Schneemann'] = {t=1500, icon="INV_Ammo_Snowball" },
['Schnüffelnase-Befehl'] = {t=1500, icon="Spell_Shadow_LifeDrain" },
['Sol H'] = {t=3000, icon="Spell_Frost_ManaRecharge" },
['Sol L'] = {t=3000, icon="Spell_Frost_ManaRecharge" },
['Sol M'] = {t=3000, icon="Spell_Frost_ManaRecharge" },
['Sol U'] = {t=3000, icon="Spell_Frost_ManaRecharge" },
['Robustes Dynamit'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Tier besänftigen'] = {t=1500, icon="Ability_Hunter_BeastSoothe" },
['Seelenbiss'] = {t=2000, icon="Spell_Shadow_SiphonMana" },
['Seelenbrecher'] = {t=2000, icon="Spell_Shadow_Haunting" },
['Seelenverzehr'] = {t=4000, icon="Ability_Racial_Cannibalize" },
['Seelensauger'] = {t=2000, icon="Spell_Shadow_LifeDrain02" },
['Seelenfeuer'] = {t=6000, icon="Spell_Fire_Fireball02" },
['Seelenzertrümmerung'] = {t=2000, icon="Spell_Fire_Fire" },
['Seelenstein-Auferstehung'] = {t=3000, icon="Spell_Shadow_SoulGem" },
['Südmeerpiratenverkleidung'] = {t=3000, icon="Ability_Rogue_Disguise" },
['Südmeerkanonenfeuer'] = {t=5000, icon="Spell_Fire_FireBolt02" },
['Funke'] = {t=2000, icon="Spell_Nature_Lightning" },
['Brut-Herausforderung an Urok'] = {t=2000, icon="Temp" },
['Mit Köpfen sprechen'] = {t=5000, icon="Spell_Shadow_LifeDrain" },
['Zauber-Ablenkung (NYI)'] = {t=1000, icon="Temp" },
['Kristallstaubmörser'] = {t=500, icon="Spell_Fire_Fireball02" },
['Stachelsalve'] = {t=500, icon="Ability_ImpalingBolt" },
['Willensverfall'] = {t=2000, icon="Spell_Holy_HarmUndeadAura" },
['Geist Spawn-out'] = {t=500, icon="Temp" },
['Geistdiebstahl'] = {t=2000, icon="Spell_Shadow_Possession" },
['Gefleckter Frostsäbler'] = {t=3000, icon="Ability_Mount_WhiteTiger" },
['Gefleckter Panther'] = {t=3000, icon="Ability_Mount_BlackPanther" },
['Geläutertes Wasser versprühen'] = {t=6000, icon="Temp" },
['Sternenfeuer'] = {t=3500, icon="Spell_Arcane_StarFire" },
['Stahlroboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Steinzwerg wecken\'-Bild'] = {t=1500, icon="Spell_Nature_Earthquake" },
['Versteinert - Kanalisierung wirken - Bild'] = {t=3000, icon="Spell_Nature_Cyclone" },
['Steinhaut'] = {t=6000, icon="Spell_Nature_EnchantArmor" },
['Splittersteintroggverkleidung'] = {t=3000, icon="Ability_Rogue_Disguise" },
['Sturmblitz'] = {t=1000, icon="INV_Hammer_01" },
['Streitwidder der Stormpike'] = {t=3000, icon="Ability_Mount_MountainRam" },
['Kraft von Arko\'narin'] = {t=4000, icon="Spell_Nature_AstralRecal" },
['Stärke des Alters'] = {t=2000, icon="Spell_Shadow_Requiem" },
['Schlag'] = {t=2000, icon="Temp" },
['Gestreifter Frostsäbler'] = {t=3000, icon="Ability_Mount_WhiteTiger" },
['Gestreifter Nachtsäbler'] = {t=3000, icon="Ability_Mount_BlackPanther" },
['Feststecken'] = {t=10000, icon="Spell_Shadow_Teleport" },
['Betäubungsbombe'] = {t=2000, icon="Spell_Fire_SelfDestruct" },
['Betäubungsbombenangriff'] = {t=2000, icon="Spell_Fire_SelfDestruct" },
['Abtauchen Bild'] = {t=1500, icon="Spell_Fire_Volcano" },
['Beschwören'] = {t=1000, icon="Spell_Arcane_Blink" },
['Alarm-o-bot beschwören'] = {t=250, icon="INV_Gizmo_08" },
['Albinonatter beschwören'] = {t=1000, icon="Ability_Seal" },
['Albinoschnappkiefer beschwören'] = {t=1000, icon="Ability_Seal" },
['Urtumgeister beschwören'] = {t=2000, icon="Temp" },
['Ancona-Huhn beschwören'] = {t=1000, icon="Ability_Seal" },
['Aquementas beschwören'] = {t=2000, icon="Temp" },
['Ar\'lia beschwören'] = {t=2500, icon="Spell_Nature_GroundingTotem" },
['Skelett der Atal\'ai beschwören'] = {t=1000, icon="Spell_Shadow_RaiseDead" },
['Azurblauen Welpling beschwören'] = {t=1000, icon="Ability_Seal" },
['Babyhai beschwören'] = {t=1000, icon="Ability_Seal" },
['Schwarze Königsnatter beschwören'] = {t=1000, icon="Ability_Seal" },
['Schwarze Qirajipanzerdrohne beschwören'] = {t=3000, icon="INV_Misc_QirajiCrystal_05" },
['Blackhand-Schreckenswirker beschwören'] = {t=5000, icon="Spell_Nature_Purge" },
['Blackhand-Veteranen beschwören'] = {t=5000, icon="Spell_Nature_Purge" },
['Blutpapagei beschwören'] = {t=1000, icon="Ability_Seal" },
['Blutblütenminiplagen beschwören'] = {t=2000, icon="Spell_Shadow_DarkSummoning" },
['Blaue Qirajipanzerdrohne beschwören'] = {t=3000, icon="INV_Misc_QirajiCrystal_04" },
['Blauen Flitzer beschwören'] = {t=1000, icon="Ability_Seal" },
['Ebergeist beschwören'] = {t=1500, icon="Spell_Magic_PolymorphPig" },
['Bombe beschwören'] = {t=1000, icon="Ability_Seal" },
['Bombay beschwören'] = {t=1000, icon="Ability_Seal" },
['Bronzewelpling beschwören'] = {t=1000, icon="Ability_Seal" },
['Braune Natter beschwören'] = {t=1000, icon="Ability_Seal" },
['Aasskarabäus beschwören'] = {t=2000, icon="Spell_Shadow_CarrionSwarm" },
['Streitross beschwören'] = {t=3000, icon="Ability_Mount_Charger" },
['Nymphensittich beschwören'] = {t=1000, icon="Ability_Seal" },
['Kakadu beschwören'] = {t=1000, icon="Ability_Seal" },
['Kakerlake beschwören'] = {t=1000, icon="Ability_Seal" },
['Verbreitetes Kätzchen beschwören'] = {t=2000, icon="INV_Box_PetCarrier_01" },
['Cornish Rex beschwören'] = {t=1000, icon="Ability_Seal" },
['Verderbtes Kätzchen beschwören'] = {t=1000, icon="Ability_Seal" },
['Waldkaninchen beschwören'] = {t=1000, icon="Ability_Seal" },
['Purpurrote Natter beschwören'] = {t=1000, icon="Ability_Seal" },
['Purpurroten Welpling beschwören'] = {t=1000, icon="Ability_Seal" },
['Cyclonian beschwören'] = {t=10000, icon="Spell_Nature_EarthBind" },
['Dagun beschwören'] = {t=5000, icon="Temp" },
['Dunkelwelpling beschwören'] = {t=1000, icon="Ability_Seal" },
['Pfeilfrosch beschwören'] = {t=1000, icon="Ability_Seal" },
['Dämon der Kugel beschwören'] = {t=5000, icon="Temp" },
['Diablo beschwören'] = {t=1000, icon="Ability_Seal" },
['Ekelhaften Schlammling beschwören'] = {t=1000, icon="Ability_Seal" },
['Schreckensross herbeirufen'] = {t=3000, icon="Ability_Mount_Dreadsteed" },
['Adlereule beschwören'] = {t=1000, icon="Ability_Seal" },
['Echeyakee beschwören'] = {t=500, icon="Spell_Shadow_LifeDrain" },
['Edana Hasskralle beschwören'] = {t=4000, icon="Temp" },
['Beschwören'] = {t=5000, icon="Spell_Shadow_AnimateDead" },
['Elfen-Irrwisch beschwören'] = {t=1000, icon="Ability_Seal" },
['Glut beschwören'] = {t=2000, icon="Spell_Fire_Fire" },
['Smaragdgrünen Welpling beschwören'] = {t=1000, icon="Ability_Seal" },
['Feenling beschwören'] = {t=1000, icon="Ability_Seal" },
['Hofhuhn beschwören'] = {t=1000, icon="Ability_Seal" },
['Teufelsjäger beschwören'] = {t=10000, icon="Spell_Shadow_SummonFelHunter" },
['Teufelsross beschwören'] = {t=3000, icon="Spell_Nature_Swiftness" },
['Schwächliches Skelett beschwören'] = {t=10000, icon="Spell_Shadow_RaiseDead" },
['Knirschkiefer beschwören'] = {t=3000, icon="Temp" },
['Goblin-Bombe beschwören'] = {t=250, icon="Ability_Repair" },
['Große Ohreule beschwören'] = {t=1000, icon="Ability_Seal" },
['Grüne Qirajipanzerdrohne beschwören'] = {t=3000, icon="INV_Misc_QirajiCrystal_03" },
['Grüne Wassernatter beschwören'] = {t=1000, icon="Ability_Seal" },
['Grünen Ara beschwören'] = {t=1000, icon="Ability_Seal" },
['Gunthers Angesicht beschwören'] = {t=2000, icon="Temp" },
['Gurky beschwören'] = {t=1000, icon="Ability_Seal" },
['Falkeneule beschwören'] = {t=1000, icon="Ability_Seal" },
['Falkenschnabelschnappkiefer beschwören'] = {t=1000, icon="Ability_Seal" },
['Helculars Marionetten beschwören'] = {t=3000, icon="Spell_Shadow_Haunting" },
['Hippogryphenjunges'] = {t=1000, icon="Ability_Seal" },
['Hyazinth-Ara beschwören'] = {t=1000, icon="Ability_Seal" },
['Illusionäre Traumbehüter beschwören'] = {t=1000, icon="Spell_Shadow_Teleport" },
['Illusionären Nachtmahr beschwören'] = {t=2000, icon="Spell_Fire_SealOfFire" },
['Illusionäres Trugbild beschwören'] = {t=2000, icon="Spell_Fire_SealOfFire" },
['Illusionäres Gespenst beschwören'] = {t=1000, icon="Spell_Shadow_Teleport" },
['Wichtel beschwören'] = {t=10000, icon="Spell_Shadow_SummonImp" },
['Höllenbestiendiener beschwören'] = {t=2000, icon="Spell_Shadow_SummonInfernal" },
['Ishamuhale beschwören'] = {t=2000, icon="Spell_Shadow_LifeDrain" },
['Inselfrosch beschwören'] = {t=1000, icon="Ability_Seal" },
['Jubling beschwören'] = {t=1000, icon="Ability_Seal" },
['Karangs Banner beschwören'] = {t=500, icon="Temp" },
['Lederrückenschnappkiefer beschwören'] = {t=1000, icon="Ability_Seal" },
['Lebensechte Kröte beschwören'] = {t=1000, icon="Ability_Seal" },
['Lebendige Flamme beschwören'] = {t=2000, icon="Spell_Fire_Fire" },
['Flachkopfschnappkiefer beschwören'] = {t=1000, icon="Ability_Seal" },
['Mondklaue beschwören'] = {t=3000, icon="Temp" },
['Werwolfirrbild beschwören'] = {t=1000, icon="Spell_Shadow_Teleport" },
['Magiestab beschwören'] = {t=2000, icon="INV_Staff_26" },
['Verheerer der Magram beschwören'] = {t=4000, icon="Spell_Shadow_RaiseDead" },
['Maine Coon beschwören'] = {t=1000, icon="Ability_Seal" },
['Mechanisches Huhn beschwören'] = {t=1000, icon="Ability_Seal" },
['Untergebenen beschwören'] = {t=500, icon="Temp" },
['Dr. Wackel beschwören'] = {t=1000, icon="Ability_Seal" },
['Murki beschwören'] = {t=1000, icon="Ability_Seal" },
['Murky beschwören'] = {t=1000, icon="Ability_Seal" },
['Myzrael beschwören'] = {t=10000, icon="Spell_Shadow_LifeDrain" },
['Netherwandler beschwören'] = {t=4000, icon="Spell_Shadow_GatherShadows" },
['Olivfarbenen Schnappkiefer beschwören'] = {t=1000, icon="Ability_Seal" },
['Onyxiawelpen beschwören'] = {t=2000, icon="Temp" },
['Orangene Tigerkatze beschwören'] = {t=1000, icon="Ability_Seal" },
['Waisenkind rufen'] = {t=1000, icon="Ability_Seal" },
['Panda beschwören'] = {t=1000, icon="Ability_Seal" },
['Poley beschwören'] = {t=1000, icon="Ability_Seal" },
['Präriehuhn beschwören'] = {t=1000, icon="Ability_Seal" },
['Präriehund beschwören'] = {t=1000, icon="Ability_Seal" },
['Ragnaros beschwören'] = {t=10000, icon="Spell_Fire_LavaSpawn" },
['Razelikh beschwören'] = {t=10000, icon="Temp" },
['Rote Qirajipanzerdrohne beschwören'] = {t=3000, icon="INV_Misc_QirajiCrystal_02" },
['Ferngesteuerten Golem beschwören'] = {t=3000, icon="Ability_Repair" },
['Bandnatter beschwören'] = {t=1000, icon="Ability_Seal" },
['Reitgreif beschwören'] = {t=3000, icon="Ability_BullRush" },
['Auferstandenen Lakaien beschwören'] = {t=2000, icon="Spell_Shadow_RaiseDead" },
['Roboter beschwören'] = {t=1000, icon="Ability_Seal" },
['Steinschwingengargoyles beschwören'] = {t=10000, icon="Spell_Shadow_UnsummonBuilding" },
['Krähenhorstwelpen beschwören'] = {t=2000, icon="Temp" },
['Scharlachrote Natter beschwören'] = {t=1000, icon="Ability_Seal" },
['Kreischergeist beschwören'] = {t=2000, icon="Temp" },
['Senegal beschwören'] = {t=1000, icon="Ability_Seal" },
['Schattenzauberer beschwören'] = {t=5000, icon="Spell_Shadow_RaiseDead" },
['Schattenschlag beschwören'] = {t=10000, icon="Temp" },
['Schildwache beschwören'] = {t=5000, icon="Spell_Nature_Purge" },
['Shy-Rotam beschwören'] = {t=2500, icon="Temp" },
['Siamkatze beschwören'] = {t=1000, icon="Ability_Seal" },
['Silberne Tigerkatze beschwören'] = {t=1000, icon="Ability_Seal" },
['Skelett beschwören'] = {t=2000, icon="Spell_Shadow_RaiseDead" },
['Schneehasen beschwören'] = {t=1000, icon="Ability_Seal" },
['Schneeeule beschwören'] = {t=1000, icon="Ability_Seal" },
['Schnüffelnase beschwören'] = {t=2000, icon="Spell_Nature_ProtectionformNature" },
['Brut von Bael\'Gar beschwören'] = {t=4000, icon="Spell_Fire_LavaSpawn" },
['Flinky beschwören'] = {t=1000, icon="Ability_Seal" },
['Zauberwache beschwören'] = {t=5000, icon="Spell_Nature_Purge" },
['Spinnengott beschwören'] = {t=10000, icon="Spell_Shadow_LifeDrain" },
['Gefleckten Hasen beschwören'] = {t=1000, icon="Ability_Seal" },
['Jungen Grimmlingflitzer beschwören'] = {t=1000, icon="Ability_Seal" },
['Sukkubus beschwören'] = {t=10000, icon="Spell_Shadow_SummonSuccubus" },
['Sumpfbrühschlammer beschwören'] = {t=2500, icon="Spell_Shadow_BlackPlague" },
['Sumpfgeist beschwören'] = {t=1500, icon="Spell_Nature_AbolishMagic" },
['Schreckgespenst des Syndikats beschwören'] = {t=1000, icon="Spell_Shadow_Twilight" },
['Terky beschwören'] = {t=1000, icon="Ability_Seal" },
['Tervoshs Diener beschwören'] = {t=4000, icon="Spell_Frost_Wisp" },
['Thelrin beschwören'] = {t=1000, icon="Temp" },
['Theurgiker beschwören'] = {t=5000, icon="Spell_Nature_Purge" },
['Donnerschlag beschwören'] = {t=10000, icon="Temp" },
['Bäumling beschwören'] = {t=3000, icon="Spell_Nature_ProtectionformNature" },
['Winzigen Grünen Drachen beschwören'] = {t=1000, icon="Ability_Seal" },
['Winzigen Roten Drachen beschwören'] = {t=1000, icon="Ability_Seal" },
['Ruhigen mechanischen Yeti beschwören'] = {t=1000, icon="Ability_Seal" },
['Treantverbündete beschwören'] = {t=1500, icon="Spell_Nature_ForceOfNature" },
['Schatz-Horde beschwören'] = {t=1500, icon="Temp" },
['Schatz-Horde beschwören\' - Bild'] = {t=1500, icon="Temp" },
['Baumfrosch beschwören'] = {t=1000, icon="Ability_Seal" },
['Viper beschwören'] = {t=1500, icon="Spell_Nature_ResistMagic" },
['Leerwandler beschwören'] = {t=10000, icon="Spell_Shadow_SummonVoidWalker" },
['Schlachtross beschwören'] = {t=3000, icon="Spell_Nature_Swiftness" },
['Wasserelementar beschwören'] = {t=2000, icon="Spell_Shadow_SealOfKings" },
['Schnurri beschwören'] = {t=1000, icon="Ability_Seal" },
['Weißes Kätzchen beschwören'] = {t=1000, icon="Ability_Seal" },
['Weißes Plymouth-Rock-Huhn beschwören'] = {t=1000, icon="Ability_Seal" },
['Weißes Tigerbaby beschwören'] = {t=1000, icon="Ability_Seal" },
['Teufelsjäger der Witherbark beschwören'] = {t=3000, icon="Spell_Shadow_SummonFelHunter" },
['Waldfrosch beschwören'] = {t=1000, icon="Ability_Seal" },
['Worgwelpen beschwören'] = {t=1000, icon="Ability_Seal" },
['Xorothianisches Schreckensross herbeirufen'] = {t=5000, icon="Temp" },
['Gelbe Qirajipanzerdrohne beschwören'] = {t=3000, icon="INV_Misc_QirajiCrystal_01" },
['Zergling beschwören'] = {t=1000, icon="Ability_Seal" },
['Zombie beschwören'] = {t=2000, icon="Spell_Shadow_RaiseDead" },
['Beschworener Urok'] = {t=1000, icon="Temp" },
['Superkristall'] = {t=6000, icon="Temp" },
['Überragender Heilungszauberschutz'] = {t=2000, icon="Spell_Holy_LayOnHands" },
['Feger'] = {t=1500, icon="Spell_Nature_Thorns" },
['Süße Träume'] = {t=1000, icon="INV_ValentinesChocolate03" },
['Schneller blauer Raptor'] = {t=3000, icon="Ability_Mount_Raptor" },
['Schneller brauner Widder'] = {t=3000, icon="Ability_Mount_MountainRam" },
['Schneller Brauner'] = {t=3000, icon="Ability_Mount_RidingHorse" },
['Schneller brauner Wolf'] = {t=3000, icon="Ability_Mount_BlackDireWolf" },
['Schneller Dämmerungssäbler'] = {t=3000, icon="Ability_Mount_JungleTiger" },
['Schneller Frostsäbler'] = {t=3000, icon="Ability_Mount_WhiteTiger" },
['Schneller grauer Widder'] = {t=3000, icon="Ability_Mount_MountainRam" },
['Schneller Grauwolf'] = {t=3000, icon="Ability_Mount_WhiteDireWolf" },
['Schneller grüner Roboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Schneller Schattensäbler'] = {t=3000, icon="Ability_Mount_BlackPanther" },
['Schneller olivfarbener Raptor'] = {t=3000, icon="Ability_Mount_Raptor" },
['Schneller orangener Raptor'] = {t=3000, icon="Ability_Mount_Raptor" },
['Schneller Palomino'] = {t=3000, icon="Ability_Mount_RidingHorse" },
['Schneller Razzashiraptor'] = {t=3000, icon="Ability_Mount_Raptor" },
['Schneller Sturmsäbler'] = {t=3000, icon="Ability_Mount_BlackPanther" },
['Schneller Waldwolf'] = {t=3000, icon="Ability_Mount_WhiteDireWolf" },
['Schneller weißer Roboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Schneller weißer Widder'] = {t=3000, icon="Ability_Mount_MountainRam" },
['Schnelles weißes Ross'] = {t=3000, icon="Ability_Mount_RidingHorse" },
['Schneller gelber Roboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Schneller zulianischer Tiger'] = {t=3000, icon="Ability_Mount_JungleTiger" },
['Symbol des Lebens'] = {t=10000, icon="Spell_Holy_Resurrection" },
['Syndikatsbombe'] = {t=3000, icon="Spell_Shadow_MindBomb" },
['Syndikatsverkleidung'] = {t=3000, icon="Ability_Rogue_Disguise" },
['Fährtenleser des Syndikats (MURP) DND'] = {t=1000, icon="Spell_Arcane_Blink" },
['Taelan Tod'] = {t=2000, icon="Temp" },
['Talvashs Halskettenreparatur'] = {t=4500, icon="Spell_Holy_Restoration" },
['Tammras Schössling'] = {t=1300, icon="Temp" },
['Gelbbraune Säblerkatze'] = {t=3000, icon="Ability_Mount_JungleTiger" },
['Verdammnisgebell\' lehren'] = {t=1000, icon="Temp" },
['Graublauer Kodo'] = {t=3000, icon="Ability_Mount_Kodo_02" },
['Teleporter'] = {t=1000, icon="Spell_Magic_LesserInvisibilty" },
['Altar der Gezeiten-Teleporter'] = {t=2000, icon="Temp" },
['Anvilmar-Teleporter'] = {t=2000, icon="Temp" },
['Kasernen-Teleporter'] = {t=2000, icon="Temp" },
['Friedhof-Teleporter'] = {t=2000, icon="Temp" },
['Dunkelhain-Teleporter'] = {t=2000, icon="Temp" },
['Dämmerwald-Teleporter'] = {t=2000, icon="Temp" },
['Elwynn-Teleporter'] = {t=2000, icon="Temp" },
['Vom Azshara-Turm teleportieren'] = {t=1000, icon="Spell_Nature_EarthBind" },
['Leuchtturm-Teleporter'] = {t=2000, icon="Temp" },
['Kloster-Teleporter'] = {t=2000, icon="Temp" },
['Moonbrook-Teleporter'] = {t=2000, icon="Temp" },
['Teleporter zu Abtei von Nordhain'] = {t=2000, icon="Temp" },
['Vom Azshara-Turm teleportieren'] = {t=1000, icon="Spell_Nature_AstralRecalGroup" },
['Nach Darnassus teleportieren - Ereignis'] = {t=1000, icon="Temp" },
['Treantteleporter'] = {t=2000, icon="Temp" },
['Westfall-Teleporter'] = {t=2000, icon="Temp" },
['Teleportieren: Darnassus'] = {t=10000, icon="Spell_Arcane_TeleportDarnassus" },
['Teleportieren: Ironforge'] = {t=10000, icon="Spell_Arcane_TeleportIronForge" },
['Teleportieren: Moonglade'] = {t=10000, icon="Spell_Arcane_TeleportMoonglade" },
['Teleportieren: Orgrimmar'] = {t=10000, icon="Spell_Arcane_TeleportOrgrimmar" },
['Teleportieren: Stormwind'] = {t=10000, icon="Spell_Arcane_TeleportStormWind" },
['Teleportieren: Thunder Bluff'] = {t=10000, icon="Spell_Arcane_TeleportThunderBluff" },
['Teleportieren: Undercity'] = {t=10000, icon="Spell_Arcane_TeleportUnderCity" },
['Witz erzählen'] = {t=2000, icon="Spell_Shadow_LifeDrain" },
['Temperaturanzeige'] = {t=2000, icon="Temp" },
['Tharnariun-Heilmittel 1'] = {t=750, icon="Spell_Nature_RemoveDisease" },
['Tharnariuns Heilen'] = {t=500, icon="Spell_Nature_MagicImmunity" },
['Der Große'] = {t=3000, icon="Spell_Fire_SelfDestruct" },
['Thoriumgranate'] = {t=1000, icon="Spell_Fire_SelfDestruct" },
['Tausend Klingen'] = {t=250, icon="INV-Sword_53" },
['Bedrohlicher Blick'] = {t=2000, icon="Spell_Shadow_Charm" },
['Bedrohliches Knurren'] = {t=1000, icon="Ability_Racial_Cannibalize" },
['Axt werfen'] = {t=1000, icon="INV_Axe_08" },
['Q. Pidos Pfeil werfen'] = {t=1000, icon="Temp" },
['Dunkeleisenbier werfen'] = {t=500, icon="Temp" },
['Dynamit werfen'] = {t=2000, icon="Spell_Fire_SelfDestruct" },
['Alptraumgegenstand werfen'] = {t=2000, icon="Spell_Fire_SelfDestruct" },
['Fels werfen'] = {t=3000, icon="Ability_GolemStormBolt" },
['Fels werfen II'] = {t=3000, icon="Ability_GolemStormBolt" },
['Tiger'] = {t=3000, icon="Ability_Mount_JungleTiger" },
['Zeitraffer'] = {t=2000, icon="Spell_Arcane_PortalOrgrimmar" },
['Zeitstopp'] = {t=3000, icon="Temp" },
['Time Stop Visual DND'] = {t=3000, icon="Temp" },
['Getoastetes Smorc'] = {t=1000, icon="INV_SummerFest_Smorc" },
['Fackelkombination'] = {t=5000, icon="Temp" },
['Fackelwurf'] = {t=3000, icon="Spell_Fire_Fireball02" },
['Brennstoff ins Freudenfeuer werfen'] = {t=500, icon="Temp" },
['Stinkbombe werfen'] = {t=2000, icon="INV_Misc_Bowl_01" },
['Berührung des Todes'] = {t=3000, icon="Spell_Shadow_UnsummonBuilding" },
['Berührung von Rabenklaue'] = {t=1500, icon="Spell_Shadow_Requiem" },
['Toxischer Blitz'] = {t=2500, icon="Spell_Nature_CorrosiveBreath" },
['Toxinspeichel'] = {t=500, icon="Spell_Nature_CorrosiveBreath" },
['Toxinspucke'] = {t=2500, icon="Spell_Nature_CorrosiveBreath" },
['Opfer verwandeln'] = {t=2000, icon="Spell_Magic_LesserInvisibilty" },
['Trelanes Eiskälteberührung'] = {t=3000, icon="Spell_Shadow_UnsummonBuilding" },
['Triage'] = {t=7000, icon="Temp" },
['Wahre Erfüllung'] = {t=500, icon="Spell_Shadow_Charm" },
['Echtsilberdietrich'] = {t=5000, icon="Temp" },
['Aufmotzen'] = {t=7000, icon="INV_Gizmo_02" },
['Untote vertreiben'] = {t=1500, icon="Spell_Holy_TurnUndead" },
['Türkisfarbener Raptor'] = {t=3000, icon="Ability_Mount_Raptor" },
['Uldaman-Boss-Aggro'] = {t=5000, icon="Spell_Nature_EarthBindTotem" },
['Uldaman-Schlüsselstab'] = {t=5000, icon="Temp" },
['Uldaman Sub-Boss Agro'] = {t=5000, icon="Spell_Nature_EarthBindTotem" },
['Unheiliger Fluch'] = {t=1000, icon="Spell_Shadow_CurseOfMannoroth" },
['Maurys Fuß freigeben'] = {t=5000, icon="Temp" },
['Öffnung'] = {t=5000, icon="Temp" },
['Unlackierter Roboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Instabile Substanz'] = {t=3000, icon="Spell_Fire_Incinerate" },
['Urokdiener verschwinden'] = {t=2000, icon="Temp" },
['Schmuckstück benutzen'] = {t=3000, icon="Temp" },
['Uthers Tribut'] = {t=2000, icon="Temp" },
['Schleier des Schattens'] = {t=1500, icon="Spell_Shadow_GatherShadows" },
['Giftspucke'] = {t=2500, icon="Spell_Nature_CorrosiveBreath" },
['Giftbann'] = {t=2000, icon="Temp" },
['Beerens Echte'] = {t=1000, icon="INV_ValentinesChocolate02" },
['Vorführraum - Studenten transformieren'] = {t=1000, icon="Temp" },
['Violetter Raptor'] = {t=3000, icon="Ability_Mount_Raptor" },
['Vipore-Katzengestalt DND'] = {t=1000, icon="Temp" },
['Leereblitz'] = {t=3000, icon="Spell_Shadow_ShadowBolt" },
['Leerwandlerwächter'] = {t=3000, icon="Spell_Shadow_SummonVoidWalker" },
['Flüchtige Infektion'] = {t=2000, icon="Spell_Holy_HarmUndeadAura" },
['Salve'] = {t=3000, icon="Ability_TheBlackArrow" },
['Salve II'] = {t=3000, icon="Ability_TheBlackArrow" },
['Voodoo'] = {t=1000, icon="Spell_Shadow_AntiShadow" },
['Voodooverhexung'] = {t=1000, icon="Spell_Shadow_CurseOfMannoroth" },
['Wehklagen der Banshee'] = {t=2000, icon="Spell_Shadow_Possession" },
['Wandernde Seuche'] = {t=2000, icon="Spell_Shadow_CallofBone" },
['Kriegsdonner'] = {t=500, icon="Ability_WarStomp" },
['Waroshs Transformation'] = {t=1000, icon="Temp" },
['Wasserblase'] = {t=1000, icon="Spell_Frost_Wisp" },
['Schwacher Frostblitz'] = {t=2200, icon="Spell_Frost_FrostBolt02" },
['Wirbelndes Sperrfeuer'] = {t=1500, icon="INV_Spear_05" },
['Weißer Roboschreiter'] = {t=3000, icon="Ability_Mount_MechaStrider" },
['Weißer Widder'] = {t=3000, icon="Ability_Mount_MountainRam" },
['Schimmel'] = {t=3000, icon="Ability_Mount_RidingHorse" },
['Weiter Rundschlag'] = {t=4000, icon="Ability_Whirlwind" },
['Umarmung der Witwe'] = {t=500, icon="Spell_Arcane_Blink" },
['Wilde Regeneration'] = {t=3000, icon="Spell_Nature_Rejuvenation" },
['Wille von Shahram'] = {t=1000, icon="Spell_Holy_MindVision" },
['Windsor Tod DND'] = {t=1500, icon="Temp" },
['Windsor liest Schrifttafeln DND'] = {t=10000, icon="Temp" },
['Flügelstoß'] = {t=1000, icon="INV_Misc_MonsterScales_14" },
['Winterwolf'] = {t=3000, icon="Ability_Mount_WhiteDireWolf" },
['Weisheit der Winterax'] = {t=1000, icon="Ability_Ambush" },
['Winterspringfrostsäbler'] = {t=3000, icon="Ability_Mount_PinkTiger" },
['Welken'] = {t=1500, icon="Spell_Nature_NullifyDisease" },
['Welkberührung'] = {t=2000, icon="Spell_Nature_Drowsy" },
['Zauberöl'] = {t=3000, icon="Temp" },
['Wort des Tauens'] = {t=5000, icon="Temp" },
['Wurmschwung'] = {t=1000, icon="INV_Misc_MonsterScales_05" },
['Wundgift'] = {t=3000, icon="INV_Misc_Herb_16" },
['Zorn'] = {t=2000, icon="Spell_Nature_AbolishMagic" },
['Yennikus Befreiung'] = {t=4000, icon="Spell_Shadow_LifeDrain" },
['Strebenaktivierung'] = {t=5000, icon="Temp" },
['Kristallkanone'] = {t=1000, icon="Temp" },
['[PH] Nach Auberdine teleportieren'] = {t=2000, icon="Temp" },
['[PH] Zu Balthule teleportieren'] = {t=2000, icon="Temp" },
['[PH] Nach Booty Bay teleportieren'] = {t=2000, icon="Temp" },
['[PH] Zum Teufelswald teleportieren'] = {t=2000, icon="Temp" },
['[PH] Nach Grom\'Gol teleportieren'] = {t=2000, icon="Temp" },
['[PH] Zum Hafen von Menethil teleportieren'] = {t=2000, icon="Temp" },
['[PH] Nach Orgrimmar teleportieren'] = {t=2000, icon="Temp" },
['[PH] Nach Ratchet teleportieren'] = {t=2000, icon="Temp" },
['[PH] Nach Theramore teleportieren'] = {t=2000, icon="Temp" },
['[PH] Nach Undercity teleportieren'] = {t=2000, icon="Temp" },
}
| mit |
vdxlab/aigua_arduino_latalaia | src/monitor/serial.lua | 1 | 1101 |
log = "/tmp/serial.log"
function sleep(n)
os.execute("sleep " .. tonumber(n))
end
function file_exists(name)
local f = io.open(name,"r")
if f ~= nil then io.close(f) return true else return false end
end
function open_serial()
dev = nil
local i
for i=0,5 do
if file_exists("/dev/ttyUSB" .. i) then
dev = "/dev/ttyUSB" .. i
break
end
end
if dev == nil then
serialin = nil
file = nil
print("Cannot find serial device")
else
print("Using device " .. dev)
os.execute("stty -F "..dev.." 9600")
file = io.open(log,"a")
serialin = io.open(dev,"r") or nil
end
itc = 0
end
open_serial()
while 1 do
if serialin ~= nil then
input = serialin:read("*l")
if input ~= nil and #input > 5 then
print(os.time()..": "..input)
file:write(input .. "\n")
end
itc = itc + 1
if itc > 9 then
file:close()
file = io.open(log,"a")
itc = 0
end
else
print("Cannot open serial port")
sleep(1)
open_serial()
end
end
serialin:close()
file:close()
| gpl-3.0 |
codemon66/Urho3D | bin/Data/LuaScripts/42_PBRMaterials.lua | 9 | 8289 | -- PBR materials example.
-- This sample demonstrates:
-- - Loading a scene that showcases physically based materials & shaders
--
-- To use with deferred rendering, a PBR deferred renderpath should be chosen:
-- CoreData/RenderPaths/PBRDeferred.xml or CoreData/RenderPaths/PBRDeferredHWDepth.xml
require "LuaScripts/Utilities/Sample"
local dynamicMaterial = nil
local roughnessLabel = nil
local metallicLabel = nil
local ambientLabel = nil
local zone = nil
function Start()
-- Execute the common startup for samples
SampleStart()
-- Create the scene content
CreateScene()
-- Create the UI content
CreateUI()
CreateInstructions()
-- Setup the viewport for displaying the scene
SetupViewport()
-- Subscribe to global events for camera movement
SubscribeToEvents()
end
function CreateInstructions()
-- Construct new Text object, set string to display and font to use
local instructionText = ui.root:CreateChild("Text")
instructionText:SetText("Use sliders to change Roughness and Metallic\n" ..
"Hold RMB and use WASD keys and mouse to move")
instructionText:SetFont(cache:GetResource("Font", "Fonts/Anonymous Pro.ttf"), 15)
-- Position the text relative to the screen center
instructionText.horizontalAlignment = HA_CENTER
instructionText.verticalAlignment = VA_CENTER
instructionText:SetPosition(0, ui.root.height / 4)
end
function CreateScene()
scene_ = Scene()
-- Load scene content prepared in the editor (XML format). GetFile() returns an open file from the resource system
-- which scene.LoadXML() will read
local file = cache:GetFile("Scenes/PBRExample.xml")
scene_:LoadXML(file)
-- In Lua the file returned by GetFile() needs to be deleted manually
file:delete()
local sphereWithDynamicMatNode = scene_:GetChild("SphereWithDynamicMat")
local staticModel = sphereWithDynamicMatNode:GetComponent("StaticModel")
dynamicMaterial = staticModel:GetMaterial(0)
local zoneNode = scene_:GetChild("Zone");
zone = zoneNode:GetComponent("Zone");
-- Create the camera (not included in the scene file)
cameraNode = scene_:CreateChild("Camera")
cameraNode:CreateComponent("Camera")
cameraNode.position = sphereWithDynamicMatNode.position + Vector3(2.0, 2.0, 2.0)
cameraNode:LookAt(sphereWithDynamicMatNode.position)
yaw = cameraNode.rotation:YawAngle()
pitch = cameraNode.rotation:PitchAngle()
end
function CreateUI()
-- Set up global UI style into the root UI element
local style = cache:GetResource("XMLFile", "UI/DefaultStyle.xml")
ui.root.defaultStyle = style
-- Create a Cursor UI element because we want to be able to hide and show it at will. When hidden, the mouse cursor will
-- control the camera, and when visible, it will interact with the UI
local cursor = ui.root:CreateChild("Cursor")
cursor:SetStyleAuto()
ui.cursor = cursor
-- Set starting position of the cursor at the rendering window center
cursor:SetPosition(graphics.width / 2, graphics.height / 2)
roughnessLabel = ui.root:CreateChild("Text")
roughnessLabel:SetFont(cache:GetResource("Font", "Fonts/Anonymous Pro.ttf"), 15)
roughnessLabel:SetPosition(370, 50)
roughnessLabel.textEffect = TE_SHADOW
metallicLabel = ui.root:CreateChild("Text")
metallicLabel:SetFont(cache:GetResource("Font", "Fonts/Anonymous Pro.ttf"), 15)
metallicLabel:SetPosition(370, 100)
metallicLabel.textEffect = TE_SHADOW
ambientLabel = ui.root:CreateChild("Text")
ambientLabel:SetFont(cache:GetResource("Font", "Fonts/Anonymous Pro.ttf"), 15)
ambientLabel:SetPosition(370, 150)
ambientLabel.textEffect = TE_SHADOW
local roughnessSlider = ui.root:CreateChild("Slider")
roughnessSlider:SetStyleAuto()
roughnessSlider:SetPosition(50, 50)
roughnessSlider:SetSize(300, 20)
roughnessSlider.range = 1.0 -- 0 - 1 range
SubscribeToEvent(roughnessSlider, "SliderChanged", "HandleRoughnessSliderChanged")
roughnessSlider.value = 0.5
local metallicSlider = ui.root:CreateChild("Slider")
metallicSlider:SetStyleAuto()
metallicSlider:SetPosition(50, 100)
metallicSlider:SetSize(300, 20)
metallicSlider.range = 1.0 -- 0 - 1 range
SubscribeToEvent(metallicSlider, "SliderChanged", "HandleMetallicSliderChanged")
metallicSlider.value = 0.5
local ambientSlider = ui.root:CreateChild("Slider")
ambientSlider:SetStyleAuto()
ambientSlider:SetPosition(50, 150)
ambientSlider:SetSize(300, 20)
ambientSlider.range = 10.0 -- 0 - 10 range
SubscribeToEvent(ambientSlider, "SliderChanged", "HandleAmbientSliderChanged")
ambientSlider.value = zone.ambientColor.a
end
function HandleRoughnessSliderChanged(eventType, eventData)
local newValue = eventData["Value"]:GetFloat()
dynamicMaterial:SetShaderParameter("Roughness", Variant(newValue))
roughnessLabel.text = "Roughness: " .. newValue
end
function HandleMetallicSliderChanged(eventType, eventData)
local newValue = eventData["Value"]:GetFloat()
dynamicMaterial:SetShaderParameter("Metallic", Variant(newValue))
metallicLabel.text = "Metallic: " .. newValue
end
function HandleAmbientSliderChanged(eventType, eventData)
local newValue = eventData["Value"]:GetFloat()
local col = Color(0, 0, 0, newValue)
zone.ambientColor = col
ambientLabel.text = "Ambient HDR Scale: " .. zone.ambientColor.a
end
function SetupViewport()
renderer.hdrRendering = true;
-- Set up a viewport to the Renderer subsystem so that the 3D scene can be seen
local viewport = Viewport:new(scene_, cameraNode:GetComponent("Camera"))
renderer:SetViewport(0, viewport)
-- Add post-processing effects appropriate with the example scene
local effectRenderPath = viewport:GetRenderPath():Clone()
effectRenderPath:Append(cache:GetResource("XMLFile", "PostProcess/FXAA2.xml"))
effectRenderPath:Append(cache:GetResource("XMLFile", "PostProcess/GammaCorrection.xml"))
effectRenderPath:Append(cache:GetResource("XMLFile", "PostProcess/Tonemap.xml"))
effectRenderPath:Append(cache:GetResource("XMLFile", "PostProcess/AutoExposure.xml"))
viewport.renderPath = effectRenderPath;
end
function SubscribeToEvents()
-- Subscribe HandleUpdate() function for camera motion
SubscribeToEvent("Update", "HandleUpdate")
end
function HandleUpdate(eventType, eventData)
-- Take the frame time step, which is stored as a float
local timeStep = eventData["TimeStep"]:GetFloat()
-- Move the camera, scale movement with time step
MoveCamera(timeStep)
end
function MoveCamera(timeStep)
-- Right mouse button controls mouse cursor visibility: hide when pressed
ui.cursor.visible = not input:GetMouseButtonDown(MOUSEB_RIGHT)
-- Do not move if the UI has a focused element
if ui.focusElement ~= nil then
return
end
-- Movement speed as world units per second
local MOVE_SPEED = 10.0
-- Mouse sensitivity as degrees per pixel
local MOUSE_SENSITIVITY = 0.1
-- Use this frame's mouse motion to adjust camera node yaw and pitch. Clamp the pitch between -90 and 90 degrees
-- Only move the camera when the cursor is hidden
if not ui.cursor.visible then
local mouseMove = input.mouseMove
yaw = yaw + MOUSE_SENSITIVITY * mouseMove.x
pitch = pitch + MOUSE_SENSITIVITY * mouseMove.y
pitch = Clamp(pitch, -90.0, 90.0)
-- Construct new orientation for the camera scene node from yaw and pitch. Roll is fixed to zero
cameraNode.rotation = Quaternion(pitch, yaw, 0.0)
end
-- Read WASD keys and move the camera scene node to the corresponding direction if they are pressed
if input:GetKeyDown(KEY_W) then
cameraNode:Translate(Vector3(0.0, 0.0, 1.0) * MOVE_SPEED * timeStep)
end
if input:GetKeyDown(KEY_S) then
cameraNode:Translate(Vector3(0.0, 0.0, -1.0) * MOVE_SPEED * timeStep)
end
if input:GetKeyDown(KEY_A) then
cameraNode:Translate(Vector3(-1.0, 0.0, 0.0) * MOVE_SPEED * timeStep)
end
if input:GetKeyDown(KEY_D) then
cameraNode:Translate(Vector3(1.0, 0.0, 0.0) * MOVE_SPEED * timeStep)
end
end
| mit |
letmefly/skynet | gameserver/unuse/define_stage.lua | 2 | 421770 | local define_stage = {
["1"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.52,
["streamSpeedMax"] = 2.82,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 5,
["enemyMaxDistance"] = 8,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 100,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 100,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 100,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 10,
["normalCount"] = 10,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 5.8,
["brawlerSpeedFactor"] = 1.984126984,
["brawlerSpeedFactor"] = 5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 30,
["estimatedSilver"] = 50,
["estimatedScore"] = 10000,
["end"] = 0,
},
["2"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.53,
["streamSpeedMax"] = 2.83,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 4.8,
["enemyMaxDistance"] = 7.8,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 100,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 100,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 200,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 15,
["normalCount"] = 15,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 8.699999999999999,
["brawlerSpeedFactor"] = 1.976284585,
["brawlerSpeedFactor"] = 5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 45,
["estimatedSilver"] = 75,
["estimatedScore"] = 15000,
["end"] = 0,
},
["3"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.54,
["streamSpeedMax"] = 2.84,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 4.6,
["enemyMaxDistance"] = 7.6,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 100,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 200,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 300,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 20,
["normalCount"] = 20,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 11.6,
["brawlerSpeedFactor"] = 1.968503937,
["brawlerSpeedFactor"] = 5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 60,
["estimatedSilver"] = 100,
["estimatedScore"] = 20000,
["end"] = 0,
},
["4"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.55,
["streamSpeedMax"] = 2.85,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 4.4,
["enemyMaxDistance"] = 7.4,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 100,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 200,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 400,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 30,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 17.4,
["brawlerSpeedFactor"] = 1.960784314,
["brawlerSpeedFactor"] = 5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 90,
["estimatedSilver"] = 150,
["estimatedScore"] = 30000,
["end"] = 0,
},
["5"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.56,
["streamSpeedMax"] = 2.86,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 4.2,
["enemyMaxDistance"] = 7.2,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 100,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 200,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 400,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 21,
["normalCount"] = 20,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 1,
["colourDelay"] = 15,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 12.2,
["brawlerSpeedFactor"] = 1.953125,
["brawlerSpeedFactor"] = 5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 70,
["estimatedSilver"] = 110,
["estimatedScore"] = 23000,
["end"] = 0,
},
["6"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.57,
["streamSpeedMax"] = 2.87,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 4,
["enemyMaxDistance"] = 7,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 200,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 300,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 500,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 22,
["normalCount"] = 20,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 2,
["colourDelay"] = 10,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 12.8,
["brawlerSpeedFactor"] = 1.945525292,
["brawlerSpeedFactor"] = 5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 80,
["estimatedSilver"] = 120,
["estimatedScore"] = 26000,
["end"] = 0,
},
["7"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.58,
["streamSpeedMax"] = 2.88,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 3.8,
["enemyMaxDistance"] = 6.8,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 200,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 300,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 600,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 31,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 1,
["colourDelay"] = 15,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 18,
["brawlerSpeedFactor"] = 1.937984496,
["brawlerSpeedFactor"] = 5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 100,
["estimatedSilver"] = 160,
["estimatedScore"] = 33000,
["end"] = 0,
},
["8"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.59,
["streamSpeedMax"] = 2.89,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 3.6,
["enemyMaxDistance"] = 6.6,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 200,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 400,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 700,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 32,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 2,
["colourDelay"] = 10,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 18.6,
["brawlerSpeedFactor"] = 1.930501931,
["brawlerSpeedFactor"] = 5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 110,
["estimatedSilver"] = 170,
["estimatedScore"] = 36000,
["end"] = 0,
},
["9"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.6,
["streamSpeedMax"] = 2.9,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 3.4,
["enemyMaxDistance"] = 6.4,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 200,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 400,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 800,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 33,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 5,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 19.2,
["brawlerSpeedFactor"] = 1.923076923,
["brawlerSpeedFactor"] = 5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 120,
["estimatedSilver"] = 180,
["estimatedScore"] = 39000,
["end"] = 0,
},
["10"] = {
["gameMode"] = "BossRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.61,
["streamSpeedMax"] = 2.91,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 3.2,
["enemyMaxDistance"] = 6.2,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 5,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 1,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 1,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 2.107279693,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 35,
["estimatedSilver"] = 50,
["estimatedScore"] = 30000,
["end"] = 0,
},
["11"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.62,
["streamSpeedMax"] = 2.92,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 3.1,
["enemyMaxDistance"] = 6.1,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 300,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 500,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 900,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 26,
["normalCount"] = 25,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 1,
["colourDelay"] = 15,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 16,
["brawlerSpeedFactor"] = 2.099236641,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 0,
["unlockAchievementId"] = 95,
["firePillarTimer"] = 3,
["estimatedExp"] = 85,
["estimatedSilver"] = 135,
["estimatedScore"] = 28000,
["end"] = 0,
},
["12"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.63,
["streamSpeedMax"] = 2.93,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 3,
["enemyMaxDistance"] = 6,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 300,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 500,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 1000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 32,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 2,
["colourDelay"] = 10,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 18.6,
["brawlerSpeedFactor"] = 2.091254753,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 110,
["estimatedSilver"] = 170,
["estimatedScore"] = 36000,
["end"] = 0,
},
["13"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.64,
["streamSpeedMax"] = 2.94,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.9,
["enemyMaxDistance"] = 5.9,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 300,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 600,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 38,
["normalCount"] = 35,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 5,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 22.1,
["brawlerSpeedFactor"] = 2.083333333,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 135,
["estimatedSilver"] = 205,
["estimatedScore"] = 44000,
["end"] = 0,
},
["14"] = {
["gameMode"] = "LightSwordRound",
["stamina"] = 1,
["streamSpeedMin"] = 3,
["streamSpeedMax"] = 4,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.8,
["enemyMaxDistance"] = 5.8,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 21,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 32,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_LightSwordRound",
["TotalCount"] = 51,
["normalCount"] = 50,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 1,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 29.7,
["brawlerSpeedFactor"] = 1.333333333,
["brawlerSpeedFactor"] = 4,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 170,
["estimatedSilver"] = 275,
["estimatedScore"] = 55000,
["end"] = 0,
},
["15"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.66,
["streamSpeedMax"] = 2.96,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.7,
["enemyMaxDistance"] = 5.7,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 300,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 600,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 26,
["normalCount"] = 25,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 1,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 15.2,
["brawlerSpeedFactor"] = 2.067669173,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 95,
["estimatedSilver"] = 150,
["estimatedScore"] = 30000,
["end"] = 0,
},
["16"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.67,
["streamSpeedMax"] = 2.97,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.6,
["enemyMaxDistance"] = 5.6,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.4,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 400,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 700,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 27,
["normalCount"] = 25,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 1,
["colourDelay"] = 15,
["brawlerCount"] = 1,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 15.8,
["brawlerSpeedFactor"] = 2.059925094,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 105,
["estimatedSilver"] = 160,
["estimatedScore"] = 33000,
["end"] = 0,
},
["17"] = {
["gameMode"] = "RetroFilmRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.68,
["streamSpeedMax"] = 2.98,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.5,
["enemyMaxDistance"] = 5.5,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.4,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_RetroFilmRound",
["TotalCount"] = 39,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 4,
["colourDelay"] = 3,
["brawlerCount"] = 4,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 1,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 23.3,
["brawlerSpeedFactor"] = 2.052238806,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 230,
["estimatedSilver"] = 315,
["estimatedScore"] = 67000,
["end"] = 0,
},
["18"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.69,
["streamSpeedMax"] = 2.99,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.4,
["enemyMaxDistance"] = 5.4,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.4,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 400,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 800,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 34,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 2,
["colourDelay"] = 10,
["brawlerCount"] = 2,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 20,
["brawlerSpeedFactor"] = 2.044609665,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 150,
["estimatedSilver"] = 220,
["estimatedScore"] = 46000,
["end"] = 0,
},
["19"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.7,
["streamSpeedMax"] = 3,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.3,
["enemyMaxDistance"] = 5.3,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.4,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 400,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 800,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 41,
["normalCount"] = 35,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 5,
["brawlerCount"] = 3,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 24.2,
["brawlerSpeedFactor"] = 2.037037037,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 195,
["estimatedSilver"] = 280,
["estimatedScore"] = 59000,
["end"] = 0,
},
["20"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 1,
["streamSpeedMin"] = 2.71,
["streamSpeedMax"] = 3.01,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.2,
["enemyMaxDistance"] = 5.2,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 26,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.4,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Cash",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 26,
["normalCount"] = 20,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 5,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 1,
["timeLimit"] = 14.6,
["brawlerSpeedFactor"] = 0,
["brawlerSpeedFactor"] = 0,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 145,
["estimatedSilver"] = 200,
["estimatedScore"] = 65000,
["end"] = 0,
},
["21"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.72,
["streamSpeedMax"] = 3.02,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.1,
["enemyMaxDistance"] = 5.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.4,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 500,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 900,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 26,
["normalCount"] = 25,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 1,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 17,
["brawlerSpeedFactor"] = 2.169117647,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 96,
["firePillarTimer"] = 3,
["estimatedExp"] = 95,
["estimatedSilver"] = 150,
["estimatedScore"] = 30000,
["end"] = 0,
},
["22"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.73,
["streamSpeedMax"] = 3.03,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.09,
["enemyMaxDistance"] = 5.09,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.4,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 500,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 900,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 27,
["normalCount"] = 25,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 1,
["colourDelay"] = 15,
["brawlerCount"] = 1,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 15.8,
["brawlerSpeedFactor"] = 2.161172161,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 105,
["estimatedSilver"] = 160,
["estimatedScore"] = 33000,
["end"] = 0,
},
["23"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.74,
["streamSpeedMax"] = 3.04,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.08,
["enemyMaxDistance"] = 5.08,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.4,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 500,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 1000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 34,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 2,
["colourDelay"] = 10,
["brawlerCount"] = 2,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 20,
["brawlerSpeedFactor"] = 2.153284672,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 150,
["estimatedSilver"] = 220,
["estimatedScore"] = 46000,
["end"] = 0,
},
["24"] = {
["gameMode"] = "NunchakuRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.5,
["streamSpeedMax"] = 4.5,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.07,
["enemyMaxDistance"] = 5.07,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.4,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 36,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 54,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_NunchakuRound",
["TotalCount"] = 61,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 1,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 35.5,
["brawlerSpeedFactor"] = 1.685714286,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 200,
["estimatedSilver"] = 325,
["estimatedScore"] = 65000,
["end"] = 0,
},
["25"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.76,
["streamSpeedMax"] = 3.06,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.06,
["enemyMaxDistance"] = 5.06,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.4,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 500,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 1000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 31,
["normalCount"] = 25,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 5,
["brawlerCount"] = 3,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 18.4,
["brawlerSpeedFactor"] = 2.137681159,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 165,
["estimatedSilver"] = 230,
["estimatedScore"] = 49000,
["end"] = 0,
},
["26"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.77,
["streamSpeedMax"] = 3.07,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.05,
["enemyMaxDistance"] = 5.05,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 600,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 31,
["normalCount"] = 25,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 5,
["brawlerCount"] = 3,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 18.4,
["brawlerSpeedFactor"] = 2.129963899,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 165,
["estimatedSilver"] = 230,
["estimatedScore"] = 49000,
["end"] = 0,
},
["27"] = {
["gameMode"] = "ThunderStormRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.78,
["streamSpeedMax"] = 3.08,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.04,
["enemyMaxDistance"] = 5.04,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 600,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_ThunderStormRound",
["TotalCount"] = 33,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 1,
["colourDelay"] = 15,
["brawlerCount"] = 2,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 19.4,
["brawlerSpeedFactor"] = 2.122302158,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 140,
["estimatedSilver"] = 210,
["estimatedScore"] = 43000,
["end"] = 0,
},
["28"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.79,
["streamSpeedMax"] = 3.09,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.03,
["enemyMaxDistance"] = 5.03,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 600,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 35,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 2,
["colourDelay"] = 10,
["brawlerCount"] = 3,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 20.7,
["brawlerSpeedFactor"] = 2.114695341,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 170,
["estimatedSilver"] = 245,
["estimatedScore"] = 51000,
["end"] = 0,
},
["29"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.8,
["streamSpeedMax"] = 3.1,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.02,
["enemyMaxDistance"] = 5.02,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 600,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 42,
["normalCount"] = 35,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 5,
["brawlerCount"] = 4,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 24.9,
["brawlerSpeedFactor"] = 2.107142857,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 215,
["estimatedSilver"] = 305,
["estimatedScore"] = 64000,
["end"] = 0,
},
["30"] = {
["gameMode"] = "BossRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.81,
["streamSpeedMax"] = 3.11,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.01,
["enemyMaxDistance"] = 5.01,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 15,
["bossPattern"] = 4,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 1,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 1,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 2.099644128,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 35,
["estimatedSilver"] = 50,
["estimatedScore"] = 30000,
["end"] = 0,
},
["31"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.82,
["streamSpeedMax"] = 3.12,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2,
["enemyMaxDistance"] = 5,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 700,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 27,
["normalCount"] = 25,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 2,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 17,
["brawlerSpeedFactor"] = 2.092198582,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 97,
["firePillarTimer"] = 3,
["estimatedExp"] = 115,
["estimatedSilver"] = 175,
["estimatedScore"] = 35000,
["end"] = 0,
},
["32"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.83,
["streamSpeedMax"] = 3.13,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.99,
["enemyMaxDistance"] = 4.99,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 700,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 29,
["normalCount"] = 25,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 1,
["colourDelay"] = 15,
["brawlerCount"] = 3,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 17.2,
["brawlerSpeedFactor"] = 2.084805654,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 145,
["estimatedSilver"] = 210,
["estimatedScore"] = 43000,
["end"] = 0,
},
["33"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.84,
["streamSpeedMax"] = 3.14,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.98,
["enemyMaxDistance"] = 4.98,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 700,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 36,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 2,
["colourDelay"] = 10,
["brawlerCount"] = 4,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 21.4,
["brawlerSpeedFactor"] = 2.077464789,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 190,
["estimatedSilver"] = 270,
["estimatedScore"] = 56000,
["end"] = 0,
},
["34"] = {
["gameMode"] = "BombRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.85,
["streamSpeedMax"] = 3.15,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.97,
["enemyMaxDistance"] = 4.97,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 51,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 77,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_BombRound",
["TotalCount"] = 50,
["normalCount"] = 50,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 29,
["brawlerSpeedFactor"] = 2.070175439,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 150,
["estimatedSilver"] = 250,
["estimatedScore"] = 50000,
["end"] = 0,
},
["35"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.86,
["streamSpeedMax"] = 3.16,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.96,
["enemyMaxDistance"] = 4.96,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 700,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 38,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 5,
["brawlerCount"] = 5,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 22.7,
["brawlerSpeedFactor"] = 2.062937063,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 220,
["estimatedSilver"] = 305,
["estimatedScore"] = 64000,
["end"] = 0,
},
["36"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.87,
["streamSpeedMax"] = 3.17,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.95,
["enemyMaxDistance"] = 4.95,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 800,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 40,
["normalCount"] = 35,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 5,
["brawlerCount"] = 2,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 23.5,
["brawlerSpeedFactor"] = 2.055749129,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 175,
["estimatedSilver"] = 255,
["estimatedScore"] = 54000,
["end"] = 0,
},
["37"] = {
["gameMode"] = "SmashRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.88,
["streamSpeedMax"] = 3.18,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.94,
["enemyMaxDistance"] = 4.94,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 800,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_SmashRound",
["TotalCount"] = 29,
["normalCount"] = 22,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 4,
["colourDelay"] = 5,
["brawlerCount"] = 3,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 17.26,
["brawlerSpeedFactor"] = 2.048611111,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 166,
["estimatedSilver"] = 225,
["estimatedScore"] = 49000,
["end"] = 0,
},
["38"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.89,
["streamSpeedMax"] = 3.19,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.93,
["enemyMaxDistance"] = 4.93,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 800,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 44,
["normalCount"] = 35,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 5,
["colourDelay"] = 5,
["brawlerCount"] = 4,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 26.1,
["brawlerSpeedFactor"] = 2.041522491,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 235,
["estimatedSilver"] = 325,
["estimatedScore"] = 70000,
["end"] = 0,
},
["39"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.9,
["streamSpeedMax"] = 3.2,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.92,
["enemyMaxDistance"] = 4.92,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 800,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 46,
["normalCount"] = 35,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 6,
["colourDelay"] = 5,
["brawlerCount"] = 5,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 27.4,
["brawlerSpeedFactor"] = 2.034482759,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 265,
["estimatedSilver"] = 360,
["estimatedScore"] = 78000,
["end"] = 0,
},
["40"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 1,
["streamSpeedMin"] = 2.91,
["streamSpeedMax"] = 3.21,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.91,
["enemyMaxDistance"] = 4.91,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 51,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Cash",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 51,
["normalCount"] = 35,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 15,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 1,
["timeLimit"] = 29.3,
["brawlerSpeedFactor"] = 2.027491409,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 290,
["estimatedSilver"] = 375,
["estimatedScore"] = 110000,
["end"] = 0,
},
["41"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.92,
["streamSpeedMax"] = 3.22,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.9,
["enemyMaxDistance"] = 4.9,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 900,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 46,
["normalCount"] = 40,
["healerCount"] = 1,
["healerDelay"] = 20,
["colourCount"] = 3,
["colourDelay"] = 20,
["brawlerCount"] = 2,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 30,
["brawlerSpeedFactor"] = 2.020547945,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 98,
["firePillarTimer"] = 3,
["estimatedExp"] = 190,
["estimatedSilver"] = 280,
["estimatedScore"] = 59000,
["end"] = 0,
},
["42"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.93,
["streamSpeedMax"] = 3.23,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.89,
["enemyMaxDistance"] = 4.89,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 900,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 48,
["normalCount"] = 40,
["healerCount"] = 1,
["healerDelay"] = 20,
["colourCount"] = 4,
["colourDelay"] = 15,
["brawlerCount"] = 3,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 28.28,
["brawlerSpeedFactor"] = 2.013651877,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 220,
["estimatedSilver"] = 315,
["estimatedScore"] = 67000,
["end"] = 0,
},
["43"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.94,
["streamSpeedMax"] = 3.24,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.88,
["enemyMaxDistance"] = 4.88,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 900,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 50,
["normalCount"] = 40,
["healerCount"] = 1,
["healerDelay"] = 20,
["colourCount"] = 5,
["colourDelay"] = 10,
["brawlerCount"] = 4,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 29.58,
["brawlerSpeedFactor"] = 2.006802721,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 250,
["estimatedSilver"] = 350,
["estimatedScore"] = 75000,
["end"] = 0,
},
["44"] = {
["gameMode"] = "DaggerRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.95,
["streamSpeedMax"] = 3.25,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.87,
["enemyMaxDistance"] = 4.87,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 66,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 99,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_DaggerRound",
["TotalCount"] = 60,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 34.8,
["brawlerSpeedFactor"] = 2,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 180,
["estimatedSilver"] = 300,
["estimatedScore"] = 60000,
["end"] = 0,
},
["45"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.96,
["streamSpeedMax"] = 3.26,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.86,
["enemyMaxDistance"] = 4.86,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 900,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 52,
["normalCount"] = 40,
["healerCount"] = 1,
["healerDelay"] = 20,
["colourCount"] = 6,
["colourDelay"] = 5,
["brawlerCount"] = 5,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 30.88,
["brawlerSpeedFactor"] = 1.993243243,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 280,
["estimatedSilver"] = 385,
["estimatedScore"] = 83000,
["end"] = 0,
},
["46"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.97,
["streamSpeedMax"] = 3.27,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.85,
["enemyMaxDistance"] = 4.85,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 1000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 58,
["normalCount"] = 50,
["healerCount"] = 1,
["healerDelay"] = 20,
["colourCount"] = 4,
["colourDelay"] = 20,
["brawlerCount"] = 3,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 34.08,
["brawlerSpeedFactor"] = 1.986531987,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 250,
["estimatedSilver"] = 365,
["estimatedScore"] = 77000,
["end"] = 0,
},
["47"] = {
["gameMode"] = "DefenderRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.98,
["streamSpeedMax"] = 3.28,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.84,
["enemyMaxDistance"] = 4.84,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 1000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_DefenderRound",
["TotalCount"] = 70,
["normalCount"] = 70,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 40.6,
["brawlerSpeedFactor"] = 1.979865772,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 210,
["estimatedSilver"] = 350,
["estimatedScore"] = 70000,
["end"] = 0,
},
["48"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 2.99,
["streamSpeedMax"] = 3.29,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.83,
["enemyMaxDistance"] = 4.83,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 1000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 62,
["normalCount"] = 50,
["healerCount"] = 1,
["healerDelay"] = 20,
["colourCount"] = 6,
["colourDelay"] = 10,
["brawlerCount"] = 5,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 36.68,
["brawlerSpeedFactor"] = 1.973244147,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 310,
["estimatedSilver"] = 435,
["estimatedScore"] = 93000,
["end"] = 0,
},
["49"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3,
["streamSpeedMax"] = 3.3,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.82,
["enemyMaxDistance"] = 4.82,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 1000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 64,
["normalCount"] = 50,
["healerCount"] = 1,
["healerDelay"] = 20,
["colourCount"] = 7,
["colourDelay"] = 5,
["brawlerCount"] = 6,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 37.98,
["brawlerSpeedFactor"] = 1.966666667,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 340,
["estimatedSilver"] = 470,
["estimatedScore"] = 101000,
["end"] = 0,
},
["50"] = {
["gameMode"] = "BossRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.01,
["streamSpeedMax"] = 3.31,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.81,
["enemyMaxDistance"] = 4.81,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 10,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 2,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 2,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 1.96013289,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 70,
["estimatedSilver"] = 100,
["estimatedScore"] = 60000,
["end"] = 0,
},
["51"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.02,
["streamSpeedMax"] = 3.32,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.8,
["enemyMaxDistance"] = 4.8,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 63,
["normalCount"] = 55,
["healerCount"] = 1,
["healerDelay"] = 25,
["colourCount"] = 4,
["colourDelay"] = 20,
["brawlerCount"] = 3,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 40,
["brawlerSpeedFactor"] = 1.953642384,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 99,
["firePillarTimer"] = 3,
["estimatedExp"] = 265,
["estimatedSilver"] = 390,
["estimatedScore"] = 82000,
["end"] = 0,
},
["52"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.03,
["streamSpeedMax"] = 3.33,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.79,
["enemyMaxDistance"] = 4.79,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 65,
["normalCount"] = 55,
["healerCount"] = 1,
["healerDelay"] = 25,
["colourCount"] = 5,
["colourDelay"] = 15,
["brawlerCount"] = 4,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 38.28,
["brawlerSpeedFactor"] = 1.947194719,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 295,
["estimatedSilver"] = 425,
["estimatedScore"] = 90000,
["end"] = 0,
},
["53"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.04,
["streamSpeedMax"] = 3.34,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.78,
["enemyMaxDistance"] = 4.78,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 67,
["normalCount"] = 55,
["healerCount"] = 1,
["healerDelay"] = 25,
["colourCount"] = 6,
["colourDelay"] = 10,
["brawlerCount"] = 5,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 39.58,
["brawlerSpeedFactor"] = 1.940789474,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 325,
["estimatedSilver"] = 460,
["estimatedScore"] = 98000,
["end"] = 0,
},
["54"] = {
["gameMode"] = "LightSwordRound",
["stamina"] = 1,
["streamSpeedMin"] = 4,
["streamSpeedMax"] = 5,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.77,
["enemyMaxDistance"] = 4.77,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 81,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 122,
["gradeRewardType3"] = "Cash",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_LightSwordRound",
["TotalCount"] = 82,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 20,
["colourDelay"] = 10,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 2,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 48.2,
["brawlerSpeedFactor"] = 1.475,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 420,
["estimatedSilver"] = 550,
["estimatedScore"] = 130000,
["end"] = 0,
},
["55"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.06,
["streamSpeedMax"] = 3.36,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.76,
["enemyMaxDistance"] = 4.76,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 73,
["normalCount"] = 60,
["healerCount"] = 1,
["healerDelay"] = 25,
["colourCount"] = 9,
["colourDelay"] = 5,
["brawlerCount"] = 3,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 42.88,
["brawlerSpeedFactor"] = 1.928104575,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 330,
["estimatedSilver"] = 465,
["estimatedScore"] = 102000,
["end"] = 0,
},
["56"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.07,
["streamSpeedMax"] = 3.37,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.75,
["enemyMaxDistance"] = 4.75,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 70,
["normalCount"] = 60,
["healerCount"] = 1,
["healerDelay"] = 25,
["colourCount"] = 7,
["colourDelay"] = 20,
["brawlerCount"] = 2,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 40.98,
["brawlerSpeedFactor"] = 1.921824104,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 290,
["estimatedSilver"] = 420,
["estimatedScore"] = 91000,
["end"] = 0,
},
["57"] = {
["gameMode"] = "RetroFilmRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.08,
["streamSpeedMax"] = 3.38,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.74,
["enemyMaxDistance"] = 4.74,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_RetroFilmRound",
["TotalCount"] = 72,
["normalCount"] = 60,
["healerCount"] = 1,
["healerDelay"] = 25,
["colourCount"] = 8,
["colourDelay"] = 15,
["brawlerCount"] = 3,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 42.28,
["brawlerSpeedFactor"] = 1.915584416,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 320,
["estimatedSilver"] = 455,
["estimatedScore"] = 99000,
["end"] = 0,
},
["58"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.09,
["streamSpeedMax"] = 3.39,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.73,
["enemyMaxDistance"] = 4.73,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 73,
["normalCount"] = 60,
["healerCount"] = 1,
["healerDelay"] = 25,
["colourCount"] = 9,
["colourDelay"] = 10,
["brawlerCount"] = 3,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 42.88,
["brawlerSpeedFactor"] = 1.909385113,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 330,
["estimatedSilver"] = 465,
["estimatedScore"] = 102000,
["end"] = 0,
},
["59"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.1,
["streamSpeedMax"] = 3.4,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.72,
["enemyMaxDistance"] = 4.72,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 75,
["normalCount"] = 60,
["healerCount"] = 1,
["healerDelay"] = 25,
["colourCount"] = 10,
["colourDelay"] = 5,
["brawlerCount"] = 4,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 44.18,
["brawlerSpeedFactor"] = 1.903225806,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 360,
["estimatedSilver"] = 500,
["estimatedScore"] = 110000,
["end"] = 0,
},
["60"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 1,
["streamSpeedMin"] = 3.11,
["streamSpeedMax"] = 3.41,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.71,
["enemyMaxDistance"] = 4.71,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 87,
["bossPattern"] = 4,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Cash",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 87,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 26,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 1,
["timeLimit"] = 50.4,
["brawlerSpeedFactor"] = 1.897106109,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 475,
["estimatedSilver"] = 610,
["estimatedScore"] = 168000,
["end"] = 0,
},
["61"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.12,
["streamSpeedMax"] = 3.42,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.7,
["enemyMaxDistance"] = 4.7,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 75,
["normalCount"] = 65,
["healerCount"] = 1,
["healerDelay"] = 30,
["colourCount"] = 7,
["colourDelay"] = 20,
["brawlerCount"] = 2,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 46,
["brawlerSpeedFactor"] = 1.891025641,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 100,
["firePillarTimer"] = 3,
["estimatedExp"] = 305,
["estimatedSilver"] = 445,
["estimatedScore"] = 96000,
["end"] = 0,
},
["62"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.13,
["streamSpeedMax"] = 3.43,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.69,
["enemyMaxDistance"] = 4.69,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 77,
["normalCount"] = 65,
["healerCount"] = 1,
["healerDelay"] = 30,
["colourCount"] = 8,
["colourDelay"] = 15,
["brawlerCount"] = 3,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 45.18,
["brawlerSpeedFactor"] = 1.884984026,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 335,
["estimatedSilver"] = 480,
["estimatedScore"] = 104000,
["end"] = 0,
},
["63"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.14,
["streamSpeedMax"] = 3.44,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.68,
["enemyMaxDistance"] = 4.68,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 78,
["normalCount"] = 65,
["healerCount"] = 1,
["healerDelay"] = 30,
["colourCount"] = 9,
["colourDelay"] = 10,
["brawlerCount"] = 3,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 45.78,
["brawlerSpeedFactor"] = 1.878980892,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 345,
["estimatedSilver"] = 490,
["estimatedScore"] = 107000,
["end"] = 0,
},
["64"] = {
["gameMode"] = "NunchakuRound",
["stamina"] = 1,
["streamSpeedMin"] = 4.5,
["streamSpeedMax"] = 5,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.67,
["enemyMaxDistance"] = 4.67,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 96,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 144,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_NunchakuRound",
["TotalCount"] = 98,
["normalCount"] = 70,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 26,
["colourDelay"] = 10,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 2,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 57.6,
["brawlerSpeedFactor"] = 1.311111111,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 510,
["estimatedSilver"] = 660,
["estimatedScore"] = 158000,
["end"] = 0,
},
["65"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.16,
["streamSpeedMax"] = 3.46,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.66,
["enemyMaxDistance"] = 4.66,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 2.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 80,
["normalCount"] = 65,
["healerCount"] = 1,
["healerDelay"] = 30,
["colourCount"] = 10,
["colourDelay"] = 5,
["brawlerCount"] = 4,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 47.08,
["brawlerSpeedFactor"] = 1.867088608,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 375,
["estimatedSilver"] = 525,
["estimatedScore"] = 115000,
["end"] = 0,
},
["66"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.17,
["streamSpeedMax"] = 3.47,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.65,
["enemyMaxDistance"] = 4.65,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 82,
["normalCount"] = 70,
["healerCount"] = 1,
["healerDelay"] = 30,
["colourCount"] = 8,
["colourDelay"] = 20,
["brawlerCount"] = 3,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 48.08,
["brawlerSpeedFactor"] = 1.861198738,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 350,
["estimatedSilver"] = 505,
["estimatedScore"] = 109000,
["end"] = 0,
},
["67"] = {
["gameMode"] = "ThunderStormRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.18,
["streamSpeedMax"] = 3.48,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.64,
["enemyMaxDistance"] = 4.64,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_ThunderStormRound",
["TotalCount"] = 83,
["normalCount"] = 70,
["healerCount"] = 1,
["healerDelay"] = 30,
["colourCount"] = 9,
["colourDelay"] = 15,
["brawlerCount"] = 3,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 48.68,
["brawlerSpeedFactor"] = 1.855345912,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 360,
["estimatedSilver"] = 515,
["estimatedScore"] = 112000,
["end"] = 0,
},
["68"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.19,
["streamSpeedMax"] = 3.49,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.63,
["enemyMaxDistance"] = 4.63,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 85,
["normalCount"] = 70,
["healerCount"] = 1,
["healerDelay"] = 30,
["colourCount"] = 10,
["colourDelay"] = 10,
["brawlerCount"] = 4,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 49.98,
["brawlerSpeedFactor"] = 1.849529781,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 390,
["estimatedSilver"] = 550,
["estimatedScore"] = 120000,
["end"] = 0,
},
["69"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.2,
["streamSpeedMax"] = 3.5,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.62,
["enemyMaxDistance"] = 4.62,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 87,
["normalCount"] = 70,
["healerCount"] = 1,
["healerDelay"] = 30,
["colourCount"] = 12,
["colourDelay"] = 5,
["brawlerCount"] = 4,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 51.18,
["brawlerSpeedFactor"] = 1.84375,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 410,
["estimatedSilver"] = 570,
["estimatedScore"] = 126000,
["end"] = 0,
},
["70"] = {
["gameMode"] = "BossRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.21,
["streamSpeedMax"] = 3.51,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.61,
["enemyMaxDistance"] = 4.61,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 20,
["bossPattern"] = 4,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 2,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 2,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 1.838006231,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 70,
["estimatedSilver"] = 100,
["estimatedScore"] = 60000,
["end"] = 0,
},
["71"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.22,
["streamSpeedMax"] = 3.52,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.6,
["enemyMaxDistance"] = 4.6,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 87,
["normalCount"] = 75,
["healerCount"] = 1,
["healerDelay"] = 35,
["colourCount"] = 8,
["colourDelay"] = 20,
["brawlerCount"] = 3,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 53,
["brawlerSpeedFactor"] = 1.832298137,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 101,
["firePillarTimer"] = 3,
["estimatedExp"] = 365,
["estimatedSilver"] = 530,
["estimatedScore"] = 114000,
["end"] = 0,
},
["72"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.23,
["streamSpeedMax"] = 3.53,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.59,
["enemyMaxDistance"] = 4.59,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 88,
["normalCount"] = 75,
["healerCount"] = 1,
["healerDelay"] = 35,
["colourCount"] = 9,
["colourDelay"] = 15,
["brawlerCount"] = 3,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 51.58,
["brawlerSpeedFactor"] = 1.826625387,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 375,
["estimatedSilver"] = 540,
["estimatedScore"] = 117000,
["end"] = 0,
},
["73"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.24,
["streamSpeedMax"] = 3.54,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.58,
["enemyMaxDistance"] = 4.58,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 90,
["normalCount"] = 75,
["healerCount"] = 1,
["healerDelay"] = 35,
["colourCount"] = 10,
["colourDelay"] = 10,
["brawlerCount"] = 4,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 52.88,
["brawlerSpeedFactor"] = 1.820987654,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 405,
["estimatedSilver"] = 575,
["estimatedScore"] = 125000,
["end"] = 0,
},
["74"] = {
["gameMode"] = "BombRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.25,
["streamSpeedMax"] = 3.55,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.57,
["enemyMaxDistance"] = 4.57,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 111,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 167,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_BombRound",
["TotalCount"] = 100,
["normalCount"] = 100,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 58,
["brawlerSpeedFactor"] = 1.815384615,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 300,
["estimatedSilver"] = 500,
["estimatedScore"] = 100000,
["end"] = 0,
},
["75"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.26,
["streamSpeedMax"] = 3.56,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.56,
["enemyMaxDistance"] = 4.56,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 92,
["normalCount"] = 75,
["healerCount"] = 1,
["healerDelay"] = 35,
["colourCount"] = 12,
["colourDelay"] = 5,
["brawlerCount"] = 4,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 54.08,
["brawlerSpeedFactor"] = 1.809815951,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 425,
["estimatedSilver"] = 595,
["estimatedScore"] = 131000,
["end"] = 0,
},
["76"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.27,
["streamSpeedMax"] = 3.57,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.55,
["enemyMaxDistance"] = 4.55,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 93,
["normalCount"] = 80,
["healerCount"] = 1,
["healerDelay"] = 35,
["colourCount"] = 9,
["colourDelay"] = 20,
["brawlerCount"] = 3,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 54.48,
["brawlerSpeedFactor"] = 1.804281346,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 390,
["estimatedSilver"] = 565,
["estimatedScore"] = 122000,
["end"] = 0,
},
["77"] = {
["gameMode"] = "SmashRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.28,
["streamSpeedMax"] = 3.58,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.54,
["enemyMaxDistance"] = 4.54,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_SmashRound",
["TotalCount"] = 48,
["normalCount"] = 33,
["healerCount"] = 1,
["healerDelay"] = 20,
["colourCount"] = 10,
["colourDelay"] = 15,
["brawlerCount"] = 4,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 28.52,
["brawlerSpeedFactor"] = 1.798780488,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 279,
["estimatedSilver"] = 365,
["estimatedScore"] = 83000,
["end"] = 0,
},
["78"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.29,
["streamSpeedMax"] = 3.59,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.53,
["enemyMaxDistance"] = 4.53,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 97,
["normalCount"] = 80,
["healerCount"] = 1,
["healerDelay"] = 35,
["colourCount"] = 12,
["colourDelay"] = 10,
["brawlerCount"] = 4,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 56.98,
["brawlerSpeedFactor"] = 1.79331307,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 440,
["estimatedSilver"] = 620,
["estimatedScore"] = 136000,
["end"] = 0,
},
["79"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.3,
["streamSpeedMax"] = 3.6,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.52,
["enemyMaxDistance"] = 4.52,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 99,
["normalCount"] = 80,
["healerCount"] = 1,
["healerDelay"] = 35,
["colourCount"] = 13,
["colourDelay"] = 5,
["brawlerCount"] = 5,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 58.28,
["brawlerSpeedFactor"] = 1.787878788,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 470,
["estimatedSilver"] = 655,
["estimatedScore"] = 144000,
["end"] = 0,
},
["80"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 1,
["streamSpeedMin"] = 3.31,
["streamSpeedMax"] = 3.61,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.51,
["enemyMaxDistance"] = 4.51,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 114,
["bossPattern"] = 4,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Cash",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 114,
["normalCount"] = 80,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 33,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 1,
["timeLimit"] = 66.2,
["brawlerSpeedFactor"] = 1.782477341,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 605,
["estimatedSilver"] = 780,
["estimatedScore"] = 209000,
["end"] = 0,
},
["81"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.32,
["streamSpeedMax"] = 3.62,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.5,
["enemyMaxDistance"] = 4.5,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 98,
["normalCount"] = 85,
["healerCount"] = 1,
["healerDelay"] = 40,
["colourCount"] = 9,
["colourDelay"] = 20,
["brawlerCount"] = 3,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 60,
["brawlerSpeedFactor"] = 1.777108434,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 102,
["firePillarTimer"] = 3,
["estimatedExp"] = 405,
["estimatedSilver"] = 590,
["estimatedScore"] = 127000,
["end"] = 0,
},
["82"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.33,
["streamSpeedMax"] = 3.63,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.49,
["enemyMaxDistance"] = 4.49,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 100,
["normalCount"] = 85,
["healerCount"] = 1,
["healerDelay"] = 40,
["colourCount"] = 10,
["colourDelay"] = 15,
["brawlerCount"] = 4,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 58.68,
["brawlerSpeedFactor"] = 1.771771772,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 435,
["estimatedSilver"] = 625,
["estimatedScore"] = 135000,
["end"] = 0,
},
["83"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.34,
["streamSpeedMax"] = 3.64,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.48,
["enemyMaxDistance"] = 4.48,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 102,
["normalCount"] = 85,
["healerCount"] = 1,
["healerDelay"] = 40,
["colourCount"] = 12,
["colourDelay"] = 10,
["brawlerCount"] = 4,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 59.88,
["brawlerSpeedFactor"] = 1.766467066,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 455,
["estimatedSilver"] = 645,
["estimatedScore"] = 141000,
["end"] = 0,
},
["84"] = {
["gameMode"] = "DaggerRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.35,
["streamSpeedMax"] = 3.65,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.47,
["enemyMaxDistance"] = 4.47,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 126,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 189,
["gradeRewardType3"] = "Cash",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_DaggerRound",
["TotalCount"] = 110,
["normalCount"] = 110,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 63.8,
["brawlerSpeedFactor"] = 1.76119403,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 330,
["estimatedSilver"] = 550,
["estimatedScore"] = 110000,
["end"] = 0,
},
["85"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.36,
["streamSpeedMax"] = 3.66,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.46,
["enemyMaxDistance"] = 4.46,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 99,
["normalCount"] = 80,
["healerCount"] = 1,
["healerDelay"] = 40,
["colourCount"] = 13,
["colourDelay"] = 5,
["brawlerCount"] = 5,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 58.28,
["brawlerSpeedFactor"] = 1.636904762,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 470,
["estimatedSilver"] = 655,
["estimatedScore"] = 144000,
["end"] = 0,
},
["86"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.37,
["streamSpeedMax"] = 3.67,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.45,
["enemyMaxDistance"] = 4.45,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 100,
["normalCount"] = 85,
["healerCount"] = 1,
["healerDelay"] = 40,
["colourCount"] = 10,
["colourDelay"] = 20,
["brawlerCount"] = 4,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 58.68,
["brawlerSpeedFactor"] = 1.75074184,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 435,
["estimatedSilver"] = 625,
["estimatedScore"] = 135000,
["end"] = 0,
},
["87"] = {
["gameMode"] = "DefenderRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.38,
["streamSpeedMax"] = 3.68,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.44,
["enemyMaxDistance"] = 4.44,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_DefenderRound",
["TotalCount"] = 120,
["normalCount"] = 120,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 69.59999999999999,
["brawlerSpeedFactor"] = 1.74556213,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 360,
["estimatedSilver"] = 600,
["estimatedScore"] = 120000,
["end"] = 0,
},
["88"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.39,
["streamSpeedMax"] = 3.69,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.43,
["enemyMaxDistance"] = 4.43,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 104,
["normalCount"] = 85,
["healerCount"] = 1,
["healerDelay"] = 40,
["colourCount"] = 13,
["colourDelay"] = 10,
["brawlerCount"] = 5,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 61.18,
["brawlerSpeedFactor"] = 1.740412979,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 485,
["estimatedSilver"] = 680,
["estimatedScore"] = 149000,
["end"] = 0,
},
["89"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.4,
["streamSpeedMax"] = 3.7,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.42,
["enemyMaxDistance"] = 4.42,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 106,
["normalCount"] = 85,
["healerCount"] = 1,
["healerDelay"] = 40,
["colourCount"] = 14,
["colourDelay"] = 5,
["brawlerCount"] = 6,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 62.48,
["brawlerSpeedFactor"] = 1.735294118,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 515,
["estimatedSilver"] = 715,
["estimatedScore"] = 157000,
["end"] = 0,
},
["90"] = {
["gameMode"] = "BossRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.41,
["streamSpeedMax"] = 3.71,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.41,
["enemyMaxDistance"] = 4.41,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 10,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 3,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 3,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 1.730205279,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 105,
["estimatedSilver"] = 150,
["estimatedScore"] = 90000,
["end"] = 0,
},
["91"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.42,
["streamSpeedMax"] = 3.72,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.4,
["enemyMaxDistance"] = 4.4,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 105,
["normalCount"] = 90,
["healerCount"] = 1,
["healerDelay"] = 45,
["colourCount"] = 10,
["colourDelay"] = 20,
["brawlerCount"] = 4,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 64,
["brawlerSpeedFactor"] = 1.725146199,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 103,
["firePillarTimer"] = 3,
["estimatedExp"] = 450,
["estimatedSilver"] = 650,
["estimatedScore"] = 140000,
["end"] = 0,
},
["92"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.43,
["streamSpeedMax"] = 3.73,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.39,
["enemyMaxDistance"] = 4.39,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 107,
["normalCount"] = 90,
["healerCount"] = 1,
["healerDelay"] = 45,
["colourCount"] = 12,
["colourDelay"] = 15,
["brawlerCount"] = 4,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 62.78,
["brawlerSpeedFactor"] = 1.720116618,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 470,
["estimatedSilver"] = 670,
["estimatedScore"] = 146000,
["end"] = 0,
},
["93"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.44,
["streamSpeedMax"] = 3.74,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.38,
["enemyMaxDistance"] = 4.38,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 109,
["normalCount"] = 90,
["healerCount"] = 1,
["healerDelay"] = 45,
["colourCount"] = 13,
["colourDelay"] = 10,
["brawlerCount"] = 5,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 64.08,
["brawlerSpeedFactor"] = 1.715116279,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 500,
["estimatedSilver"] = 705,
["estimatedScore"] = 154000,
["end"] = 0,
},
["94"] = {
["gameMode"] = "LightSwordRound",
["stamina"] = 1,
["streamSpeedMin"] = 5,
["streamSpeedMax"] = 6,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.37,
["enemyMaxDistance"] = 4.37,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 141,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 212,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_LightSwordRound",
["TotalCount"] = 131,
["normalCount"] = 90,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 39,
["colourDelay"] = 15,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 2,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 77,
["brawlerSpeedFactor"] = 1.18,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 700,
["estimatedSilver"] = 890,
["estimatedScore"] = 217000,
["end"] = 0,
},
["95"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.46,
["streamSpeedMax"] = 3.76,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.36,
["enemyMaxDistance"] = 4.36,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 3.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 111,
["normalCount"] = 90,
["healerCount"] = 1,
["healerDelay"] = 45,
["colourCount"] = 14,
["colourDelay"] = 5,
["brawlerCount"] = 6,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 65.38,
["brawlerSpeedFactor"] = 1.705202312,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 530,
["estimatedSilver"] = 740,
["estimatedScore"] = 162000,
["end"] = 0,
},
["96"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.47,
["streamSpeedMax"] = 3.77,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.35,
["enemyMaxDistance"] = 4.35,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 112,
["normalCount"] = 95,
["healerCount"] = 1,
["healerDelay"] = 45,
["colourCount"] = 12,
["colourDelay"] = 20,
["brawlerCount"] = 4,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 65.68000000000001,
["brawlerSpeedFactor"] = 1.700288184,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 485,
["estimatedSilver"] = 695,
["estimatedScore"] = 151000,
["end"] = 0,
},
["97"] = {
["gameMode"] = "RetroFilmRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.48,
["streamSpeedMax"] = 3.78,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.34,
["enemyMaxDistance"] = 4.34,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_RetroFilmRound",
["TotalCount"] = 114,
["normalCount"] = 95,
["healerCount"] = 1,
["healerDelay"] = 45,
["colourCount"] = 13,
["colourDelay"] = 15,
["brawlerCount"] = 5,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 66.98,
["brawlerSpeedFactor"] = 1.695402299,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 515,
["estimatedSilver"] = 730,
["estimatedScore"] = 159000,
["end"] = 0,
},
["98"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.49,
["streamSpeedMax"] = 3.79,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.33,
["enemyMaxDistance"] = 4.33,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 116,
["normalCount"] = 95,
["healerCount"] = 1,
["healerDelay"] = 45,
["colourCount"] = 14,
["colourDelay"] = 10,
["brawlerCount"] = 6,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 68.28,
["brawlerSpeedFactor"] = 1.690544413,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 545,
["estimatedSilver"] = 765,
["estimatedScore"] = 167000,
["end"] = 0,
},
["99"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.5,
["streamSpeedMax"] = 3.8,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.32,
["enemyMaxDistance"] = 4.32,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 118,
["normalCount"] = 95,
["healerCount"] = 1,
["healerDelay"] = 45,
["colourCount"] = 16,
["colourDelay"] = 5,
["brawlerCount"] = 6,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 69.48,
["brawlerSpeedFactor"] = 1.685714286,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 565,
["estimatedSilver"] = 785,
["estimatedScore"] = 173000,
["end"] = 0,
},
["100"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 1,
["streamSpeedMin"] = 3.51,
["streamSpeedMax"] = 3.81,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.31,
["enemyMaxDistance"] = 4.31,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 130,
["bossPattern"] = 2,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Cash",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 130,
["normalCount"] = 90,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 39,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 1,
["timeLimit"] = 75.59999999999999,
["brawlerSpeedFactor"] = 1.680911681,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 695,
["estimatedSilver"] = 890,
["estimatedScore"] = 237000,
["end"] = 0,
},
["101"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.52,
["streamSpeedMax"] = 3.82,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.3,
["enemyMaxDistance"] = 4.3,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 117,
["normalCount"] = 100,
["healerCount"] = 1,
["healerDelay"] = 50,
["colourCount"] = 12,
["colourDelay"] = 20,
["brawlerCount"] = 4,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 69,
["brawlerSpeedFactor"] = 1.676136364,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 104,
["firePillarTimer"] = 3,
["estimatedExp"] = 500,
["estimatedSilver"] = 720,
["estimatedScore"] = 156000,
["end"] = 0,
},
["102"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.53,
["streamSpeedMax"] = 3.83,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.29,
["enemyMaxDistance"] = 4.29,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 119,
["normalCount"] = 100,
["healerCount"] = 1,
["healerDelay"] = 50,
["colourCount"] = 13,
["colourDelay"] = 15,
["brawlerCount"] = 5,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 69.88,
["brawlerSpeedFactor"] = 1.671388102,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 530,
["estimatedSilver"] = 755,
["estimatedScore"] = 164000,
["end"] = 0,
},
["103"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.54,
["streamSpeedMax"] = 3.84,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.28,
["enemyMaxDistance"] = 4.28,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 121,
["normalCount"] = 100,
["healerCount"] = 1,
["healerDelay"] = 50,
["colourCount"] = 14,
["colourDelay"] = 10,
["brawlerCount"] = 6,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 71.18000000000001,
["brawlerSpeedFactor"] = 1.666666667,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 560,
["estimatedSilver"] = 790,
["estimatedScore"] = 172000,
["end"] = 0,
},
["104"] = {
["gameMode"] = "NunchakuRound",
["stamina"] = 1,
["streamSpeedMin"] = 5.5,
["streamSpeedMax"] = 6,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.27,
["enemyMaxDistance"] = 4.27,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 156,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 234,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_NunchakuRound",
["TotalCount"] = 141,
["normalCount"] = 100,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 39,
["colourDelay"] = 15,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 2,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 82.8,
["brawlerSpeedFactor"] = 1.072727273,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 730,
["estimatedSilver"] = 940,
["estimatedScore"] = 227000,
["end"] = 0,
},
["105"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.56,
["streamSpeedMax"] = 3.86,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.26,
["enemyMaxDistance"] = 4.26,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 123,
["normalCount"] = 100,
["healerCount"] = 1,
["healerDelay"] = 50,
["colourCount"] = 16,
["colourDelay"] = 5,
["brawlerCount"] = 6,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 72.38,
["brawlerSpeedFactor"] = 1.657303371,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 580,
["estimatedSilver"] = 810,
["estimatedScore"] = 178000,
["end"] = 0,
},
["106"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.57,
["streamSpeedMax"] = 3.87,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.25,
["enemyMaxDistance"] = 4.25,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 124,
["normalCount"] = 105,
["healerCount"] = 1,
["healerDelay"] = 50,
["colourCount"] = 13,
["colourDelay"] = 20,
["brawlerCount"] = 5,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 72.78,
["brawlerSpeedFactor"] = 1.652661064,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 545,
["estimatedSilver"] = 780,
["estimatedScore"] = 169000,
["end"] = 0,
},
["107"] = {
["gameMode"] = "ThunderStormRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.58,
["streamSpeedMax"] = 3.88,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.24,
["enemyMaxDistance"] = 4.24,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_ThunderStormRound",
["TotalCount"] = 126,
["normalCount"] = 105,
["healerCount"] = 1,
["healerDelay"] = 50,
["colourCount"] = 14,
["colourDelay"] = 15,
["brawlerCount"] = 6,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 74.08,
["brawlerSpeedFactor"] = 1.648044693,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 575,
["estimatedSilver"] = 815,
["estimatedScore"] = 177000,
["end"] = 0,
},
["108"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.59,
["streamSpeedMax"] = 3.89,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.23,
["enemyMaxDistance"] = 4.23,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 128,
["normalCount"] = 105,
["healerCount"] = 1,
["healerDelay"] = 50,
["colourCount"] = 16,
["colourDelay"] = 10,
["brawlerCount"] = 6,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 75.28,
["brawlerSpeedFactor"] = 1.643454039,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 595,
["estimatedSilver"] = 835,
["estimatedScore"] = 183000,
["end"] = 0,
},
["109"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.6,
["streamSpeedMax"] = 3.9,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.22,
["enemyMaxDistance"] = 4.22,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 129,
["normalCount"] = 105,
["healerCount"] = 1,
["healerDelay"] = 50,
["colourCount"] = 17,
["colourDelay"] = 5,
["brawlerCount"] = 6,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 75.88,
["brawlerSpeedFactor"] = 1.638888889,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 605,
["estimatedSilver"] = 845,
["estimatedScore"] = 186000,
["end"] = 0,
},
["110"] = {
["gameMode"] = "BossRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.61,
["streamSpeedMax"] = 3.91,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.21,
["enemyMaxDistance"] = 4.21,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 20,
["bossPattern"] = 4,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 3,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 3,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 1.63434903,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 105,
["estimatedSilver"] = 150,
["estimatedScore"] = 90000,
["end"] = 0,
},
["111"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.62,
["streamSpeedMax"] = 3.92,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.2,
["enemyMaxDistance"] = 4.2,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 130,
["normalCount"] = 110,
["healerCount"] = 2,
["healerDelay"] = 30,
["colourCount"] = 13,
["colourDelay"] = 20,
["brawlerCount"] = 5,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 77,
["brawlerSpeedFactor"] = 1.629834254,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 105,
["firePillarTimer"] = 3,
["estimatedExp"] = 560,
["estimatedSilver"] = 805,
["estimatedScore"] = 174000,
["end"] = 0,
},
["112"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.63,
["streamSpeedMax"] = 3.93,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.19,
["enemyMaxDistance"] = 4.19,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 132,
["normalCount"] = 110,
["healerCount"] = 2,
["healerDelay"] = 30,
["colourCount"] = 14,
["colourDelay"] = 15,
["brawlerCount"] = 6,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 77.56,
["brawlerSpeedFactor"] = 1.625344353,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 590,
["estimatedSilver"] = 840,
["estimatedScore"] = 182000,
["end"] = 0,
},
["113"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.64,
["streamSpeedMax"] = 3.94,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.18,
["enemyMaxDistance"] = 4.18,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 134,
["normalCount"] = 110,
["healerCount"] = 2,
["healerDelay"] = 30,
["colourCount"] = 16,
["colourDelay"] = 10,
["brawlerCount"] = 6,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 78.76000000000001,
["brawlerSpeedFactor"] = 1.620879121,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 610,
["estimatedSilver"] = 860,
["estimatedScore"] = 188000,
["end"] = 0,
},
["114"] = {
["gameMode"] = "BombRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.65,
["streamSpeedMax"] = 3.95,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.17,
["enemyMaxDistance"] = 4.17,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 171,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 257,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BombRound",
["TotalCount"] = 137,
["normalCount"] = 137,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 79.45999999999999,
["brawlerSpeedFactor"] = 1.616438356,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 411,
["estimatedSilver"] = 685,
["estimatedScore"] = 137000,
["end"] = 0,
},
["115"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.66,
["streamSpeedMax"] = 3.96,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.16,
["enemyMaxDistance"] = 4.16,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 135,
["normalCount"] = 110,
["healerCount"] = 2,
["healerDelay"] = 30,
["colourCount"] = 17,
["colourDelay"] = 5,
["brawlerCount"] = 6,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 79.36,
["brawlerSpeedFactor"] = 1.612021858,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 620,
["estimatedSilver"] = 870,
["estimatedScore"] = 191000,
["end"] = 0,
},
["116"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.67,
["streamSpeedMax"] = 3.97,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.15,
["enemyMaxDistance"] = 4.15,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 137,
["normalCount"] = 115,
["healerCount"] = 2,
["healerDelay"] = 30,
["colourCount"] = 14,
["colourDelay"] = 20,
["brawlerCount"] = 6,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 80.45999999999999,
["brawlerSpeedFactor"] = 1.607629428,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 605,
["estimatedSilver"] = 865,
["estimatedScore"] = 187000,
["end"] = 0,
},
["117"] = {
["gameMode"] = "SmashRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.68,
["streamSpeedMax"] = 3.98,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.14,
["enemyMaxDistance"] = 4.14,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_SmashRound",
["TotalCount"] = 68,
["normalCount"] = 44,
["healerCount"] = 2,
["healerDelay"] = 30,
["colourCount"] = 16,
["colourDelay"] = 15,
["brawlerCount"] = 6,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 40.48,
["brawlerSpeedFactor"] = 1.60326087,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 412,
["estimatedSilver"] = 530,
["estimatedScore"] = 122000,
["end"] = 0,
},
["118"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.69,
["streamSpeedMax"] = 3.99,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.13,
["enemyMaxDistance"] = 4.13,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 140,
["normalCount"] = 115,
["healerCount"] = 2,
["healerDelay"] = 30,
["colourCount"] = 17,
["colourDelay"] = 10,
["brawlerCount"] = 6,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 82.26000000000001,
["brawlerSpeedFactor"] = 1.598915989,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 635,
["estimatedSilver"] = 895,
["estimatedScore"] = 196000,
["end"] = 0,
},
["119"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.7,
["streamSpeedMax"] = 4,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.12,
["enemyMaxDistance"] = 4.12,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 142,
["normalCount"] = 115,
["healerCount"] = 2,
["healerDelay"] = 30,
["colourCount"] = 18,
["colourDelay"] = 5,
["brawlerCount"] = 7,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 83.56,
["brawlerSpeedFactor"] = 1.594594595,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 665,
["estimatedSilver"] = 930,
["estimatedScore"] = 204000,
["end"] = 0,
},
["120"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 1,
["streamSpeedMin"] = 3.71,
["streamSpeedMax"] = 4.01,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.11,
["enemyMaxDistance"] = 4.11,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 157,
["bossPattern"] = 2,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 4.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Cash",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 157,
["normalCount"] = 110,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 46,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 1,
["timeLimit"] = 91.40000000000001,
["brawlerSpeedFactor"] = 1.590296496,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 825,
["estimatedSilver"] = 1060,
["estimatedScore"] = 278000,
["end"] = 0,
},
["121"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.72,
["streamSpeedMax"] = 4.02,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 4.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 142,
["normalCount"] = 120,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 14,
["colourDelay"] = 20,
["brawlerCount"] = 6,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 84,
["brawlerSpeedFactor"] = 1.586021505,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 106,
["firePillarTimer"] = 3,
["estimatedExp"] = 620,
["estimatedSilver"] = 890,
["estimatedScore"] = 192000,
["end"] = 0,
},
["122"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.73,
["streamSpeedMax"] = 4.03,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 4.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 144,
["normalCount"] = 120,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 16,
["colourDelay"] = 15,
["brawlerCount"] = 6,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 84.56,
["brawlerSpeedFactor"] = 1.581769437,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 640,
["estimatedSilver"] = 910,
["estimatedScore"] = 198000,
["end"] = 0,
},
["123"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.74,
["streamSpeedMax"] = 4.04,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 4.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 145,
["normalCount"] = 120,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 17,
["colourDelay"] = 10,
["brawlerCount"] = 6,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 85.16,
["brawlerSpeedFactor"] = 1.577540107,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 650,
["estimatedSilver"] = 920,
["estimatedScore"] = 201000,
["end"] = 0,
},
["124"] = {
["gameMode"] = "DaggerRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.75,
["streamSpeedMax"] = 4.05,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 4.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 186,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 279,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_DaggerRound",
["TotalCount"] = 150,
["normalCount"] = 150,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 87,
["brawlerSpeedFactor"] = 1.573333333,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 450,
["estimatedSilver"] = 750,
["estimatedScore"] = 150000,
["end"] = 0,
},
["125"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.76,
["streamSpeedMax"] = 4.06,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 4.8,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 149,
["normalCount"] = 120,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 20,
["colourDelay"] = 5,
["brawlerCount"] = 7,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 87.66,
["brawlerSpeedFactor"] = 1.569148936,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 700,
["estimatedSilver"] = 975,
["estimatedScore"] = 215000,
["end"] = 0,
},
["126"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.77,
["streamSpeedMax"] = 4.07,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 149,
["normalCount"] = 125,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 16,
["colourDelay"] = 20,
["brawlerCount"] = 6,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 87.45999999999999,
["brawlerSpeedFactor"] = 1.564986737,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 655,
["estimatedSilver"] = 935,
["estimatedScore"] = 203000,
["end"] = 0,
},
["127"] = {
["gameMode"] = "DefenderRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.78,
["streamSpeedMax"] = 4.08,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_DefenderRound",
["TotalCount"] = 155,
["normalCount"] = 155,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 89.90000000000001,
["brawlerSpeedFactor"] = 1.560846561,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 465,
["estimatedSilver"] = 775,
["estimatedScore"] = 155000,
["end"] = 0,
},
["128"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.79,
["streamSpeedMax"] = 4.09,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 152,
["normalCount"] = 125,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 18,
["colourDelay"] = 10,
["brawlerCount"] = 7,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 89.36,
["brawlerSpeedFactor"] = 1.556728232,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 695,
["estimatedSilver"] = 980,
["estimatedScore"] = 214000,
["end"] = 0,
},
["129"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.8,
["streamSpeedMax"] = 4.1,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 154,
["normalCount"] = 125,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 20,
["colourDelay"] = 5,
["brawlerCount"] = 7,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 90.56,
["brawlerSpeedFactor"] = 1.552631579,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 715,
["estimatedSilver"] = 1000,
["estimatedScore"] = 220000,
["end"] = 0,
},
["130"] = {
["gameMode"] = "BossRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.81,
["streamSpeedMax"] = 4.11,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 15,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 4,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 4,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 1.54855643,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 140,
["estimatedSilver"] = 200,
["estimatedScore"] = 120000,
["end"] = 0,
},
["131"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.82,
["streamSpeedMax"] = 4.12,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 154,
["normalCount"] = 130,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 16,
["colourDelay"] = 20,
["brawlerCount"] = 6,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 91,
["brawlerSpeedFactor"] = 1.544502618,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 107,
["firePillarTimer"] = 3,
["estimatedExp"] = 670,
["estimatedSilver"] = 960,
["estimatedScore"] = 208000,
["end"] = 0,
},
["132"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.83,
["streamSpeedMax"] = 4.13,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 155,
["normalCount"] = 130,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 17,
["colourDelay"] = 15,
["brawlerCount"] = 6,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 90.95999999999999,
["brawlerSpeedFactor"] = 1.540469974,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 680,
["estimatedSilver"] = 970,
["estimatedScore"] = 211000,
["end"] = 0,
},
["133"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.84,
["streamSpeedMax"] = 4.14,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 157,
["normalCount"] = 130,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 18,
["colourDelay"] = 10,
["brawlerCount"] = 7,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 92.26000000000001,
["brawlerSpeedFactor"] = 1.536458333,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 710,
["estimatedSilver"] = 1005,
["estimatedScore"] = 219000,
["end"] = 0,
},
["134"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 1,
["streamSpeedMin"] = 3.85,
["streamSpeedMax"] = 4.15,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 173,
["bossPattern"] = 2,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 201,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 302,
["gradeRewardType3"] = "Cash",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 173,
["normalCount"] = 120,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 52,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 1,
["timeLimit"] = 100.8,
["brawlerSpeedFactor"] = 1.532467532,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 915,
["estimatedSilver"] = 1170,
["estimatedScore"] = 306000,
["end"] = 0,
},
["135"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.86,
["streamSpeedMax"] = 4.16,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 161,
["normalCount"] = 130,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 21,
["colourDelay"] = 3,
["brawlerCount"] = 8,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 94.76000000000001,
["brawlerSpeedFactor"] = 1.528497409,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 760,
["estimatedSilver"] = 1060,
["estimatedScore"] = 233000,
["end"] = 0,
},
["136"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.87,
["streamSpeedMax"] = 4.17,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 160,
["normalCount"] = 135,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 17,
["colourDelay"] = 20,
["brawlerCount"] = 6,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 93.86,
["brawlerSpeedFactor"] = 1.524547804,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 695,
["estimatedSilver"] = 995,
["estimatedScore"] = 216000,
["end"] = 0,
},
["137"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 1,
["streamSpeedMin"] = 3.88,
["streamSpeedMax"] = 4.18,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 195,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 195,
["normalCount"] = 135,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 59,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 1,
["timeLimit"] = 113.7,
["brawlerSpeedFactor"] = 1.520618557,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 1030,
["estimatedSilver"] = 1315,
["estimatedScore"] = 342000,
["end"] = 0,
},
["138"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.89,
["streamSpeedMax"] = 4.19,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 12000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 164,
["normalCount"] = 135,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 20,
["colourDelay"] = 10,
["brawlerCount"] = 7,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 96.36,
["brawlerSpeedFactor"] = 1.516709512,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 745,
["estimatedSilver"] = 1050,
["estimatedScore"] = 230000,
["end"] = 0,
},
["139"] = {
["gameMode"] = "MobRound",
["stamina"] = 1,
["streamSpeedMin"] = 3.9,
["streamSpeedMax"] = 4.2,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 5.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 12000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_MobRound",
["TotalCount"] = 166,
["normalCount"] = 135,
["healerCount"] = 2,
["healerDelay"] = 40,
["colourCount"] = 21,
["colourDelay"] = 5,
["brawlerCount"] = 8,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 0,
["bossCount"] = 0,
["timeLimit"] = 97.66,
["brawlerSpeedFactor"] = 1.512820513,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 775,
["estimatedSilver"] = 1085,
["estimatedScore"] = 238000,
["end"] = 0,
},
["140"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 1,
["streamSpeedMin"] = 2.52,
["streamSpeedMax"] = 2.82,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 216,
["bossPattern"] = 4,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 0,
["damageFactor"] = 1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Cash",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 1,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 216,
["normalCount"] = 150,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 65,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 0,
["bossCount"] = 1,
["timeLimit"] = 126,
["brawlerSpeedFactor"] = 1.984126984,
["brawlerSpeedFactor"] = 5,
["isHard"] = 0,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 1135,
["estimatedSilver"] = 1450,
["estimatedScore"] = 375000,
["end"] = 0,
},
["141"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 3.92,
["streamSpeedMax"] = 4.22,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 5,
["enemyMaxDistance"] = 8,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 100,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 100,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 200,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 20,
["normalCount"] = 20,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 11.6,
["brawlerSpeedFactor"] = 1.275510204,
["brawlerSpeedFactor"] = 5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 60,
["estimatedSilver"] = 100,
["estimatedScore"] = 20000,
["end"] = 0,
},
["142"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 3.93,
["streamSpeedMax"] = 4.23,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 4.8,
["enemyMaxDistance"] = 7.8,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 100,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 200,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 300,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 30,
["normalCount"] = 30,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 17.4,
["brawlerSpeedFactor"] = 1.272264631,
["brawlerSpeedFactor"] = 5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 90,
["estimatedSilver"] = 150,
["estimatedScore"] = 30000,
["end"] = 0,
},
["143"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 3.94,
["streamSpeedMax"] = 4.24,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 4.6,
["enemyMaxDistance"] = 7.6,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 200,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 300,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 400,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 40,
["normalCount"] = 40,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 23.2,
["brawlerSpeedFactor"] = 1.269035533,
["brawlerSpeedFactor"] = 5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 120,
["estimatedSilver"] = 200,
["estimatedScore"] = 40000,
["end"] = 0,
},
["144"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 3.95,
["streamSpeedMax"] = 4.25,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 4.4,
["enemyMaxDistance"] = 7.4,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 160,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 320,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 60,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 34.8,
["brawlerSpeedFactor"] = 1.265822785,
["brawlerSpeedFactor"] = 5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 180,
["estimatedSilver"] = 300,
["estimatedScore"] = 60000,
["end"] = 0,
},
["145"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 3.96,
["streamSpeedMax"] = 4.26,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 4.2,
["enemyMaxDistance"] = 7.2,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 200,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 400,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 600,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 43,
["normalCount"] = 40,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 15,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 25,
["brawlerSpeedFactor"] = 1.262626263,
["brawlerSpeedFactor"] = 5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 150,
["estimatedSilver"] = 230,
["estimatedScore"] = 49000,
["end"] = 0,
},
["146"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 3.97,
["streamSpeedMax"] = 4.27,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 4,
["enemyMaxDistance"] = 7,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 300,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 500,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 800,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 45,
["normalCount"] = 40,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 5,
["colourDelay"] = 10,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 26.2,
["brawlerSpeedFactor"] = 1.259445844,
["brawlerSpeedFactor"] = 5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 170,
["estimatedSilver"] = 250,
["estimatedScore"] = 55000,
["end"] = 0,
},
["147"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 3.98,
["streamSpeedMax"] = 4.28,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 3.8,
["enemyMaxDistance"] = 6.8,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 300,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 600,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 900,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 63,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 15,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 36.6,
["brawlerSpeedFactor"] = 1.256281407,
["brawlerSpeedFactor"] = 5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 210,
["estimatedSilver"] = 330,
["estimatedScore"] = 69000,
["end"] = 0,
},
["148"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 3.99,
["streamSpeedMax"] = 4.29,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 3.6,
["enemyMaxDistance"] = 6.6,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 400,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 700,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 1000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 65,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 5,
["colourDelay"] = 10,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 37.8,
["brawlerSpeedFactor"] = 1.253132832,
["brawlerSpeedFactor"] = 5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 230,
["estimatedSilver"] = 350,
["estimatedScore"] = 75000,
["end"] = 0,
},
["149"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4,
["streamSpeedMax"] = 4.3,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 3.4,
["enemyMaxDistance"] = 6.4,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 400,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 800,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 68,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 8,
["colourDelay"] = 5,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 39.6,
["brawlerSpeedFactor"] = 1.25,
["brawlerSpeedFactor"] = 5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 260,
["estimatedSilver"] = 380,
["estimatedScore"] = 84000,
["end"] = 0,
},
["150"] = {
["gameMode"] = "BossRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.01,
["streamSpeedMax"] = 4.31,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 3.2,
["enemyMaxDistance"] = 6.2,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 5,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Item",
["gradeRewardValue1"] = 1029,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 2,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 10,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 2,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 0.997506234,
["brawlerSpeedFactor"] = 4,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 70,
["estimatedSilver"] = 100,
["estimatedScore"] = 60000,
["end"] = 0,
},
["151"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.02,
["streamSpeedMax"] = 4.32,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 3.1,
["enemyMaxDistance"] = 6.1,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 500,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 900,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 53,
["normalCount"] = 50,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 31,
["brawlerSpeedFactor"] = 1.368159204,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 180,
["estimatedSilver"] = 280,
["estimatedScore"] = 59000,
["end"] = 0,
},
["152"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.03,
["streamSpeedMax"] = 4.33,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 3,
["enemyMaxDistance"] = 6,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 500,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 1000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 65,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 5,
["colourDelay"] = 15,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 37.8,
["brawlerSpeedFactor"] = 1.364764268,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 230,
["estimatedSilver"] = 350,
["estimatedScore"] = 75000,
["end"] = 0,
},
["153"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.04,
["streamSpeedMax"] = 4.34,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.9,
["enemyMaxDistance"] = 5.9,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 600,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 78,
["normalCount"] = 70,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 8,
["colourDelay"] = 10,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 45.4,
["brawlerSpeedFactor"] = 1.361386139,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 290,
["estimatedSilver"] = 430,
["estimatedScore"] = 94000,
["end"] = 0,
},
["154"] = {
["gameMode"] = "LightSwordRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.05,
["streamSpeedMax"] = 4.35,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.8,
["enemyMaxDistance"] = 5.8,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 42,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 63,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_LightSwordRound",
["TotalCount"] = 102,
["normalCount"] = 100,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 2,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 59.4,
["brawlerSpeedFactor"] = 1.358024691,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 340,
["estimatedSilver"] = 550,
["estimatedScore"] = 110000,
["end"] = 0,
},
["155"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.06,
["streamSpeedMax"] = 4.36,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.7,
["enemyMaxDistance"] = 5.7,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 1.5,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 600,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 51,
["normalCount"] = 50,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 1,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 29.7,
["brawlerSpeedFactor"] = 1.354679803,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 170,
["estimatedSilver"] = 275,
["estimatedScore"] = 55000,
["end"] = 0,
},
["156"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.07,
["streamSpeedMax"] = 4.37,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.6,
["enemyMaxDistance"] = 5.6,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 700,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 55,
["normalCount"] = 50,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 0,
["brawlerCount"] = 2,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 32.2,
["brawlerSpeedFactor"] = 1.351351351,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 220,
["estimatedSilver"] = 330,
["estimatedScore"] = 69000,
["end"] = 0,
},
["157"] = {
["gameMode"] = "RetroFilmRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.08,
["streamSpeedMax"] = 4.38,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.5,
["enemyMaxDistance"] = 5.5,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 700,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 2000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_RetroFilmRound",
["TotalCount"] = 77,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 10,
["colourDelay"] = 15,
["brawlerCount"] = 5,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 2,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 45.7,
["brawlerSpeedFactor"] = 1.348039216,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 420,
["estimatedSilver"] = 575,
["estimatedScore"] = 125000,
["end"] = 0,
},
["158"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.09,
["streamSpeedMax"] = 4.39,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.4,
["enemyMaxDistance"] = 5.4,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 800,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 68,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 5,
["colourDelay"] = 10,
["brawlerCount"] = 3,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 39.9,
["brawlerSpeedFactor"] = 1.344743276,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 290,
["estimatedSilver"] = 425,
["estimatedScore"] = 90000,
["end"] = 0,
},
["159"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.1,
["streamSpeedMax"] = 4.4,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.3,
["enemyMaxDistance"] = 5.3,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 800,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 3,
["gradeReward3Count"] = 5,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 82,
["normalCount"] = 70,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 8,
["colourDelay"] = 5,
["brawlerCount"] = 4,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 48.2,
["brawlerSpeedFactor"] = 1.341463415,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 370,
["estimatedSilver"] = 530,
["estimatedScore"] = 114000,
["end"] = 0,
},
["160"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 2,
["streamSpeedMin"] = 4.11,
["streamSpeedMax"] = 4.41,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.2,
["enemyMaxDistance"] = 5.2,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 54,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 2,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Item",
["gradeRewardValue1"] = 1030,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "Cash",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 54,
["normalCount"] = 40,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 13,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 30,
["bossCount"] = 1,
["timeLimit"] = 31,
["brawlerSpeedFactor"] = 1.338199513,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 285,
["estimatedSilver"] = 380,
["estimatedScore"] = 109000,
["end"] = 0,
},
["161"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.12,
["streamSpeedMax"] = 4.42,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.1,
["enemyMaxDistance"] = 5.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 900,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 51,
["normalCount"] = 50,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 1,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 30,
["brawlerSpeedFactor"] = 1.432038835,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 170,
["estimatedSilver"] = 275,
["estimatedScore"] = 55000,
["end"] = 0,
},
["162"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.13,
["streamSpeedMax"] = 4.43,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.09,
["enemyMaxDistance"] = 5.09,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 900,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 55,
["normalCount"] = 50,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 15,
["brawlerCount"] = 2,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 32.2,
["brawlerSpeedFactor"] = 1.428571429,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 220,
["estimatedSilver"] = 330,
["estimatedScore"] = 69000,
["end"] = 0,
},
["163"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.14,
["streamSpeedMax"] = 4.44,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.08,
["enemyMaxDistance"] = 5.08,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 1000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 68,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 5,
["colourDelay"] = 10,
["brawlerCount"] = 3,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 39.9,
["brawlerSpeedFactor"] = 1.425120773,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 290,
["estimatedSilver"] = 425,
["estimatedScore"] = 90000,
["end"] = 0,
},
["164"] = {
["gameMode"] = "NunchakuRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.15,
["streamSpeedMax"] = 4.45,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.07,
["enemyMaxDistance"] = 5.07,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 72,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 108,
["gradeRewardType3"] = "Cash",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_NunchakuRound",
["TotalCount"] = 122,
["normalCount"] = 120,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 2,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 71,
["brawlerSpeedFactor"] = 1.421686747,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 400,
["estimatedSilver"] = 650,
["estimatedScore"] = 130000,
["end"] = 0,
},
["165"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.16,
["streamSpeedMax"] = 4.46,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.06,
["enemyMaxDistance"] = 5.06,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.1,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 1000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 2000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 3000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 62,
["normalCount"] = 50,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 8,
["colourDelay"] = 0,
["brawlerCount"] = 4,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 36.6,
["brawlerSpeedFactor"] = 1.418269231,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 310,
["estimatedSilver"] = 430,
["estimatedScore"] = 94000,
["end"] = 0,
},
["166"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.17,
["streamSpeedMax"] = 4.47,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.05,
["enemyMaxDistance"] = 5.05,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.55,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 62,
["normalCount"] = 50,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 8,
["colourDelay"] = 0,
["brawlerCount"] = 4,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 36.6,
["brawlerSpeedFactor"] = 1.414868106,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 310,
["estimatedSilver"] = 430,
["estimatedScore"] = 94000,
["end"] = 0,
},
["167"] = {
["gameMode"] = "ThunderStormRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.18,
["streamSpeedMax"] = 4.48,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.04,
["enemyMaxDistance"] = 5.04,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.55,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_ThunderStormRound",
["TotalCount"] = 66,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 15,
["brawlerCount"] = 3,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 38.7,
["brawlerSpeedFactor"] = 1.411483254,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 270,
["estimatedSilver"] = 405,
["estimatedScore"] = 84000,
["end"] = 0,
},
["168"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.19,
["streamSpeedMax"] = 4.49,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.03,
["enemyMaxDistance"] = 5.03,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.55,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 69,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 5,
["colourDelay"] = 10,
["brawlerCount"] = 4,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 40.6,
["brawlerSpeedFactor"] = 1.408114558,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 310,
["estimatedSilver"] = 450,
["estimatedScore"] = 95000,
["end"] = 0,
},
["169"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.2,
["streamSpeedMax"] = 4.5,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.02,
["enemyMaxDistance"] = 5.02,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.55,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 83,
["normalCount"] = 70,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 8,
["colourDelay"] = 5,
["brawlerCount"] = 5,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 48.9,
["brawlerSpeedFactor"] = 1.404761905,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 390,
["estimatedSilver"] = 555,
["estimatedScore"] = 119000,
["end"] = 0,
},
["170"] = {
["gameMode"] = "BossRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.21,
["streamSpeedMax"] = 4.51,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2.01,
["enemyMaxDistance"] = 5.01,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 2,
["bossPattern"] = 4,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.55,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Item",
["gradeRewardValue1"] = 1071,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 2,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 10,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 2,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 1.401425178,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 70,
["estimatedSilver"] = 100,
["estimatedScore"] = 60000,
["end"] = 0,
},
["171"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.22,
["streamSpeedMax"] = 4.52,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 2,
["enemyMaxDistance"] = 5,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.55,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 53,
["normalCount"] = 50,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 3,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 32,
["brawlerSpeedFactor"] = 1.398104265,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 210,
["estimatedSilver"] = 325,
["estimatedScore"] = 65000,
["end"] = 0,
},
["172"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.23,
["streamSpeedMax"] = 4.53,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.99,
["enemyMaxDistance"] = 4.99,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.55,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 57,
["normalCount"] = 50,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 3,
["colourDelay"] = 15,
["brawlerCount"] = 4,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 33.6,
["brawlerSpeedFactor"] = 1.394799054,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 260,
["estimatedSilver"] = 380,
["estimatedScore"] = 79000,
["end"] = 0,
},
["173"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.24,
["streamSpeedMax"] = 4.54,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.98,
["enemyMaxDistance"] = 4.98,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.55,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 4000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 70,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 5,
["colourDelay"] = 10,
["brawlerCount"] = 5,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 41.3,
["brawlerSpeedFactor"] = 1.391509434,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 330,
["estimatedSilver"] = 475,
["estimatedScore"] = 100000,
["end"] = 0,
},
["174"] = {
["gameMode"] = "BombRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.25,
["streamSpeedMax"] = 4.55,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.97,
["enemyMaxDistance"] = 4.97,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.55,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 102,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 153,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_BombRound",
["TotalCount"] = 100,
["normalCount"] = 100,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 5,
["brawlerCount"] = 0,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 58,
["brawlerSpeedFactor"] = 1.388235294,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 300,
["estimatedSilver"] = 500,
["estimatedScore"] = 100000,
["end"] = 0,
},
["175"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.26,
["streamSpeedMax"] = 4.56,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.96,
["enemyMaxDistance"] = 4.96,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 2.55,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 76,
["normalCount"] = 60,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 8,
["colourDelay"] = 0,
["brawlerCount"] = 6,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 2,
["timeLimit"] = 43.8,
["brawlerSpeedFactor"] = 1.384976526,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 450,
["estimatedSilver"] = 630,
["estimatedScore"] = 174000,
["end"] = 0,
},
["176"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.27,
["streamSpeedMax"] = 4.57,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.95,
["enemyMaxDistance"] = 4.95,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 3.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 81,
["normalCount"] = 70,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 8,
["colourDelay"] = 5,
["brawlerCount"] = 3,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 47.5,
["brawlerSpeedFactor"] = 1.381733021,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 350,
["estimatedSilver"] = 505,
["estimatedScore"] = 109000,
["end"] = 0,
},
["177"] = {
["gameMode"] = "SmashRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.28,
["streamSpeedMax"] = 4.58,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.94,
["enemyMaxDistance"] = 4.94,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 3.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 3000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_SmashRound",
["TotalCount"] = 29,
["normalCount"] = 22,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 5,
["colourDelay"] = 5,
["brawlerCount"] = 2,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 1,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 17.16,
["brawlerSpeedFactor"] = 1.378504673,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 156,
["estimatedSilver"] = 210,
["estimatedScore"] = 47000,
["end"] = 0,
},
["178"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.29,
["streamSpeedMax"] = 4.59,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.93,
["enemyMaxDistance"] = 4.93,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 3.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 88,
["normalCount"] = 70,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 13,
["colourDelay"] = 5,
["brawlerCount"] = 5,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 51.9,
["brawlerSpeedFactor"] = 1.375291375,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 440,
["estimatedSilver"] = 605,
["estimatedScore"] = 134000,
["end"] = 0,
},
["179"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.3,
["streamSpeedMax"] = 4.6,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.92,
["enemyMaxDistance"] = 4.92,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 3.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 92,
["normalCount"] = 70,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 16,
["colourDelay"] = 5,
["brawlerCount"] = 6,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 54.4,
["brawlerSpeedFactor"] = 1.372093023,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 490,
["estimatedSilver"] = 660,
["estimatedScore"] = 148000,
["end"] = 0,
},
["180"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 2,
["streamSpeedMin"] = 4.31,
["streamSpeedMax"] = 4.61,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.91,
["enemyMaxDistance"] = 4.91,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 110,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 10,
["damageFactor"] = 3.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Item",
["gradeRewardValue1"] = 1074,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 110,
["normalCount"] = 70,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 39,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 30,
["bossCount"] = 1,
["timeLimit"] = 64,
["brawlerSpeedFactor"] = 1.368909513,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 635,
["estimatedSilver"] = 790,
["estimatedScore"] = 217000,
["end"] = 0,
},
["181"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.32,
["streamSpeedMax"] = 4.62,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.9,
["enemyMaxDistance"] = 4.9,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 5000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 93,
["normalCount"] = 80,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 8,
["colourDelay"] = 20,
["brawlerCount"] = 3,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 55,
["brawlerSpeedFactor"] = 1.365740741,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 380,
["estimatedSilver"] = 555,
["estimatedScore"] = 119000,
["end"] = 0,
},
["182"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.33,
["streamSpeedMax"] = 4.63,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.89,
["enemyMaxDistance"] = 4.89,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 96,
["normalCount"] = 80,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 10,
["colourDelay"] = 15,
["brawlerCount"] = 4,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 56.36,
["brawlerSpeedFactor"] = 1.362586605,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 420,
["estimatedSilver"] = 600,
["estimatedScore"] = 130000,
["end"] = 0,
},
["183"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.34,
["streamSpeedMax"] = 4.64,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.88,
["enemyMaxDistance"] = 4.88,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 100,
["normalCount"] = 80,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 13,
["colourDelay"] = 10,
["brawlerCount"] = 5,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 58.86,
["brawlerSpeedFactor"] = 1.359447005,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 470,
["estimatedSilver"] = 655,
["estimatedScore"] = 144000,
["end"] = 0,
},
["184"] = {
["gameMode"] = "DaggerRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.35,
["streamSpeedMax"] = 4.65,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.87,
["enemyMaxDistance"] = 4.87,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 132,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 198,
["gradeRewardType3"] = "Cash",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_DaggerRound",
["TotalCount"] = 120,
["normalCount"] = 120,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 5,
["brawlerCount"] = 0,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 69.59999999999999,
["brawlerSpeedFactor"] = 1.356321839,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 360,
["estimatedSilver"] = 600,
["estimatedScore"] = 120000,
["end"] = 0,
},
["185"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.36,
["streamSpeedMax"] = 4.66,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.86,
["enemyMaxDistance"] = 4.86,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 106,
["normalCount"] = 80,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 16,
["colourDelay"] = 0,
["brawlerCount"] = 6,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 2,
["timeLimit"] = 61.36,
["brawlerSpeedFactor"] = 1.353211009,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 590,
["estimatedSilver"] = 810,
["estimatedScore"] = 218000,
["end"] = 0,
},
["186"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.37,
["streamSpeedMax"] = 4.67,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.85,
["enemyMaxDistance"] = 4.85,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 116,
["normalCount"] = 100,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 10,
["colourDelay"] = 20,
["brawlerCount"] = 4,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 67.95999999999999,
["brawlerSpeedFactor"] = 1.350114416,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 480,
["estimatedSilver"] = 700,
["estimatedScore"] = 150000,
["end"] = 0,
},
["187"] = {
["gameMode"] = "DefenderRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.38,
["streamSpeedMax"] = 4.68,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.84,
["enemyMaxDistance"] = 4.84,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_DefenderRound",
["TotalCount"] = 140,
["normalCount"] = 140,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 15,
["brawlerCount"] = 0,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 81.2,
["brawlerSpeedFactor"] = 1.347031963,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 420,
["estimatedSilver"] = 700,
["estimatedScore"] = 140000,
["end"] = 0,
},
["188"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.39,
["streamSpeedMax"] = 4.69,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.83,
["enemyMaxDistance"] = 4.83,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 124,
["normalCount"] = 100,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 16,
["colourDelay"] = 10,
["brawlerCount"] = 6,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 72.95999999999999,
["brawlerSpeedFactor"] = 1.343963554,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 580,
["estimatedSilver"] = 810,
["estimatedScore"] = 178000,
["end"] = 0,
},
["189"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.4,
["streamSpeedMax"] = 4.7,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.82,
["enemyMaxDistance"] = 4.82,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 2000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 4000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 6000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 127,
["normalCount"] = 100,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 18,
["colourDelay"] = 5,
["brawlerCount"] = 7,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 74.86,
["brawlerSpeedFactor"] = 1.340909091,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 620,
["estimatedSilver"] = 855,
["estimatedScore"] = 189000,
["end"] = 0,
},
["190"] = {
["gameMode"] = "BossRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.41,
["streamSpeedMax"] = 4.71,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.81,
["enemyMaxDistance"] = 4.81,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 10,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 4,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 10,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 4,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 1.337868481,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 6,
["estimatedExp"] = 140,
["estimatedSilver"] = 200,
["estimatedScore"] = 120000,
["end"] = 0,
},
["191"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.42,
["streamSpeedMax"] = 4.72,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.8,
["enemyMaxDistance"] = 4.8,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 126,
["normalCount"] = 110,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 10,
["colourDelay"] = 20,
["brawlerCount"] = 4,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 74,
["brawlerSpeedFactor"] = 1.334841629,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 510,
["estimatedSilver"] = 750,
["estimatedScore"] = 160000,
["end"] = 0,
},
["192"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.43,
["streamSpeedMax"] = 4.73,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.79,
["enemyMaxDistance"] = 4.79,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 130,
["normalCount"] = 110,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 13,
["colourDelay"] = 15,
["brawlerCount"] = 5,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 76.26000000000001,
["brawlerSpeedFactor"] = 1.331828442,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 560,
["estimatedSilver"] = 805,
["estimatedScore"] = 174000,
["end"] = 0,
},
["193"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.44,
["streamSpeedMax"] = 4.74,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.78,
["enemyMaxDistance"] = 4.78,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 134,
["normalCount"] = 110,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 16,
["colourDelay"] = 10,
["brawlerCount"] = 6,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 78.76000000000001,
["brawlerSpeedFactor"] = 1.328828829,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 610,
["estimatedSilver"] = 860,
["estimatedScore"] = 188000,
["end"] = 0,
},
["194"] = {
["gameMode"] = "LightSwordRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.45,
["streamSpeedMax"] = 4.75,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.77,
["enemyMaxDistance"] = 4.77,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 162,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 243,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_LightSwordRound",
["TotalCount"] = 164,
["normalCount"] = 160,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 4,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 95.59999999999999,
["brawlerSpeedFactor"] = 1.325842697,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 560,
["estimatedSilver"] = 900,
["estimatedScore"] = 180000,
["end"] = 0,
},
["195"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.46,
["streamSpeedMax"] = 4.76,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.76,
["enemyMaxDistance"] = 4.76,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 3.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 147,
["normalCount"] = 120,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 18,
["colourDelay"] = 0,
["brawlerCount"] = 7,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 86.45999999999999,
["brawlerSpeedFactor"] = 1.322869955,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 680,
["estimatedSilver"] = 955,
["estimatedScore"] = 209000,
["end"] = 0,
},
["196"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.47,
["streamSpeedMax"] = 4.77,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.75,
["enemyMaxDistance"] = 4.75,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 140,
["normalCount"] = 120,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 13,
["colourDelay"] = 20,
["brawlerCount"] = 5,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 82.06,
["brawlerSpeedFactor"] = 1.319910515,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 590,
["estimatedSilver"] = 855,
["estimatedScore"] = 184000,
["end"] = 0,
},
["197"] = {
["gameMode"] = "RetroFilmRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.48,
["streamSpeedMax"] = 4.78,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.74,
["enemyMaxDistance"] = 4.74,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_RetroFilmRound",
["TotalCount"] = 144,
["normalCount"] = 120,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 16,
["colourDelay"] = 15,
["brawlerCount"] = 6,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 84.56,
["brawlerSpeedFactor"] = 1.316964286,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 640,
["estimatedSilver"] = 910,
["estimatedScore"] = 198000,
["end"] = 0,
},
["198"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.49,
["streamSpeedMax"] = 4.79,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.73,
["enemyMaxDistance"] = 4.73,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 7000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 147,
["normalCount"] = 120,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 18,
["colourDelay"] = 10,
["brawlerCount"] = 7,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 86.45999999999999,
["brawlerSpeedFactor"] = 1.31403118,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 680,
["estimatedSilver"] = 955,
["estimatedScore"] = 209000,
["end"] = 0,
},
["199"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.5,
["streamSpeedMax"] = 4.8,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.72,
["enemyMaxDistance"] = 4.72,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 5,
["gradeReward3Count"] = 10,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 151,
["normalCount"] = 120,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 21,
["colourDelay"] = 5,
["brawlerCount"] = 8,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 88.95999999999999,
["brawlerSpeedFactor"] = 1.311111111,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 730,
["estimatedSilver"] = 1010,
["estimatedScore"] = 223000,
["end"] = 0,
},
["200"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 2,
["streamSpeedMin"] = 4.51,
["streamSpeedMax"] = 4.81,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.71,
["enemyMaxDistance"] = 4.71,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 173,
["bossPattern"] = 4,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Cash",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 173,
["normalCount"] = 120,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 52,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 30,
["bossCount"] = 1,
["timeLimit"] = 100.8,
["brawlerSpeedFactor"] = 1.308203991,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 915,
["estimatedSilver"] = 1170,
["estimatedScore"] = 306000,
["end"] = 0,
},
["201"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.52,
["streamSpeedMax"] = 4.82,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.7,
["enemyMaxDistance"] = 4.7,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 150,
["normalCount"] = 130,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 13,
["colourDelay"] = 20,
["brawlerCount"] = 5,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 88,
["brawlerSpeedFactor"] = 1.305309735,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 620,
["estimatedSilver"] = 905,
["estimatedScore"] = 194000,
["end"] = 0,
},
["202"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.53,
["streamSpeedMax"] = 4.83,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.69,
["enemyMaxDistance"] = 4.69,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 5000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 154,
["normalCount"] = 130,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 16,
["colourDelay"] = 15,
["brawlerCount"] = 6,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 90.36,
["brawlerSpeedFactor"] = 1.302428256,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 670,
["estimatedSilver"] = 960,
["estimatedScore"] = 208000,
["end"] = 0,
},
["203"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.54,
["streamSpeedMax"] = 4.84,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.68,
["enemyMaxDistance"] = 4.68,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 157,
["normalCount"] = 130,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 18,
["colourDelay"] = 10,
["brawlerCount"] = 7,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 92.26000000000001,
["brawlerSpeedFactor"] = 1.299559471,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 710,
["estimatedSilver"] = 1005,
["estimatedScore"] = 219000,
["end"] = 0,
},
["204"] = {
["gameMode"] = "NunchakuRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.55,
["streamSpeedMax"] = 4.85,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.67,
["enemyMaxDistance"] = 4.67,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 192,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 288,
["gradeRewardType3"] = "Cash",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_NunchakuRound",
["TotalCount"] = 174,
["normalCount"] = 170,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 4,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 101.4,
["brawlerSpeedFactor"] = 1.296703297,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 590,
["estimatedSilver"] = 950,
["estimatedScore"] = 190000,
["end"] = 0,
},
["205"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.56,
["streamSpeedMax"] = 4.86,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.66,
["enemyMaxDistance"] = 4.66,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 161,
["normalCount"] = 130,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 21,
["colourDelay"] = 0,
["brawlerCount"] = 8,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 94.76000000000001,
["brawlerSpeedFactor"] = 1.293859649,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 760,
["estimatedSilver"] = 1060,
["estimatedScore"] = 233000,
["end"] = 0,
},
["206"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.57,
["streamSpeedMax"] = 4.87,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.65,
["enemyMaxDistance"] = 4.65,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 8000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 164,
["normalCount"] = 140,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 16,
["colourDelay"] = 20,
["brawlerCount"] = 6,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 4,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 96.16,
["brawlerSpeedFactor"] = 1.291028446,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 700,
["estimatedSilver"] = 1010,
["estimatedScore"] = 218000,
["end"] = 0,
},
["207"] = {
["gameMode"] = "ThunderStormRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.58,
["streamSpeedMax"] = 4.88,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.64,
["enemyMaxDistance"] = 4.64,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_ThunderStormRound",
["TotalCount"] = 167,
["normalCount"] = 140,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 18,
["colourDelay"] = 15,
["brawlerCount"] = 7,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 4,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 98.06,
["brawlerSpeedFactor"] = 1.288209607,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 740,
["estimatedSilver"] = 1055,
["estimatedScore"] = 229000,
["end"] = 0,
},
["208"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.59,
["streamSpeedMax"] = 4.89,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.63,
["enemyMaxDistance"] = 4.63,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 171,
["normalCount"] = 140,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 21,
["colourDelay"] = 10,
["brawlerCount"] = 8,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 4,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 100.56,
["brawlerSpeedFactor"] = 1.28540305,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 790,
["estimatedSilver"] = 1110,
["estimatedScore"] = 243000,
["end"] = 0,
},
["209"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.6,
["streamSpeedMax"] = 4.9,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.62,
["enemyMaxDistance"] = 4.62,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 174,
["normalCount"] = 140,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 23,
["colourDelay"] = 5,
["brawlerCount"] = 9,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 4,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 102.46,
["brawlerSpeedFactor"] = 1.282608696,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 830,
["estimatedSilver"] = 1155,
["estimatedScore"] = 254000,
["end"] = 0,
},
["210"] = {
["gameMode"] = "BossRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.61,
["streamSpeedMax"] = 4.91,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.61,
["enemyMaxDistance"] = 4.61,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 20,
["bossPattern"] = 4,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 4,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 20,
["brawlerCount"] = 0,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 4,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 1.279826464,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 140,
["estimatedSilver"] = 200,
["estimatedScore"] = 120000,
["end"] = 0,
},
["211"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.62,
["streamSpeedMax"] = 4.92,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.6,
["enemyMaxDistance"] = 4.6,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 174,
["normalCount"] = 150,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 16,
["colourDelay"] = 20,
["brawlerCount"] = 6,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 4,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 102,
["brawlerSpeedFactor"] = 1.277056277,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 730,
["estimatedSilver"] = 1060,
["estimatedScore"] = 228000,
["end"] = 0,
},
["212"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.63,
["streamSpeedMax"] = 4.93,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.59,
["enemyMaxDistance"] = 4.59,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 177,
["normalCount"] = 150,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 18,
["colourDelay"] = 15,
["brawlerCount"] = 7,
["brawlerDelay"] = 25,
["lastBrawlerCount"] = 0,
["angelCount"] = 4,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 103.86,
["brawlerSpeedFactor"] = 1.274298056,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 770,
["estimatedSilver"] = 1105,
["estimatedScore"] = 239000,
["end"] = 0,
},
["213"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.64,
["streamSpeedMax"] = 4.94,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.58,
["enemyMaxDistance"] = 4.58,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 181,
["normalCount"] = 150,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 21,
["colourDelay"] = 10,
["brawlerCount"] = 8,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 4,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 106.36,
["brawlerSpeedFactor"] = 1.271551724,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 820,
["estimatedSilver"] = 1160,
["estimatedScore"] = 253000,
["end"] = 0,
},
["214"] = {
["gameMode"] = "BombRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.65,
["streamSpeedMax"] = 4.95,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.57,
["enemyMaxDistance"] = 4.57,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 222,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 333,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_BombRound",
["TotalCount"] = 200,
["normalCount"] = 200,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 5,
["brawlerCount"] = 0,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 116,
["brawlerSpeedFactor"] = 1.268817204,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 600,
["estimatedSilver"] = 1000,
["estimatedScore"] = 200000,
["end"] = 0,
},
["215"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.66,
["streamSpeedMax"] = 4.96,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.56,
["enemyMaxDistance"] = 4.56,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 4.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 3000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 6000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 9000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 184,
["normalCount"] = 150,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 23,
["colourDelay"] = 0,
["brawlerCount"] = 9,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 4,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 108.26,
["brawlerSpeedFactor"] = 1.266094421,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 860,
["estimatedSilver"] = 1205,
["estimatedScore"] = 264000,
["end"] = 0,
},
["216"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.67,
["streamSpeedMax"] = 4.97,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.55,
["enemyMaxDistance"] = 4.55,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 5.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 7000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 187,
["normalCount"] = 160,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 18,
["colourDelay"] = 20,
["brawlerCount"] = 7,
["brawlerDelay"] = 30,
["lastBrawlerCount"] = 0,
["angelCount"] = 4,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 109.66,
["brawlerSpeedFactor"] = 1.263383298,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 800,
["estimatedSilver"] = 1155,
["estimatedScore"] = 249000,
["end"] = 0,
},
["217"] = {
["gameMode"] = "SmashRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.68,
["streamSpeedMax"] = 4.98,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.54,
["enemyMaxDistance"] = 4.54,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 5.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 7000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_SmashRound",
["TotalCount"] = 44,
["normalCount"] = 30,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 8,
["colourDelay"] = 5,
["brawlerCount"] = 4,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 2,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 26.16,
["brawlerSpeedFactor"] = 1.260683761,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 250,
["estimatedSilver"] = 330,
["estimatedScore"] = 74000,
["end"] = 0,
},
["218"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.69,
["streamSpeedMax"] = 4.99,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.53,
["enemyMaxDistance"] = 4.53,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 5.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 7000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 194,
["normalCount"] = 160,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 23,
["colourDelay"] = 10,
["brawlerCount"] = 9,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 4,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 114.06,
["brawlerSpeedFactor"] = 1.257995736,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 890,
["estimatedSilver"] = 1255,
["estimatedScore"] = 274000,
["end"] = 0,
},
["219"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.7,
["streamSpeedMax"] = 5,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.52,
["enemyMaxDistance"] = 4.52,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 5.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 7000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 198,
["normalCount"] = 160,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 26,
["colourDelay"] = 5,
["brawlerCount"] = 10,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 4,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 116.56,
["brawlerSpeedFactor"] = 1.255319149,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 940,
["estimatedSilver"] = 1310,
["estimatedScore"] = 288000,
["end"] = 0,
},
["220"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 2,
["streamSpeedMin"] = 4.71,
["streamSpeedMax"] = 5.01,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.51,
["enemyMaxDistance"] = 4.51,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 226,
["bossPattern"] = 4,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 5.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Cash",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 226,
["normalCount"] = 160,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 65,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 30,
["bossCount"] = 1,
["timeLimit"] = 131.8,
["brawlerSpeedFactor"] = 1.252653928,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 1165,
["estimatedSilver"] = 1500,
["estimatedScore"] = 385000,
["end"] = 0,
},
["221"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.72,
["streamSpeedMax"] = 5.02,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.5,
["enemyMaxDistance"] = 4.5,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 7000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 197,
["normalCount"] = 170,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 18,
["colourDelay"] = 20,
["brawlerCount"] = 7,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 116,
["brawlerSpeedFactor"] = 1.25,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 830,
["estimatedSilver"] = 1205,
["estimatedScore"] = 259000,
["end"] = 0,
},
["222"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.73,
["streamSpeedMax"] = 5.03,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.49,
["enemyMaxDistance"] = 4.49,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 7000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 201,
["normalCount"] = 170,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 21,
["colourDelay"] = 15,
["brawlerCount"] = 8,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 117.96,
["brawlerSpeedFactor"] = 1.247357294,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 880,
["estimatedSilver"] = 1260,
["estimatedScore"] = 273000,
["end"] = 0,
},
["223"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.74,
["streamSpeedMax"] = 5.04,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.48,
["enemyMaxDistance"] = 4.48,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 7000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 10000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 204,
["normalCount"] = 170,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 23,
["colourDelay"] = 10,
["brawlerCount"] = 9,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 119.86,
["brawlerSpeedFactor"] = 1.244725738,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 920,
["estimatedSilver"] = 1305,
["estimatedScore"] = 284000,
["end"] = 0,
},
["224"] = {
["gameMode"] = "DaggerRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.75,
["streamSpeedMax"] = 5.05,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.47,
["enemyMaxDistance"] = 4.47,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 252,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 378,
["gradeRewardType3"] = "Cash",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_DaggerRound",
["TotalCount"] = 220,
["normalCount"] = 220,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 5,
["brawlerCount"] = 0,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 127.6,
["brawlerSpeedFactor"] = 1.242105263,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 660,
["estimatedSilver"] = 1100,
["estimatedScore"] = 220000,
["end"] = 0,
},
["225"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.76,
["streamSpeedMax"] = 5.06,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.46,
["enemyMaxDistance"] = 4.46,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 7000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 198,
["normalCount"] = 160,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 26,
["colourDelay"] = 0,
["brawlerCount"] = 10,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 4,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 116.56,
["brawlerSpeedFactor"] = 1.155462185,
["brawlerSpeedFactor"] = 5.5,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 940,
["estimatedSilver"] = 1310,
["estimatedScore"] = 288000,
["end"] = 0,
},
["226"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.77,
["streamSpeedMax"] = 5.07,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.45,
["enemyMaxDistance"] = 4.45,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 7000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 201,
["normalCount"] = 170,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 21,
["colourDelay"] = 20,
["brawlerCount"] = 8,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 117.96,
["brawlerSpeedFactor"] = 1.236897275,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 880,
["estimatedSilver"] = 1260,
["estimatedScore"] = 273000,
["end"] = 0,
},
["227"] = {
["gameMode"] = "DefenderRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.78,
["streamSpeedMax"] = 5.08,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.44,
["enemyMaxDistance"] = 4.44,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 7000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_DefenderRound",
["TotalCount"] = 240,
["normalCount"] = 240,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 15,
["brawlerCount"] = 0,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 139.2,
["brawlerSpeedFactor"] = 1.234309623,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 720,
["estimatedSilver"] = 1200,
["estimatedScore"] = 240000,
["end"] = 0,
},
["228"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.79,
["streamSpeedMax"] = 5.09,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.43,
["enemyMaxDistance"] = 4.43,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 8000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 208,
["normalCount"] = 170,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 26,
["colourDelay"] = 10,
["brawlerCount"] = 10,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 122.36,
["brawlerSpeedFactor"] = 1.231732777,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 970,
["estimatedSilver"] = 1360,
["estimatedScore"] = 298000,
["end"] = 0,
},
["229"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.8,
["streamSpeedMax"] = 5.1,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.42,
["enemyMaxDistance"] = 4.42,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 8000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 212,
["normalCount"] = 170,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 29,
["colourDelay"] = 5,
["brawlerCount"] = 11,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 124.86,
["brawlerSpeedFactor"] = 1.229166667,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 1020,
["estimatedSilver"] = 1415,
["estimatedScore"] = 312000,
["end"] = 0,
},
["230"] = {
["gameMode"] = "BossRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.81,
["streamSpeedMax"] = 5.11,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.41,
["enemyMaxDistance"] = 4.41,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 10,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 3,
["brawlerMaxLifeCount"] = 15,
["damageFactor"] = 5.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 6,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 6,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 1.226611227,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 5,
["estimatedExp"] = 210,
["estimatedSilver"] = 300,
["estimatedScore"] = 180000,
["end"] = 0,
},
["231"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.82,
["streamSpeedMax"] = 5.12,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.4,
["enemyMaxDistance"] = 4.4,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 8000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 11000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 211,
["normalCount"] = 180,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 21,
["colourDelay"] = 20,
["brawlerCount"] = 8,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 124,
["brawlerSpeedFactor"] = 1.22406639,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 910,
["estimatedSilver"] = 1310,
["estimatedScore"] = 283000,
["end"] = 0,
},
["232"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.83,
["streamSpeedMax"] = 5.13,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.39,
["enemyMaxDistance"] = 4.39,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 8000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 12000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 214,
["normalCount"] = 180,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 23,
["colourDelay"] = 15,
["brawlerCount"] = 9,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 125.66,
["brawlerSpeedFactor"] = 1.221532091,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 950,
["estimatedSilver"] = 1355,
["estimatedScore"] = 294000,
["end"] = 0,
},
["233"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.84,
["streamSpeedMax"] = 5.14,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.38,
["enemyMaxDistance"] = 4.38,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 8000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 12000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 218,
["normalCount"] = 180,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 26,
["colourDelay"] = 10,
["brawlerCount"] = 10,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 128.16,
["brawlerSpeedFactor"] = 1.219008264,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1000,
["estimatedSilver"] = 1410,
["estimatedScore"] = 308000,
["end"] = 0,
},
["234"] = {
["gameMode"] = "LightSwordRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.85,
["streamSpeedMax"] = 5.15,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.37,
["enemyMaxDistance"] = 4.37,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 282,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 423,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_LightSwordRound",
["TotalCount"] = 234,
["normalCount"] = 230,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 4,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 136.2,
["brawlerSpeedFactor"] = 1.216494845,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 770,
["estimatedSilver"] = 1250,
["estimatedScore"] = 250000,
["end"] = 0,
},
["235"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.86,
["streamSpeedMax"] = 5.16,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.36,
["enemyMaxDistance"] = 4.36,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 5.7,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 8000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 12000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 222,
["normalCount"] = 180,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 29,
["colourDelay"] = 0,
["brawlerCount"] = 11,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 130.66,
["brawlerSpeedFactor"] = 1.21399177,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1050,
["estimatedSilver"] = 1465,
["estimatedScore"] = 322000,
["end"] = 0,
},
["236"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.87,
["streamSpeedMax"] = 5.17,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.35,
["enemyMaxDistance"] = 4.35,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 8000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 12000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 224,
["normalCount"] = 190,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 23,
["colourDelay"] = 20,
["brawlerCount"] = 9,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 131.46,
["brawlerSpeedFactor"] = 1.211498973,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 980,
["estimatedSilver"] = 1405,
["estimatedScore"] = 304000,
["end"] = 0,
},
["237"] = {
["gameMode"] = "RetroFilmRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.88,
["streamSpeedMax"] = 5.18,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.34,
["enemyMaxDistance"] = 4.34,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 8000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 12000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_RetroFilmRound",
["TotalCount"] = 228,
["normalCount"] = 190,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 26,
["colourDelay"] = 15,
["brawlerCount"] = 10,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 133.96,
["brawlerSpeedFactor"] = 1.209016393,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1030,
["estimatedSilver"] = 1460,
["estimatedScore"] = 318000,
["end"] = 0,
},
["238"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.89,
["streamSpeedMax"] = 5.19,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.33,
["enemyMaxDistance"] = 4.33,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 8000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 12000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 232,
["normalCount"] = 190,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 29,
["colourDelay"] = 10,
["brawlerCount"] = 11,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 136.46,
["brawlerSpeedFactor"] = 1.206543967,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1080,
["estimatedSilver"] = 1515,
["estimatedScore"] = 332000,
["end"] = 0,
},
["239"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.9,
["streamSpeedMax"] = 5.2,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.32,
["enemyMaxDistance"] = 4.32,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 4000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 8000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 12000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 10,
["gradeReward3Count"] = 20,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 235,
["normalCount"] = 190,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 31,
["colourDelay"] = 5,
["brawlerCount"] = 12,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 138.36,
["brawlerSpeedFactor"] = 1.204081633,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1120,
["estimatedSilver"] = 1560,
["estimatedScore"] = 343000,
["end"] = 0,
},
["240"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 2,
["streamSpeedMin"] = 4.91,
["streamSpeedMax"] = 5.21,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.31,
["enemyMaxDistance"] = 4.31,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 259,
["bossPattern"] = 2,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Cash",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 259,
["normalCount"] = 180,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 78,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 30,
["bossCount"] = 1,
["timeLimit"] = 151.2,
["brawlerSpeedFactor"] = 1.201629328,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1355,
["estimatedSilver"] = 1730,
["estimatedScore"] = 444000,
["end"] = 0,
},
["241"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.92,
["streamSpeedMax"] = 5.22,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.3,
["enemyMaxDistance"] = 4.3,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 9000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 13000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 234,
["normalCount"] = 200,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 23,
["colourDelay"] = 20,
["brawlerCount"] = 9,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 138,
["brawlerSpeedFactor"] = 1.199186992,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1010,
["estimatedSilver"] = 1455,
["estimatedScore"] = 314000,
["end"] = 0,
},
["242"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.93,
["streamSpeedMax"] = 5.23,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.29,
["enemyMaxDistance"] = 4.29,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 9000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 13000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 238,
["normalCount"] = 200,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 26,
["colourDelay"] = 15,
["brawlerCount"] = 10,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 139.76,
["brawlerSpeedFactor"] = 1.196754564,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1060,
["estimatedSilver"] = 1510,
["estimatedScore"] = 328000,
["end"] = 0,
},
["243"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.94,
["streamSpeedMax"] = 5.24,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.28,
["enemyMaxDistance"] = 4.28,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 9000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 13000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 242,
["normalCount"] = 200,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 29,
["colourDelay"] = 10,
["brawlerCount"] = 11,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 142.26,
["brawlerSpeedFactor"] = 1.194331984,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1110,
["estimatedSilver"] = 1565,
["estimatedScore"] = 342000,
["end"] = 0,
},
["244"] = {
["gameMode"] = "NunchakuRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.95,
["streamSpeedMax"] = 5.25,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.27,
["enemyMaxDistance"] = 4.27,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 312,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 468,
["gradeRewardType3"] = "Cash",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_NunchakuRound",
["TotalCount"] = 264,
["normalCount"] = 260,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 4,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 153.6,
["brawlerSpeedFactor"] = 1.191919192,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 860,
["estimatedSilver"] = 1400,
["estimatedScore"] = 280000,
["end"] = 0,
},
["245"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.96,
["streamSpeedMax"] = 5.26,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.26,
["enemyMaxDistance"] = 4.26,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.3,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 9000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 13000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 245,
["normalCount"] = 200,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 31,
["colourDelay"] = 0,
["brawlerCount"] = 12,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 144.16,
["brawlerSpeedFactor"] = 1.189516129,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1150,
["estimatedSilver"] = 1610,
["estimatedScore"] = 353000,
["end"] = 0,
},
["246"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.97,
["streamSpeedMax"] = 5.27,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.25,
["enemyMaxDistance"] = 4.25,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 9000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 13000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 248,
["normalCount"] = 210,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 26,
["colourDelay"] = 20,
["brawlerCount"] = 10,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 145.56,
["brawlerSpeedFactor"] = 1.187122736,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1090,
["estimatedSilver"] = 1560,
["estimatedScore"] = 338000,
["end"] = 0,
},
["247"] = {
["gameMode"] = "ThunderStormRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.98,
["streamSpeedMax"] = 5.28,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.24,
["enemyMaxDistance"] = 4.24,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 9000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 13000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_ThunderStormRound",
["TotalCount"] = 252,
["normalCount"] = 210,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 29,
["colourDelay"] = 15,
["brawlerCount"] = 11,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 148.06,
["brawlerSpeedFactor"] = 1.184738956,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1140,
["estimatedSilver"] = 1615,
["estimatedScore"] = 352000,
["end"] = 0,
},
["248"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 4.99,
["streamSpeedMax"] = 5.29,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.23,
["enemyMaxDistance"] = 4.23,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 9000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 13000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 255,
["normalCount"] = 210,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 31,
["colourDelay"] = 10,
["brawlerCount"] = 12,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 149.96,
["brawlerSpeedFactor"] = 1.182364729,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1180,
["estimatedSilver"] = 1660,
["estimatedScore"] = 363000,
["end"] = 0,
},
["249"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5,
["streamSpeedMax"] = 5.3,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.22,
["enemyMaxDistance"] = 4.22,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 9000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 14000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 259,
["normalCount"] = 210,
["healerCount"] = 2,
["healerDelay"] = 0,
["colourCount"] = 34,
["colourDelay"] = 5,
["brawlerCount"] = 13,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 5,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 152.46,
["brawlerSpeedFactor"] = 1.18,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1230,
["estimatedSilver"] = 1715,
["estimatedScore"] = 377000,
["end"] = 0,
},
["250"] = {
["gameMode"] = "BossRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.01,
["streamSpeedMax"] = 5.31,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.21,
["enemyMaxDistance"] = 4.21,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 20,
["bossPattern"] = 4,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 6,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 0,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 6,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 1.177644711,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 210,
["estimatedSilver"] = 300,
["estimatedScore"] = 180000,
["end"] = 0,
},
["251"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.02,
["streamSpeedMax"] = 5.32,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.2,
["enemyMaxDistance"] = 4.2,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 9000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 14000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 259,
["normalCount"] = 220,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 26,
["colourDelay"] = 20,
["brawlerCount"] = 10,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 6,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 152,
["brawlerSpeedFactor"] = 1.175298805,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1120,
["estimatedSilver"] = 1610,
["estimatedScore"] = 348000,
["end"] = 0,
},
["252"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.03,
["streamSpeedMax"] = 5.33,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.19,
["enemyMaxDistance"] = 4.19,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 9000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 14000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 263,
["normalCount"] = 220,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 29,
["colourDelay"] = 15,
["brawlerCount"] = 11,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 6,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 154.44,
["brawlerSpeedFactor"] = 1.172962227,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1170,
["estimatedSilver"] = 1665,
["estimatedScore"] = 362000,
["end"] = 0,
},
["253"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.04,
["streamSpeedMax"] = 5.34,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.18,
["enemyMaxDistance"] = 4.18,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 10000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 14000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 266,
["normalCount"] = 220,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 31,
["colourDelay"] = 10,
["brawlerCount"] = 12,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 6,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 156.34,
["brawlerSpeedFactor"] = 1.170634921,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1210,
["estimatedSilver"] = 1710,
["estimatedScore"] = 373000,
["end"] = 0,
},
["254"] = {
["gameMode"] = "BombRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.05,
["streamSpeedMax"] = 5.35,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.17,
["enemyMaxDistance"] = 4.17,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 342,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 513,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BombRound",
["TotalCount"] = 274,
["normalCount"] = 274,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 5,
["brawlerCount"] = 0,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 158.92,
["brawlerSpeedFactor"] = 1.168316832,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 822,
["estimatedSilver"] = 1370,
["estimatedScore"] = 274000,
["end"] = 0,
},
["255"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.06,
["streamSpeedMax"] = 5.36,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.16,
["enemyMaxDistance"] = 4.16,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 6.75,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 10000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 14000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 270,
["normalCount"] = 220,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 34,
["colourDelay"] = 0,
["brawlerCount"] = 13,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 6,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 158.84,
["brawlerSpeedFactor"] = 1.166007905,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1260,
["estimatedSilver"] = 1765,
["estimatedScore"] = 387000,
["end"] = 0,
},
["256"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.07,
["streamSpeedMax"] = 5.37,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.15,
["enemyMaxDistance"] = 4.15,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 7.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 10000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 14000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 273,
["normalCount"] = 230,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 29,
["colourDelay"] = 20,
["brawlerCount"] = 11,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 6,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 160.24,
["brawlerSpeedFactor"] = 1.163708087,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1200,
["estimatedSilver"] = 1715,
["estimatedScore"] = 372000,
["end"] = 0,
},
["257"] = {
["gameMode"] = "SmashRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.08,
["streamSpeedMax"] = 5.38,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.14,
["enemyMaxDistance"] = 4.14,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 7.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 10000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 15000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_SmashRound",
["TotalCount"] = 58,
["normalCount"] = 40,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 5,
["colourDelay"] = 5,
["brawlerCount"] = 10,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 3,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 34.94,
["brawlerSpeedFactor"] = 1.161417323,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 370,
["estimatedSilver"] = 500,
["estimatedScore"] = 105000,
["end"] = 0,
},
["258"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.09,
["streamSpeedMax"] = 5.39,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.13,
["enemyMaxDistance"] = 4.13,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 7.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 10000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 15000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 280,
["normalCount"] = 230,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 34,
["colourDelay"] = 10,
["brawlerCount"] = 13,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 6,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 164.64,
["brawlerSpeedFactor"] = 1.15913556,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1290,
["estimatedSilver"] = 1815,
["estimatedScore"] = 397000,
["end"] = 0,
},
["259"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.1,
["streamSpeedMax"] = 5.4,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.12,
["enemyMaxDistance"] = 4.12,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 7.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 10000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 15000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 283,
["normalCount"] = 230,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 36,
["colourDelay"] = 5,
["brawlerCount"] = 14,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 6,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 166.54,
["brawlerSpeedFactor"] = 1.156862745,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1330,
["estimatedSilver"] = 1860,
["estimatedScore"] = 408000,
["end"] = 0,
},
["260"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 2,
["streamSpeedMin"] = 5.11,
["streamSpeedMax"] = 5.41,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.11,
["enemyMaxDistance"] = 4.11,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 312,
["bossPattern"] = 2,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 20,
["damageFactor"] = 7.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Cash",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 312,
["normalCount"] = 220,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 91,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 30,
["bossCount"] = 1,
["timeLimit"] = 182.2,
["brawlerSpeedFactor"] = 1.154598826,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1605,
["estimatedSilver"] = 2060,
["estimatedScore"] = 523000,
["end"] = 0,
},
["261"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.12,
["streamSpeedMax"] = 5.42,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 7.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 10000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 15000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 283,
["normalCount"] = 240,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 29,
["colourDelay"] = 20,
["brawlerCount"] = 11,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 167,
["brawlerSpeedFactor"] = 1.15234375,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1230,
["estimatedSilver"] = 1765,
["estimatedScore"] = 382000,
["end"] = 0,
},
["262"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.13,
["streamSpeedMax"] = 5.43,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 7.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 10000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 15000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 286,
["normalCount"] = 240,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 31,
["colourDelay"] = 15,
["brawlerCount"] = 12,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 167.94,
["brawlerSpeedFactor"] = 1.150097466,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1270,
["estimatedSilver"] = 1810,
["estimatedScore"] = 393000,
["end"] = 0,
},
["263"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.14,
["streamSpeedMax"] = 5.44,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 1,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 7.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 10000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 15000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 290,
["normalCount"] = 240,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 34,
["colourDelay"] = 10,
["brawlerCount"] = 13,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 170.44,
["brawlerSpeedFactor"] = 1.147859922,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1320,
["estimatedSilver"] = 1865,
["estimatedScore"] = 407000,
["end"] = 0,
},
["264"] = {
["gameMode"] = "DaggerRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.15,
["streamSpeedMax"] = 5.45,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 7.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 372,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 558,
["gradeRewardType3"] = "Cash",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_DaggerRound",
["TotalCount"] = 300,
["normalCount"] = 300,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 5,
["brawlerCount"] = 0,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 174,
["brawlerSpeedFactor"] = 1.145631068,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 900,
["estimatedSilver"] = 1500,
["estimatedScore"] = 300000,
["end"] = 0,
},
["265"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.16,
["streamSpeedMax"] = 5.46,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 7.2,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 5000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 10000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 15000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 297,
["normalCount"] = 240,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 39,
["colourDelay"] = 0,
["brawlerCount"] = 15,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 174.84,
["brawlerSpeedFactor"] = 1.143410853,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1410,
["estimatedSilver"] = 1965,
["estimatedScore"] = 432000,
["end"] = 0,
},
["266"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.17,
["streamSpeedMax"] = 5.47,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 7.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 6000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 11000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 16000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 296,
["normalCount"] = 250,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 31,
["colourDelay"] = 20,
["brawlerCount"] = 12,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 173.74,
["brawlerSpeedFactor"] = 1.141199226,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1300,
["estimatedSilver"] = 1860,
["estimatedScore"] = 403000,
["end"] = 0,
},
["267"] = {
["gameMode"] = "DefenderRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.18,
["streamSpeedMax"] = 5.48,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 7.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 6000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 11000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 16000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_DefenderRound",
["TotalCount"] = 310,
["normalCount"] = 310,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 15,
["brawlerCount"] = 0,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 179.8,
["brawlerSpeedFactor"] = 1.138996139,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 930,
["estimatedSilver"] = 1550,
["estimatedScore"] = 310000,
["end"] = 0,
},
["268"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.19,
["streamSpeedMax"] = 5.49,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 7.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 6000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 11000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 16000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 303,
["normalCount"] = 250,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 36,
["colourDelay"] = 10,
["brawlerCount"] = 14,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 178.14,
["brawlerSpeedFactor"] = 1.136801541,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1390,
["estimatedSilver"] = 1960,
["estimatedScore"] = 428000,
["end"] = 0,
},
["269"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.2,
["streamSpeedMax"] = 5.5,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 7.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 6000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 11000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 16000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 307,
["normalCount"] = 250,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 39,
["colourDelay"] = 5,
["brawlerCount"] = 15,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 180.64,
["brawlerSpeedFactor"] = 1.134615385,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 1440,
["estimatedSilver"] = 2015,
["estimatedScore"] = 442000,
["end"] = 0,
},
["270"] = {
["gameMode"] = "BossRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.21,
["streamSpeedMax"] = 5.51,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 15,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 7.65,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Ticket",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Ticket",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 1,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BossRound",
["TotalCount"] = 8,
["normalCount"] = 0,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 0,
["colourDelay"] = 3,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 8,
["timeLimit"] = 0,
["brawlerSpeedFactor"] = 1.13243762,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 4,
["estimatedExp"] = 280,
["estimatedSilver"] = 400,
["estimatedScore"] = 240000,
["end"] = 0,
},
["271"] = {
["gameMode"] = "SpeedRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.22,
["streamSpeedMax"] = 5.52,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 6,
["ballRate"] = 4,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 8.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 6000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 11000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 16000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_SpeedRound",
["TotalCount"] = 306,
["normalCount"] = 260,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 31,
["colourDelay"] = 20,
["brawlerCount"] = 12,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 180,
["brawlerSpeedFactor"] = 1.130268199,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 1330,
["estimatedSilver"] = 1910,
["estimatedScore"] = 413000,
["end"] = 0,
},
["272"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.23,
["streamSpeedMax"] = 5.53,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 8.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 6000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 11000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 16000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 310,
["normalCount"] = 260,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 34,
["colourDelay"] = 15,
["brawlerCount"] = 13,
["brawlerDelay"] = 15,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 182.04,
["brawlerSpeedFactor"] = 1.128107075,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 1380,
["estimatedSilver"] = 1965,
["estimatedScore"] = 427000,
["end"] = 0,
},
["273"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.24,
["streamSpeedMax"] = 5.54,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 8.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 6000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 11000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 16000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 313,
["normalCount"] = 260,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 36,
["colourDelay"] = 10,
["brawlerCount"] = 14,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 183.94,
["brawlerSpeedFactor"] = 1.125954198,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 1420,
["estimatedSilver"] = 2010,
["estimatedScore"] = 438000,
["end"] = 0,
},
["274"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 2,
["streamSpeedMin"] = 5.25,
["streamSpeedMax"] = 5.55,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 345,
["bossPattern"] = 2,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 8.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "LotteryPoint",
["gradeRewardValue1"] = 402,
["gradeRewardType2"] = "LotteryPoint",
["gradeRewardValue2"] = 603,
["gradeRewardType3"] = "Ticket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 345,
["normalCount"] = 240,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 104,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 30,
["bossCount"] = 1,
["timeLimit"] = 201.6,
["brawlerSpeedFactor"] = 1.123809524,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 1795,
["estimatedSilver"] = 2290,
["estimatedScore"] = 582000,
["end"] = 0,
},
["275"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.26,
["streamSpeedMax"] = 5.56,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 8.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 6000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 11000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 17000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 321,
["normalCount"] = 260,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 42,
["colourDelay"] = 0,
["brawlerCount"] = 16,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 188.94,
["brawlerSpeedFactor"] = 1.121673004,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 1520,
["estimatedSilver"] = 2120,
["estimatedScore"] = 466000,
["end"] = 0,
},
["276"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.27,
["streamSpeedMax"] = 5.57,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 6,
["throwWeaponRate"] = 4,
["ballRate"] = 1,
["specialWeaponRate"] = 1,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 8.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 6000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 11000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 17000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 320,
["normalCount"] = 270,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 34,
["colourDelay"] = 20,
["brawlerCount"] = 13,
["brawlerDelay"] = 20,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 187.84,
["brawlerSpeedFactor"] = 1.119544592,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 1410,
["estimatedSilver"] = 2015,
["estimatedScore"] = 437000,
["end"] = 0,
},
["277"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 2,
["streamSpeedMin"] = 5.28,
["streamSpeedMax"] = 5.58,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 388,
["bossPattern"] = 3,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 8.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 6000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 11000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 17000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 388,
["normalCount"] = 270,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 117,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 30,
["bossCount"] = 1,
["timeLimit"] = 226.8,
["brawlerSpeedFactor"] = 1.117424242,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 2015,
["estimatedSilver"] = 2570,
["estimatedScore"] = 651000,
["end"] = 0,
},
["278"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.29,
["streamSpeedMax"] = 5.59,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 6,
["specialWeaponRate"] = 4,
["throwerRate"] = 1,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 8.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 6000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 12000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 17000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 327,
["normalCount"] = 270,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 39,
["colourDelay"] = 10,
["brawlerCount"] = 15,
["brawlerDelay"] = 10,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 192.24,
["brawlerSpeedFactor"] = 1.115311909,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 1500,
["estimatedSilver"] = 2115,
["estimatedScore"] = 462000,
["end"] = 0,
},
["279"] = {
["gameMode"] = "TrapRound",
["stamina"] = 2,
["streamSpeedMin"] = 5.3,
["streamSpeedMax"] = 5.6,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 1,
["throwWeaponRate"] = 1,
["ballRate"] = 1,
["specialWeaponRate"] = 6,
["throwerRate"] = 4,
["bossLife"] = 0,
["bossPattern"] = 0,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 8.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Gold",
["gradeRewardValue1"] = 6000,
["gradeRewardType2"] = "Gold",
["gradeRewardValue2"] = 12000,
["gradeRewardType3"] = "Gold",
["gradeRewardValue3"] = 17000,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 15,
["gradeReward3Count"] = 30,
["desc"] = "~stage_desc_TrapRound",
["TotalCount"] = 331,
["normalCount"] = 270,
["healerCount"] = 3,
["healerDelay"] = 0,
["colourCount"] = 42,
["colourDelay"] = 5,
["brawlerCount"] = 16,
["brawlerDelay"] = 5,
["lastBrawlerCount"] = 0,
["angelCount"] = 7,
["angelDelay"] = 10,
["specterRate"] = 30,
["bossCount"] = 0,
["timeLimit"] = 194.74,
["brawlerSpeedFactor"] = 1.113207547,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 1550,
["estimatedSilver"] = 2170,
["estimatedScore"] = 476000,
["end"] = 0,
},
["280"] = {
["gameMode"] = "BossRound_Raid",
["stamina"] = 2,
["streamSpeedMin"] = 5.31,
["streamSpeedMax"] = 5.61,
["spawnMinDelay"] = 0.1,
["spawnMaxDelay"] = 0.8,
["enemyMinDistance"] = 1.1,
["enemyMaxDistance"] = 4.1,
["normalWeaponRate"] = 0,
["throwWeaponRate"] = 0,
["ballRate"] = 0,
["specialWeaponRate"] = 0,
["throwerRate"] = 0,
["bossLife"] = 431,
["bossPattern"] = 4,
["colourMaxLifeCount"] = 4,
["brawlerMaxLifeCount"] = 25,
["damageFactor"] = 8.25,
["rewardType1"] = "Gold",
["rewardValue1"] = 0,
["rewardType2"] = "EXP",
["rewardValue2"] = 0,
["gradeRewardType1"] = "Cash",
["gradeRewardValue1"] = 1,
["gradeRewardType2"] = "Cash",
["gradeRewardValue2"] = 2,
["gradeRewardType3"] = "HighTicket",
["gradeRewardValue3"] = 2,
["gradeReward1Count"] = 1,
["gradeReward2Count"] = 20,
["gradeReward3Count"] = 40,
["desc"] = "~stage_desc_BossRound_Raid",
["TotalCount"] = 431,
["normalCount"] = 300,
["healerCount"] = 0,
["healerDelay"] = 0,
["colourCount"] = 130,
["colourDelay"] = 1,
["brawlerCount"] = 0,
["brawlerDelay"] = 0,
["lastBrawlerCount"] = 0,
["angelCount"] = 0,
["angelDelay"] = 0,
["specterRate"] = 30,
["bossCount"] = 1,
["timeLimit"] = 252,
["brawlerSpeedFactor"] = 1.111111111,
["brawlerSpeedFactor"] = 5.9,
["isHard"] = 1,
["unlockAchievementId"] = 0,
["firePillarTimer"] = 3,
["estimatedExp"] = 2235,
["estimatedSilver"] = 2850,
["estimatedScore"] = 720000,
["end"] = 0,
},
}
return define_stage
| mit |
teasquat/bestfriend | kit/init.lua | 1 | 1817 | love.graphics.setDefaultFilter("nearest", "nearest")
shack = require("kit/lib/shack")
state = require("kit/lib/state")
konami = require("kit/lib/konami")
light = require("kit/lib/light")
bump = require("kit/lib/bump")
cam_m = require("kit/lib/camera")
uare = require("kit/lib/uare")
camera = cam_m.make(0, 0, 1, 1, 0)
world = bump.newWorld()
light_world = light({
ambient = {
55,
55,
55,
},
refractionStrength = 32.0,
reflectionVisibility = 0.75,
})
function love.run()
local dt = 0
local update_timer = 0
local target_delta = 1 / 60
if love.math then
love.math.setRandomSeed(os.time())
end
if love.load then
love.load()
end
if love.timer then
love.timer.step()
end
state:switch("src/menu")
while true do
update_timer = update_timer + dt
if love.event then
love.event.pump()
for name, a, b, c, d, e, f in love.event.poll() do
if name == "quit" then
if not love.quit or not love.quit() then
return a
end
end
love.handlers[name](a, b, c, d, e, f)
end
end
if love.timer then
love.timer.step()
dt = love.timer.getDelta()
end
if update_timer > target_delta then
shack:update(dt)
state:update(dt)
light_world:update(dt)
end
if love.graphics and love.graphics.isActive() then
love.graphics.clear(love.graphics.getBackgroundColor())
love.graphics.setColor(255, 255, 255)
love.graphics.origin()
camera:set()
shack:apply()
--light_world:draw(function()
love.graphics.setColor(255, 255, 255)
state:draw()
--end)
camera:unset()
love.graphics.present()
end
if love.timer then
love.timer.sleep(0.001)
end
end
end
| mit |
movb/Algorithm-Implementations | Knapsack/Lua/Yonaba/knapsack_test.lua | 26 | 1841 | -- Tests for knapsack.lua
local knapsack = require 'knapsack'
local total, pass = 0, 0
local function dec(str, len)
return #str < len
and str .. (('.'):rep(len-#str))
or str:sub(1,len)
end
local function run(message, f)
total = total + 1
local ok, err = pcall(f)
if ok then pass = pass + 1 end
local status = ok and 'PASSED' or 'FAILED'
print(('%02d. %68s: %s'):format(total, dec(message,68), status))
end
-- Fuzzy equality test
local function fuzzyEq(a,b) return math.abs(a-b) < 1e-2 end
run('Testing fractional knapsack', function()
local items = {
{name = 'Apple', w = 3, b = 5},
{name = 'Orange', w = 4, b = 5},
{name = 'Salt', w = 2, b = 3},
{name = 'Pepper', w = 1, b = 2},
{name = 'Rice', w = 5, b = 6},
}
local capacity = 10
local sack, profit = knapsack.fractional(items, capacity)
assert(#sack == 3)
local s1, s2, s3 = sack[1], sack[2], sack[3]
assert(s1.name == 'Rice' and s1.p == 1 and s1.w == 5 and s1.b == 6)
assert(s2.name == 'Orange' and s2.p == 1 and s2.w == 4 and s2.b == 5)
assert(s3.name == 'Apple' and fuzzyEq(s3.p,0.33) and s3.w == 1 and fuzzyEq(s3.b,1.67))
print(profit)
assert(fuzzyEq(profit, 12.67))
end)
run('Testing integer knapsack', function()
local items = {
{name = 'Apple', w = 5, b = 10},
{name = 'Orange', w = 4, b = 40},
{name = 'Salt', w = 6, b = 30},
{name = 'Pepper', w = 3, b = 50},
}
local capacity= 10
local sack, profit = knapsack.integer(items, capacity)
assert(#sack == 2)
local s1, s2 = sack[1], sack[2]
assert(s1.name == 'Pepper' and s1.w == 3 and s1.b == 50)
assert(s2.name == 'Orange' and s2.w == 4 and s2.b == 40)
assert(profit == 90)
end)
print(('-'):rep(80))
print(('Total : %02d: Pass: %02d - Failed : %02d - Success: %.2f %%')
:format(total, pass, total-pass, (pass*100/total)))
| mit |
wbengine/SPMILM | tools/lstm/base.lua | 13 | 1965 | --
-- Copyright (c) 2014, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the Apache 2 license found in the
-- LICENSE file in the root directory of this source tree.
--
function g_disable_dropout(node)
if type(node) == "table" and node.__typename == nil then
for i = 1, #node do
node[i]:apply(g_disable_dropout)
end
return
end
if string.match(node.__typename, "Dropout") then
node.train = false
end
end
function g_enable_dropout(node)
if type(node) == "table" and node.__typename == nil then
for i = 1, #node do
node[i]:apply(g_enable_dropout)
end
return
end
if string.match(node.__typename, "Dropout") then
node.train = true
end
end
function g_cloneManyTimes(net, T)
local clones = {}
local params, gradParams = net:parameters()
local mem = torch.MemoryFile("w"):binary()
mem:writeObject(net)
for t = 1, T do
-- We need to use a new reader for each clone.
-- We don't want to use the pointers to already read objects.
local reader = torch.MemoryFile(mem:storage(), "r"):binary()
local clone = reader:readObject()
reader:close()
local cloneParams, cloneGradParams = clone:parameters()
for i = 1, #params do
cloneParams[i]:set(params[i])
cloneGradParams[i]:set(gradParams[i])
end
clones[t] = clone
collectgarbage()
end
mem:close()
return clones
end
function g_init_gpu(args)
local gpuidx = args
gpuidx = gpuidx[1] or 1
print(string.format("Using %s-th gpu", gpuidx))
cutorch.setDevice(gpuidx)
g_make_deterministic(1)
end
function g_make_deterministic(seed)
torch.manualSeed(seed)
cutorch.manualSeed(seed)
torch.zeros(1, 1):cuda():uniform()
end
function g_replace_table(to, from)
assert(#to == #from)
for i = 1, #to do
to[i]:copy(from[i])
end
end
function g_f3(f)
return string.format("%.3f", f)
end
function g_d(f)
return string.format("%d", torch.round(f))
end
| apache-2.0 |
EliHar/Pattern_recognition | torch1/extra/cudnn/test/test_groups.lua | 7 | 1261 | require 'ccn2'
require 'cudnn'
bs = 32
ni = 96
no = 128
imsize = 55
groups = 2
kW = 7
stride = 3
ccn2_conv = ccn2.SpatialConvolution(ni,no,kW,stride,0,groups):cuda()
cudnn_conv = cudnn.SpatialConvolution(ni,no,kW,kW,stride,stride,0,0,groups):cuda()
input = torch.randn(bs,ni,imsize,imsize):cuda()
input_tr = input:transpose(1,4):transpose(1,3):transpose(1,2):contiguous()
cudnn_conv.weight:copy(ccn2_conv.weight:t())
cudnn_conv.bias:copy(ccn2_conv.bias)
cudnn_output = cudnn_conv:forward(input)
ccn2_output = ccn2_conv:forward(input_tr):transpose(4,1):transpose(4,2):transpose(4,3):contiguous()
cudnn_gradOutput = torch.randn(#cudnn_conv.output):cuda()
ccn2_gradOutput = cudnn_gradOutput:transpose(1,4):transpose(1,3):transpose(1,2):contiguous()
cudnn_gradInput = cudnn_conv:backward(input, cudnn_gradOutput)
ccn2_gradInput = ccn2_conv:backward(input_tr, ccn2_gradOutput)
ccn2_gradInput = ccn2_gradInput:transpose(4,1):transpose(4,2):transpose(4,3):contiguous()
cudnn_gradWeight = cudnn_conv.gradWeight
ccn2_gradWeight = ccn2_conv.gradWeight:t()
assert((cudnn_output - ccn2_output):abs():max() < 1e-4)
assert((cudnn_gradInput - ccn2_gradInput):abs():max() < 1e-4)
assert((cudnn_gradWeight - ccn2_gradWeight):abs():max() < 5e-3)
print 'no assertions'
| mit |
Unrepentant-Atheist/mame | 3rdparty/genie/src/actions/codelite/codelite_project.lua | 3 | 5765 | --
-- codelite_project.lua
-- Generate a CodeLite C/C++ project file.
-- Copyright (c) 2009, 2011 Jason Perkins and the Premake project
--
local codelite = premake.codelite
local tree = premake.tree
--
-- Write out a list of the source code files in the project.
--
function codelite.files(prj)
local tr = premake.project.buildsourcetree(prj)
tree.traverse(tr, {
-- folders are handled at the internal nodes
onbranchenter = function(node, depth)
_p(depth, '<VirtualDirectory Name="%s">', node.name)
end,
onbranchexit = function(node, depth)
_p(depth, '</VirtualDirectory>')
end,
-- source files are handled at the leaves
onleaf = function(node, depth)
_p(depth, '<File Name="%s"/>', node.cfg.name)
end,
}, true, 1)
end
--
-- The main function: write out the project file.
--
function premake.codelite.project(prj)
io.indent = " "
_p('<?xml version="1.0" encoding="utf-8"?>')
_p('<CodeLite_Project Name="%s">', premake.esc(prj.name))
-- Write out the list of source code files in the project
codelite.files(prj)
local types = {
ConsoleApp = "Executable",
WindowedApp = "Executable",
StaticLib = "Static Library",
SharedLib = "Dynamic Library",
}
_p(' <Settings Type="%s">', types[prj.kind])
-- build a list of supported target platforms; I don't support cross-compiling yet
local platforms = premake.filterplatforms(prj.solution, premake[_OPTIONS.cc].platforms, "Native")
for i = #platforms, 1, -1 do
if premake.platforms[platforms[i]].iscrosscompiler then
table.remove(platforms, i)
end
end
for _, platform in ipairs(platforms) do
for cfg in premake.eachconfig(prj, platform) do
local name = premake.esc(cfg.longname):gsub("|","_")
local compiler = iif(cfg.language == "C", "gcc", "g++")
_p(' <Configuration Name="%s" CompilerType="gnu %s" DebuggerType="GNU gdb debugger" Type="%s">', name, compiler, types[cfg.kind])
local fname = premake.esc(cfg.buildtarget.fullpath)
local objdir = premake.esc(cfg.objectsdir)
local runcmd = cfg.buildtarget.name
local rundir = cfg.debugdir or cfg.buildtarget.directory
local runargs = table.concat(cfg.debugargs, " ")
local pause = iif(cfg.kind == "WindowedApp", "no", "yes")
local includedirs = table.join(cfg.userincludedirs, cfg.includedirs)
_p(' <General OutputFile="%s" IntermediateDirectory="%s" Command="./%s" CommandArguments="%s" WorkingDirectory="%s" PauseExecWhenProcTerminates="%s"/>', fname, objdir, runcmd, runargs, rundir, pause)
-- begin compiler block --
local flags = premake.esc(table.join(premake.gcc.getcflags(cfg), premake.gcc.getcxxflags(cfg), cfg.buildoptions))
_p(' <Compiler Required="yes" Options="%s">', table.concat(flags, ";"))
for _,v in ipairs(includedirs) do
_p(' <IncludePath Value="%s"/>', premake.esc(v))
end
for _,v in ipairs(cfg.defines) do
_p(' <Preprocessor Value="%s"/>', premake.esc(v))
end
_p(' </Compiler>')
-- end compiler block --
-- begin linker block --
flags = premake.esc(table.join(premake.gcc.getldflags(cfg), cfg.linkoptions))
_p(' <Linker Required="yes" Options="%s">', table.concat(flags, ";"))
for _,v in ipairs(premake.getlinks(cfg, "all", "directory")) do
_p(' <LibraryPath Value="%s" />', premake.esc(v))
end
for _,v in ipairs(premake.getlinks(cfg, "all", "basename")) do
_p(' <Library Value="%s" />', premake.esc(v))
end
_p(' </Linker>')
-- end linker block --
-- begin resource compiler block --
if premake.findfile(cfg, ".rc") then
local defines = table.implode(table.join(cfg.defines, cfg.resdefines), "-D", ";", "")
local options = table.concat(cfg.resoptions, ";")
_p(' <ResourceCompiler Required="yes" Options="%s%s">', defines, options)
for _,v in ipairs(table.join(cfg.includedirs, cfg.resincludedirs)) do
_p(' <IncludePath Value="%s"/>', premake.esc(v))
end
_p(' </ResourceCompiler>')
else
_p(' <ResourceCompiler Required="no" Options=""/>')
end
-- end resource compiler block --
-- begin build steps --
if #cfg.prebuildcommands > 0 then
_p(' <PreBuild>')
for _,v in ipairs(cfg.prebuildcommands) do
_p(' <Command Enabled="yes">%s</Command>', premake.esc(v))
end
_p(' </PreBuild>')
end
if #cfg.postbuildcommands > 0 then
_p(' <PostBuild>')
for _,v in ipairs(cfg.postbuildcommands) do
_p(' <Command Enabled="yes">%s</Command>', premake.esc(v))
end
_p(' </PostBuild>')
end
-- end build steps --
_p(' <CustomBuild Enabled="no">')
_p(' <CleanCommand></CleanCommand>')
_p(' <BuildCommand></BuildCommand>')
_p(' <SingleFileCommand></SingleFileCommand>')
_p(' <MakefileGenerationCommand></MakefileGenerationCommand>')
_p(' <ThirdPartyToolName>None</ThirdPartyToolName>')
_p(' <WorkingDirectory></WorkingDirectory>')
_p(' </CustomBuild>')
_p(' <AdditionalRules>')
_p(' <CustomPostBuild></CustomPostBuild>')
_p(' <CustomPreBuild></CustomPreBuild>')
_p(' </AdditionalRules>')
_p(' </Configuration>')
end
end
_p(' </Settings>')
for _, platform in ipairs(platforms) do
for cfg in premake.eachconfig(prj, platform) do
_p(' <Dependencies name="%s">', cfg.longname:gsub("|","_"))
for _,dep in ipairs(premake.getdependencies(prj)) do
_p(' <Project Name="%s"/>', dep.name)
end
_p(' </Dependencies>')
end
end
_p('</CodeLite_Project>')
end
| gpl-2.0 |
yangboz/bugfree-bugfixes | CocosJSGame/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/Mesh.lua | 6 | 1658 |
--------------------------------
-- @module Mesh
-- @extend Ref
-- @parent_module cc
--------------------------------
-- @function [parent=#Mesh] restore
-- @param self
--------------------------------
-- @function [parent=#Mesh] getMeshVertexAttribCount
-- @param self
-- @return long#long ret (return value: long)
--------------------------------
-- @function [parent=#Mesh] getIndexFormat
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- @function [parent=#Mesh] getVertexSizeInBytes
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- @function [parent=#Mesh] getPrimitiveType
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- @function [parent=#Mesh] getIndexCount
-- @param self
-- @return long#long ret (return value: long)
--------------------------------
-- @function [parent=#Mesh] getVertexBuffer
-- @param self
-- @return unsigned int#unsigned int ret (return value: unsigned int)
--------------------------------
-- @function [parent=#Mesh] getMeshVertexAttribute
-- @param self
-- @param #int int
-- @return MeshVertexAttrib#MeshVertexAttrib ret (return value: cc.MeshVertexAttrib)
--------------------------------
-- @function [parent=#Mesh] getIndexBuffer
-- @param self
-- @return unsigned int#unsigned int ret (return value: unsigned int)
--------------------------------
-- @function [parent=#Mesh] hasVertexAttrib
-- @param self
-- @param #int int
-- @return bool#bool ret (return value: bool)
return nil
| mit |
willwach/atmosphere | lua/sensors.lua | 1 | 3329 | function readBmpSensor(sdaPin, sclPin)
bmp085.init(sdaPin, sclPin)
local t = bmp085.temperature(1)
print(string.format("Temperature: %s.%s degrees C", t / 10, t % 10))
local p = bmp085.pressure(1)
print(string.format("Pressure: %s.%s mbar", p / 100, p % 100))
tempBMP180=string.format("%s.%s", t / 10, t % 10)
pressBMP180=string.format("%s.%s", p / 100, p % 100)
return tempBMP180, pressBMP180
end
function readDhtSensor(pin)
dht=require("dht")
tempDHT22 = -1000
humiDHT22 = -1000
status, temp, humi, temp_dec, humi_dec = dht.read(pin)
if status == dht.OK then
-- Integer firmware using this example
local data = string.format("DHT Temperature:%d.%03d;Humidity:%d.%03d\r\n",
math.floor(temp),
temp_dec,
math.floor(humi),
humi_dec
)
tempDHT22 = string.format("%d.%03d",math.floor(temp),temp_dec)
humiDHT22 = string.format("%d.%03d", math.floor(humi),humi_dec)
print(data)
elseif status == dht.ERROR_CHECKSUM then
print( "DHT Checksum error." )
elseif status == dht.ERROR_TIMEOUT then
print( "DHT timed out." )
end
-- Release module
dht=nil
package.loaded["dht"]=nil
return tempDHT22, humiDHT22
end
function resetDhtForDeepsleep(pin)
gpio.mode(pin,gpio.OUTPUT)
gpio.write(pin,gpio.LOW)
end
function getDS18B20Sensor(pin)
local sensors = {}
local addr = nil
local count = 0
ow.setup(pin)
repeat
count = count + 1
addr = ow.reset_search(pin)
addr = ow.search(pin)
table.insert(sensors, addr)
tmr.wdclr()
until((addr ~= nil) or (count > 100))
print("Sensors:", #sensors)
if (addr == nil) then
print('DS18B20 not found')
end
local s = string.format("Addr:%02X-%02X-%02X-%02X-%02X-%02X-%02X-%02X",
addr:byte(1), addr:byte(2), addr:byte(3), addr:byte(4),
addr:byte(5), addr:byte(6), addr:byte(7), addr:byte(8))
print(s)
crc = ow.crc8(string.sub(addr, 1, 7))
if (crc ~= addr:byte(8)) then
print('DS18B20 Addr CRC failed');
end
if not((addr:byte(1) == 0x10) or (addr:byte(1) == 0x28)) then
print('DS18B20 not found')
end
ow.reset(pin)
ow.select(pin, addr)
ow.write(pin, 0x44, 1)
tmr.delay(1000000)
present = ow.reset(pin)
if present ~= 1 then
print('DS18B20 not present')
end
ow.select(pin, addr)
ow.write(pin, 0xBE, 1)
local data = nil
data = string.char(ow.read(pin))
for i = 1, 8 do
data = data .. string.char(ow.read(pin))
end
s = string.format("Data:%02X-%02X-%02X-%02X-%02X-%02X-%02X-%02X",
data:byte(1), data:byte(2), data:byte(3), data:byte(4),
data:byte(5), data:byte(6), data:byte(7), data:byte(8))
print(s)
crc = ow.crc8(string.sub(data, 1, 8))
if (crc ~= data:byte(9)) then
print('DS18B20 data CRC failed')
end
local t0 = (data:byte(1) + data:byte(2) * 256)
if (t0 > 32767) then
t0 = t0 - 65536
end
t0 = t0 * 625
temperature = (t0 / 10000) .. "." .. (t0 % 10000)
print(string.format("Temperature: %s C", temperature))
return temperature
end | gpl-3.0 |
upsoft/Atlas | examples/tutorial-monitor.lua | 40 | 5362 | --[[ $%BEGINLICENSE%$
Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; version 2 of the
License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301 USA
$%ENDLICENSE%$ --]]
--[[
--]]
local function str2hex(str)
local raw_len = string.len(str)
local i = 1
local o = ""
while i <= raw_len do
o = o .. string.format(" %02x", string.byte(str, i))
i = i + 1
end
return o
end
--
-- map the constants to strings
-- lua starts at 1
local command_names = {
"COM_SLEEP",
"COM_QUIT",
"COM_INIT_DB",
"COM_QUERY",
"COM_FIELD_LIST",
"COM_CREATE_DB",
"COM_DROP_DB",
"COM_REFRESH",
"COM_SHUTDOWN",
"COM_STATISTICS",
"COM_PROCESS_INFO",
"COM_CONNECT",
"COM_PROCESS_KILL",
"COM_DEBUG",
"COM_PING",
"COM_TIME",
"COM_DELAYED_INSERT",
"COM_CHANGE_USER",
"COM_BINLOG_DUMP",
"COM_TABLE_DUMP",
"COM_CONNECT_OUT",
"COM_REGISTER_SLAVE",
"COM_STMT_PREPARE",
"COM_STMT_EXECUTE",
"COM_STMT_SEND_LONG_DATA",
"COM_STMT_CLOSE",
"COM_STMT_RESET",
"COM_SET_OPTION",
"COM_STMT_FETCH",
"COM_DAEMON"
}
--- dump the result-set to stdout
--
-- @param inj "packet.injection"
local function dump_query_result( inj )
local field_count = 1
local fields = inj.resultset.fields
while fields[field_count] do
local field = fields[field_count]
print("| | field[" .. field_count .. "] = { type = " ..
field.type .. ", name = " .. field.name .. " }" )
field_count = field_count + 1
end
local row_count = 0
for row in inj.resultset.rows do
local cols = {}
local o
for i = 1, field_count do
if not o then
o = ""
else
o = o .. ", "
end
if not row[i] then
o = o .. "(nul)"
else
o = o .. row[i]
end
end
print("| | row["..row_count.."] = { " .. o .. " }")
row_count = row_count + 1
end
end
local function decode_query_packet( packet )
-- we don't have the packet header in the
packet_len = string.len(packet)
print("| query.len = " .. packet_len)
print("| query.packet =" .. str2hex(packet))
-- print("(decode_query) " .. "| packet-id = " .. "(unknown)")
print("| .--- query")
print("| | command = " .. command_names[string.byte(packet) + 1])
if string.byte(packet) == proxy.COM_QUERY then
-- after the COM_QUERY comes the query
print("| | query = " .. string.format("%q", string.sub(packet, 2)))
elseif string.byte(packet) == proxy.COM_INIT_DB then
print("| | db = " .. string.format("%q", string.sub(packet, 2)))
elseif string.byte(packet) == proxy.COM_STMT_PREPARE then
print("| | query = " .. string.format("%q", string.sub(packet, 2)))
elseif string.byte(packet) == proxy.COM_STMT_EXECUTE then
local stmt_handler_id = string.byte(packet, 2) + (string.byte(packet, 3) * 256) + (string.byte(packet, 4) * 256 * 256) + (string.byte(packet, 5) * 256 * 256 * 256)
local flags = string.byte(packet, 6)
local iteration_count = string.byte(packet, 7) + (string.byte(packet, 8) * 256) + (string.byte(packet, 9) * 256 * 256) + (string.byte(packet, 10) * 256 * 256 * 256)
print("| | stmt-id = " .. stmt_handler_id )
print("| | flags = " .. string.format("%02x", flags) )
print("| | iteration_count = " .. iteration_count )
if packet_len > 10 then
-- if we don't have any place-holders, no for NUL and friends
local nul_bitmap = string.byte(packet, 11)
local new_param = string.byte(packet, 12)
print("| | nul_bitmap = " .. string.format("%02x", nul_bitmap ))
print("| | new_param = " .. new_param )
else
print("| | (no params)")
end
print("| | prepared-query = " .. prepared_queries[stmt_handler_id] )
else
print("| | packet =" .. str2hex(packet))
end
print("| '---")
end
function read_query()
--[[ for i = 1, #proxy.global.backends do
local s = proxy.global.backends[i]
local pool = s.pool -- we don't have a username yet, try to find a connections which is idling
local cur_idle = pool.users[""].cur_idle_connections
print(" [".. i .."].connected_clients = " .. s.connected_clients)
print(" [".. i .."].idling_connections = " .. cur_idle)
print(" [".. i .."].type = " .. s.type)
print(" [".. i .."].state = " .. s.state)
end
--]]
proxy.queries:append(1, string.char(proxy.COM_QUERY) .. "SELECT NOW()", { resultset_is_needed = true } )
if proxy.connection then
print ("inject monitor query into backend # " .. proxy.connection.backend_ndx)
else
print ("inject monitor query")
end
end
function read_query_result ( inj )
local res = assert(inj.resultset)
local packet = assert(inj.query)
decode_query_packet(packet)
print "read query result, dumping"
dump_query_result(inj)
end
| gpl-2.0 |
stas2z/openwrt-witi | feeds/packages/net/mwan3-luci/files/usr/lib/lua/luci/controller/mwan3.lua | 1 | 10896 | module("luci.controller.mwan3", package.seeall)
sys = require "luci.sys"
ut = require "luci.util"
ip = "/usr/sbin/ip -4 "
function index()
if not nixio.fs.access("/etc/config/mwan3") then
return
end
entry({"admin", "network", "mwan"},
alias("admin", "network", "mwan", "overview"),
_("Load Balancing"), 600)
entry({"admin", "network", "mwan", "overview"},
alias("admin", "network", "mwan", "overview", "overview_interface"),
_("Overview"), 10)
entry({"admin", "network", "mwan", "overview", "overview_interface"},
template("mwan/overview_interface"))
entry({"admin", "network", "mwan", "overview", "interface_status"},
call("interfaceStatus"))
entry({"admin", "network", "mwan", "overview", "overview_detailed"},
template("mwan/overview_detailed"))
entry({"admin", "network", "mwan", "overview", "detailed_status"},
call("detailedStatus"))
entry({"admin", "network", "mwan", "configuration"},
alias("admin", "network", "mwan", "configuration", "interface"),
_("Configuration"), 20)
entry({"admin", "network", "mwan", "configuration", "interface"},
arcombine(cbi("mwan/interface"), cbi("mwan/interfaceconfig")),
_("Interfaces"), 10).leaf = true
entry({"admin", "network", "mwan", "configuration", "member"},
arcombine(cbi("mwan/member"), cbi("mwan/memberconfig")),
_("Members"), 20).leaf = true
entry({"admin", "network", "mwan", "configuration", "policy"},
arcombine(cbi("mwan/policy"), cbi("mwan/policyconfig")),
_("Policies"), 30).leaf = true
entry({"admin", "network", "mwan", "configuration", "rule"},
arcombine(cbi("mwan/rule"), cbi("mwan/ruleconfig")),
_("Rules"), 40).leaf = true
entry({"admin", "network", "mwan", "advanced"},
alias("admin", "network", "mwan", "advanced", "hotplugscript"),
_("Advanced"), 100)
entry({"admin", "network", "mwan", "advanced", "hotplugscript"},
form("mwan/advanced_hotplugscript"))
entry({"admin", "network", "mwan", "advanced", "mwanconfig"},
form("mwan/advanced_mwanconfig"))
entry({"admin", "network", "mwan", "advanced", "networkconfig"},
form("mwan/advanced_networkconfig"))
entry({"admin", "network", "mwan", "advanced", "diagnostics"},
template("mwan/advanced_diagnostics"))
entry({"admin", "network", "mwan", "advanced", "diagnostics_display"},
call("diagnosticsData"), nil).leaf = true
entry({"admin", "network", "mwan", "advanced", "troubleshooting"},
template("mwan/advanced_troubleshooting"))
entry({"admin", "network", "mwan", "advanced", "troubleshooting_display"},
call("troubleshootingData"))
end
function getInterfaceStatus(ruleNumber, interfaceName)
if ut.trim(sys.exec("uci -p /var/state get mwan3." .. interfaceName .. ".enabled")) == "1" then
if ut.trim(sys.exec(ip .. "route list table " .. ruleNumber)) ~= "" then
if ut.trim(sys.exec("uci -p /var/state get mwan3." .. interfaceName .. ".track_ip")) ~= "" then
return "online"
else
return "notMonitored"
end
else
return "offline"
end
else
return "notEnabled"
end
end
function getInterfaceName()
local ruleNumber, status = 0, ""
uci.cursor():foreach("mwan3", "interface",
function (section)
ruleNumber = ruleNumber+1
status = status .. section[".name"] .. "[" .. getInterfaceStatus(ruleNumber, section[".name"]) .. "]"
end
)
return status
end
function interfaceStatus()
local ntm = require "luci.model.network".init()
local mArray = {}
-- overview status
local statusString = getInterfaceName()
if statusString ~= "" then
mArray.wans = {}
wansid = {}
for wanName, interfaceState in string.gfind(statusString, "([^%[]+)%[([^%]]+)%]") do
local wanInterfaceName = ut.trim(sys.exec("uci -p /var/state get network." .. wanName .. ".ifname"))
if wanInterfaceName == "" then
wanInterfaceName = "X"
end
local wanDeviceLink = ntm:get_interface(wanInterfaceName)
wanDeviceLink = wanDeviceLink and wanDeviceLink:get_network()
wanDeviceLink = wanDeviceLink and wanDeviceLink:adminlink() or "#"
wansid[wanName] = #mArray.wans + 1
mArray.wans[wansid[wanName]] = { name = wanName, link = wanDeviceLink, ifname = wanInterfaceName, status = interfaceState }
end
end
-- overview status log
local mwanLog = ut.trim(sys.exec("logread | grep mwan3 | tail -n 50 | sed 'x;1!H;$!d;x'"))
if mwanLog ~= "" then
mArray.mwanlog = { mwanLog }
end
luci.http.prepare_content("application/json")
luci.http.write_json(mArray)
end
function detailedStatus()
local mArray = {}
-- detailed mwan status
local detailStatusInfo = ut.trim(sys.exec("/usr/sbin/mwan3 status"))
if detailStatusInfo ~= "" then
mArray.mwandetail = { detailStatusInfo }
end
luci.http.prepare_content("application/json")
luci.http.write_json(mArray)
end
function diagnosticsData(interface, tool, task)
function getInterfaceNumber()
local number = 0
uci.cursor():foreach("mwan3", "interface",
function (section)
number = number+1
if section[".name"] == interface then
interfaceNumber = number
end
end
)
end
local mArray = {}
local results = ""
if tool == "service" then
os.execute("/usr/sbin/mwan3 " .. task)
if task == "restart" then
results = "MWAN3 restarted"
elseif task == "stop" then
results = "MWAN3 stopped"
else
results = "MWAN3 started"
end
else
local interfaceDevice = ut.trim(sys.exec("uci -p /var/state get network." .. interface .. ".ifname"))
if interfaceDevice ~= "" then
if tool == "ping" then
local gateway = ut.trim(sys.exec("route -n | awk '{if ($8 == \"" .. interfaceDevice .. "\" && $1 == \"0.0.0.0\" && $3 == \"0.0.0.0\") print $2}'"))
if gateway ~= "" then
if task == "gateway" then
local pingCommand = "ping -c 3 -W 2 -I " .. interfaceDevice .. " " .. gateway
results = pingCommand .. "\n\n" .. sys.exec(pingCommand)
else
local tracked = ut.trim(sys.exec("uci -p /var/state get mwan3." .. interface .. ".track_ip"))
if tracked ~= "" then
for z in tracked:gmatch("[^ ]+") do
local pingCommand = "ping -c 3 -W 2 -I " .. interfaceDevice .. " " .. z
results = results .. pingCommand .. "\n\n" .. sys.exec(pingCommand) .. "\n\n"
end
else
results = "No tracking IP addresses configured on " .. interface
end
end
else
results = "No default gateway for " .. interface .. " found. Default route does not exist or is configured incorrectly"
end
elseif tool == "rulechk" then
getInterfaceNumber()
local rule1 = sys.exec(ip .. "rule | grep $(echo $((" .. interfaceNumber .. " + 1000)))")
local rule2 = sys.exec(ip .. "rule | grep $(echo $((" .. interfaceNumber .. " + 2000)))")
if rule1 ~= "" and rule2 ~= "" then
results = "All required interface IP rules found:\n\n" .. rule1 .. rule2
elseif rule1 ~= "" or rule2 ~= "" then
results = "Missing 1 of the 2 required interface IP rules\n\n\nRules found:\n\n" .. rule1 .. rule2
else
results = "Missing both of the required interface IP rules"
end
elseif tool == "routechk" then
getInterfaceNumber()
local routeTable = sys.exec(ip .. "route list table " .. interfaceNumber)
if routeTable ~= "" then
results = "Interface routing table " .. interfaceNumber .. " was found:\n\n" .. routeTable
else
results = "Missing required interface routing table " .. interfaceNumber
end
elseif tool == "hotplug" then
if task == "ifup" then
os.execute("/usr/sbin/mwan3 ifup " .. interface)
results = "Hotplug ifup sent to interface " .. interface .. "..."
else
os.execute("/usr/sbin/mwan3 ifdown " .. interface)
results = "Hotplug ifdown sent to interface " .. interface .. "..."
end
end
else
results = "Unable to perform diagnostic tests on " .. interface .. ". There is no physical or virtual device associated with this interface"
end
end
if results ~= "" then
results = ut.trim(results)
mArray.diagnostics = { results }
end
luci.http.prepare_content("application/json")
luci.http.write_json(mArray)
end
function troubleshootingData()
local ver = require "luci.version"
local mArray = {}
-- software versions
local wrtRelease = ut.trim(ver.distversion)
if wrtRelease ~= "" then
wrtRelease = "OpenWrt - " .. wrtRelease
else
wrtRelease = "OpenWrt - unknown"
end
local luciRelease = ut.trim(ver.luciversion)
if luciRelease ~= "" then
luciRelease = "\nLuCI - " .. luciRelease
else
luciRelease = "\nLuCI - unknown"
end
local mwanVersion = ut.trim(sys.exec("opkg info mwan3 | grep Version | awk '{print $2}'"))
if mwanVersion ~= "" then
mwanVersion = "\n\nmwan3 - " .. mwanVersion
else
mwanVersion = "\n\nmwan3 - unknown"
end
local mwanLuciVersion = ut.trim(sys.exec("opkg info luci-app-mwan3 | grep Version | awk '{print $2}'"))
if mwanLuciVersion ~= "" then
mwanLuciVersion = "\nmwan3-luci - " .. mwanLuciVersion
else
mwanLuciVersion = "\nmwan3-luci - unknown"
end
mArray.versions = { wrtRelease .. luciRelease .. mwanVersion .. mwanLuciVersion }
-- mwan config
local mwanConfig = ut.trim(sys.exec("cat /etc/config/mwan3"))
if mwanConfig == "" then
mwanConfig = "No data found"
end
mArray.mwanconfig = { mwanConfig }
-- network config
local networkConfig = ut.trim(sys.exec("cat /etc/config/network | sed -e 's/.*username.*/ USERNAME HIDDEN/' -e 's/.*password.*/ PASSWORD HIDDEN/'"))
if networkConfig == "" then
networkConfig = "No data found"
end
mArray.netconfig = { networkConfig }
-- ifconfig
local ifconfig = ut.trim(sys.exec("ifconfig"))
if ifconfig == "" then
ifconfig = "No data found"
end
mArray.ifconfig = { ifconfig }
-- route -n
local routeShow = ut.trim(sys.exec("route -n"))
if routeShow == "" then
routeShow = "No data found"
end
mArray.routeshow = { routeShow }
-- ip rule show
local ipRuleShow = ut.trim(sys.exec(ip .. "rule show"))
if ipRuleShow == "" then
ipRuleShow = "No data found"
end
mArray.iprule = { ipRuleShow }
-- ip route list table 1-250
local routeList, routeString = ut.trim(sys.exec(ip .. "rule | sed 's/://g' | awk '$1>=2001 && $1<=2250' | awk '{print $NF}'")), ""
if routeList ~= "" then
for line in routeList:gmatch("[^\r\n]+") do
routeString = routeString .. line .. "\n" .. sys.exec(ip .. "route list table " .. line)
end
routeString = ut.trim(routeString)
else
routeString = "No data found"
end
mArray.routelist = { routeString }
-- default firewall output policy
local firewallOut = ut.trim(sys.exec("uci -p /var/state get firewall.@defaults[0].output"))
if firewallOut == "" then
firewallOut = "No data found"
end
mArray.firewallout = { firewallOut }
-- iptables
local iptables = ut.trim(sys.exec("iptables -L -t mangle -v -n"))
if iptables == "" then
iptables = "No data found"
end
mArray.iptables = { iptables }
luci.http.prepare_content("application/json")
luci.http.write_json(mArray)
end
| gpl-2.0 |
rlcevg/Zero-K | lups/ParticleClasses/ShockWave.lua | 14 | 6389 | -- $Id: ShockWave.lua 3171 2008-11-06 09:06:29Z det $
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local ShockWave = {}
ShockWave.__index = ShockWave
local warpShader
local screenLoc
local dlist
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
function ShockWave.GetInfo()
return {
name = "ShockWave",
backup = "", --// backup class, if this class doesn't work (old cards,ati's,etc.)
desc = "",
layer = 1, --// extreme simply z-ordering :x
--// gfx requirement
fbo = true,
shader = true,
distortion= true,
intel = 0,
}
end
ShockWave.Default = {
layer = 1,
worldspace = true,
life = 23,
pos = {0,0,0},
growth = 4.5,
repeatEffect = false,
dieGameFrame = math.huge
}
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
local glUniform = gl.Uniform
local glUseShader = gl.UseShader
local glCallList = gl.CallList
local glMultiTexCoord = gl.MultiTexCoord
local spWorldToScreenCoords = Spring.WorldToScreenCoords
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
function ShockWave:BeginDrawDistortion()
glUseShader(warpShader)
--glUniform(screenLoc, 1/vsx,1/vsy )
end
function ShockWave:EndDrawDistortion()
glUseShader(0)
end
function ShockWave:DrawDistortion()
local pos = self.pos
local x,y,z = pos[1],pos[2],pos[3]
local cx,cy = spWorldToScreenCoords(x,y,z)
glMultiTexCoord(0,x,y,z,1)
glMultiTexCoord(1,cx,cy,self.radius,self.life2)
glCallList(dlist)
end
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
function ShockWave.Initialize()
warpShader = gl.CreateShader({
vertex = [[
uniform float radius;
varying vec2 center;
varying float life;
varying vec2 texCoord;
void main()
{
center = gl_MultiTexCoord1.xy;
life = gl_MultiTexCoord1.w;
texCoord = gl_Vertex.st;
gl_Position = gl_ModelViewMatrix * gl_MultiTexCoord0;
gl_Position.xy += gl_Vertex.xy * gl_MultiTexCoord1.z;
gl_Position = gl_ProjectionMatrix * gl_Position;
}
]],
fragment = [[
uniform vec2 screenInverse;
varying vec2 center;
varying float life;
varying vec2 texCoord;
float p1 = gl_ProjectionMatrix[2][2];
float p2 = gl_ProjectionMatrix[2][3];
float ConvertZtoEye(float z)
{
return p2/(z*2.0-1.0+p1);
}
float ConvertEyeToZ(float d)
{
return 0.5-0.5*p1+(1.0/(2.0*d))*p2;
}
void main(void)
{
float dist = (length(texCoord)-0.6)*2.5;
if (dist>1.0) {
discard;
}else{
float eyeDepth = ConvertZtoEye(gl_FragCoord.z);
eyeDepth -= cos(asin(dist))*30.0;
gl_FragDepth = ConvertEyeToZ(eyeDepth);
vec2 d = gl_FragCoord.xy - center;
float distortion = exp( -0.5*( pow(-dist*8.0+4.0,2.0) ) )*0.15;
vec2 noiseVec = (d/dist)*screenInverse*distortion*life;
gl_FragColor.xyw = vec3(noiseVec,gl_FragCoord.z);
//float distortion = pow(dist, 1.0/4.0)-dist;
//float distortion = smoothstep(1.0,0.0,dist)*0.25;
//float distortion = tanh(dist*3.0)-dist;
//float distortion = smoothstep(0.0,1.0,dist)-dist;
}
}
]],
uniform = {
screenInverse = {1/1280,1/1024},
life = 1,
}
})
if (warpShader == nil) then
print(PRIO_MAJOR,"LUPS->ShockWave: critical shader error: "..gl.GetShaderLog())
return false
end
screenLoc = gl.GetUniformLocation(warpShader, 'screenInverse')
dlist = gl.CreateList(gl.BeginEnd,GL.QUADS,function()
gl.Vertex(-1,1)
gl.Vertex(1,1)
gl.Vertex(1,-1)
gl.Vertex(-1,-1)
end)
end
function ShockWave.Finalize()
if (gl.DeleteShader) then
gl.DeleteShader(warpShader)
end
gl.DeleteList(dlist)
end
function ShockWave.ViewResize()
gl.UseShader(warpShader)
gl.Uniform(screenLoc,1/vsx,1/vsy)
gl.UseShader(0)
end
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
function ShockWave:Update()
self.life2 = self.life2 - self.life_inc
self.radius = self.radius + self.growth
end
-- used if repeatEffect=true;
function ShockWave:ReInitialize()
self.life2 = 1
self.radius = 0
self.startGameFrame = thisGameFrame
self.dieGameFrame = self.startGameFrame + self.life
end
function ShockWave:CreateParticle()
self.startGameFrame = thisGameFrame
self.dieGameFrame = self.startGameFrame + self.life
self.life2 = 1
self.life_inc = 1/(self.dieGameFrame - self.startGameFrame)
self.radius = 0
end
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
function ShockWave.Create(Options)
local newObject = MergeTable(Options, ShockWave.Default)
setmetatable(newObject,ShockWave) -- make handle lookup
newObject:CreateParticle()
return newObject
end
function ShockWave:Destroy()
end
-----------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------
return ShockWave | gpl-2.0 |
rlcevg/Zero-K | LuaRules/Gadgets/unit_turn_without_interia.lua | 12 | 1401 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if not gadgetHandler:IsSyncedCode() then
return
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function gadget:GetInfo()
return {
name = "Turn Without Interia",
desc = "Remove turn interia because I don't want to deal with configuring it propperly right now (and such a change would not work for 91.0 anyway).",
author = "Google Frog",
date = "7 Sep 2014",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true
}
end
local spSetGroundMoveTypeData = Spring.MoveCtrl.SetGroundMoveTypeData
local getMovetype = Spring.Utilities.getMovetype
local spMoveCtrlGetTag = Spring.MoveCtrl.GetTag
function gadget:UnitCreated(unitID, unitDefID, teamID, cmdID, cmdParams, cmdOptions)
local ud = UnitDefs[unitDefID]
if getMovetype(ud) == 2 and spMoveCtrlGetTag(unitID) == nil then -- Ground/Sea
spSetGroundMoveTypeData(unitID, "turnAccel", ud.turnRate*1.2)
end
end
function gadget:Initialize()
for _, unitID in ipairs(Spring.GetAllUnits()) do
local unitDefID = Spring.GetUnitDefID(unitID)
gadget:UnitCreated(unitID, unitDefID)
end
end | gpl-2.0 |
Jennal/cocos2dx-3.2-qt | tests/lua-tests/src/NodeTest/NodeTest.lua | 10 | 21008 | local kTagSprite1 = 1
local kTagSprite2 = 2
local kTagSprite3 = 3
local kTagSlider = 4
local s = cc.Director:getInstance():getWinSize()
local scheduler = cc.Director:getInstance():getScheduler()
local function getBaseLayer()
local layer = cc.Layer:create()
Helper.initWithLayer(layer)
return layer
end
-----------------------------------
-- CameraCenterTest
-----------------------------------
local function CameraCenterTest()
local layer = getBaseLayer()
-- LEFT-TOP
local sprite = cc.Sprite:create("Images/white-512x512.png")
layer:addChild(sprite, 0)
sprite:setPosition(cc.p(s.width / 5 * 1, s.height / 5 * 1))
sprite:setColor(cc.c3b(255, 0, 0))
sprite:setTextureRect(cc.rect(0, 0, 120, 50))
local orbit = cc.OrbitCamera:create(10, 1, 0, 0, 360, 0, 0)
sprite:runAction(cc.RepeatForever:create(orbit))
-- [sprite setAnchorPoint: cc.p(0,1))
-- LEFT-BOTTOM
sprite = cc.Sprite:create("Images/white-512x512.png")
layer:addChild(sprite, 0, 40)
sprite:setPosition(cc.p(s.width / 5 * 1, s.height / 5 * 4))
sprite:setColor(cc.c3b(0, 0, 255))
sprite:setTextureRect(cc.rect(0, 0, 120, 50))
orbit = cc.OrbitCamera:create(10, 1, 0, 0, 360, 0, 0)
sprite:runAction(cc.RepeatForever:create(orbit))
-- RIGHT-TOP
sprite = cc.Sprite:create("Images/white-512x512.png")
layer:addChild(sprite, 0)
sprite:setPosition(cc.p(s.width / 5 * 4, s.height / 5 * 1))
sprite:setColor(cc.c3b(255, 255, 0))
sprite:setTextureRect(cc.rect(0, 0, 120, 50))
orbit = cc.OrbitCamera:create(10, 1, 0, 0, 360, 0, 0)
sprite:runAction(cc.RepeatForever:create(orbit))
-- RIGHT-BOTTOM
sprite = cc.Sprite:create("Images/white-512x512.png")
layer:addChild(sprite, 0, 40)
sprite:setPosition(cc.p(s.width / 5 * 4, s.height / 5 * 4))
sprite:setColor(cc.c3b(0, 255, 0))
sprite:setTextureRect(cc.rect(0, 0, 120, 50))
orbit = cc.OrbitCamera:create(10, 1, 0, 0, 360, 0, 0)
sprite:runAction(cc.RepeatForever:create(orbit))
-- CENTER
sprite = cc.Sprite:create("Images/white-512x512.png")
layer:addChild(sprite, 0, 40)
sprite:setPosition(cc.p(s.width / 2, s.height / 2))
sprite:setColor(cc.c3b(255, 255, 255))
sprite:setTextureRect(cc.rect(0, 0, 120, 50))
orbit = cc.OrbitCamera:create(10, 1, 0, 0, 360, 0, 0)
sprite:runAction(cc.RepeatForever:create(orbit))
Helper.titleLabel:setString("Camera Center test")
Helper.subtitleLabel:setString("Sprites should rotate at the same speed")
return layer
end
-----------------------------------
-- Test2
-----------------------------------
local function Test2()
local layer = getBaseLayer()
local sp1 = cc.Sprite:create(s_pPathSister1)
local sp2 = cc.Sprite:create(s_pPathSister2)
local sp3 = cc.Sprite:create(s_pPathSister1)
local sp4 = cc.Sprite:create(s_pPathSister2)
sp1:setPosition(cc.p(100, s.height /2))
sp2:setPosition(cc.p(380, s.height /2))
layer:addChild(sp1)
layer:addChild(sp2)
sp3:setScale(0.25)
sp4:setScale(0.25)
sp1:addChild(sp3)
sp2:addChild(sp4)
local a1 = cc.RotateBy:create(2, 360)
local a2 = cc.ScaleBy:create(2, 2)
local action1 = cc.RepeatForever:create(cc.Sequence:create(a1, a2, a2:reverse()))
local action2 = cc.RepeatForever:create(cc.Sequence:create(a1:clone(), a2:clone(), a2:reverse()))
sp2:setAnchorPoint(cc.p(0,0))
sp1:runAction(action1)
sp2:runAction(action2)
Helper.titleLabel:setString("anchorPoint and children")
return layer
end
-----------------------------------
-- Test4
-----------------------------------
local Test4_layer = nil
local Test4_delay2Entry = nil
local Test4_delay4Entry = nil
local function delay2(dt)
node = Test4_layer:getChildByTag(2)
local action1 = cc.RotateBy:create(1, 360)
node:runAction(action1)
end
local function delay4(dt)
scheduler:unscheduleScriptEntry(Test4_delay4Entry)
Test4_layer:removeChildByTag(3, false)
end
local function Test4_onEnterOrExit(tag)
if tag == "enter" then
Test4_delay2Entry = scheduler:scheduleScriptFunc(delay2, 2.0, false)
Test4_delay4Entry = scheduler:scheduleScriptFunc(delay4, 4.0, false)
elseif tag == "exit" then
scheduler:unscheduleScriptEntry(Test4_delay2Entry)
scheduler:unscheduleScriptEntry(Test4_delay4Entry)
end
end
local function Test4()
Test4_layer = getBaseLayer()
local sp1 = cc.Sprite:create(s_pPathSister1)
local sp2 = cc.Sprite:create(s_pPathSister2)
sp1:setPosition(cc.p(100, 160))
sp2:setPosition(cc.p(380, 160))
Test4_layer:addChild(sp1, 0, 2)
Test4_layer:addChild(sp2, 0, 3)
Test4_layer:registerScriptHandler(Test4_onEnterOrExit)
Helper.titleLabel:setString("tags")
return Test4_layer
end
-----------------------------------
-- Test5
-----------------------------------
local Test5_entry = nil
local Test5_layer = nil
local function Test5_addAndRemove(dt)
local sp1 = Test5_layer:getChildByTag(kTagSprite1)
local sp2 = Test5_layer:getChildByTag(kTagSprite2)
sp1:retain()
sp2:retain()
Test5_layer:removeChild(sp1, false)
Test5_layer:removeChild(sp2, true)
Test5_layer:addChild(sp1, 0, kTagSprite1)
Test5_layer:addChild(sp2, 0, kTagSprite2)
sp1:release()
sp2:release()
end
local function Test5_onEnterOrExit(tag)
if tag == "enter" then
Test5_entry = scheduler:scheduleScriptFunc(Test5_addAndRemove, 2.0, false)
elseif tag == "exit" then
scheduler:unscheduleScriptEntry(Test5_entry)
end
end
local function Test5()
Test5_layer = getBaseLayer()
local sp1 = cc.Sprite:create(s_pPathSister1)
local sp2 = cc.Sprite:create(s_pPathSister2)
sp1:setPosition(cc.p(100, 160))
sp2:setPosition(cc.p(380, 160))
local rot = cc.RotateBy:create(2, 360)
local rot_back = rot:reverse()
local forever = cc.RepeatForever:create(cc.Sequence:create(rot, rot_back))
local rot2 = cc.RotateBy:create(2, 360)
local rot2_back = rot2:reverse()
local forever2 = cc.RepeatForever:create(cc.Sequence:create(rot2, rot2_back))
forever:setTag(101)
forever2:setTag(102)
Test5_layer:addChild(sp1, 0, kTagSprite1)
Test5_layer:addChild(sp2, 0, kTagSprite2)
sp1:runAction(forever)
sp2:runAction(forever2)
Test5_layer:registerScriptHandler(Test5_onEnterOrExit)
Helper.titleLabel:setString("remove and cleanup")
return Test5_layer
end
-----------------------------------
-- Test6
-----------------------------------
local Test6_entry = nil
local Test6_layer = nil
local function Test6_addAndRemove(dt)
local sp1 = Test6_layer:getChildByTag(kTagSprite1)
local sp2 = Test6_layer:getChildByTag(kTagSprite2)
sp1:retain()
sp2:retain()
Test6_layer:removeChild(sp1, false)
Test6_layer:removeChild(sp2, true)
Test6_layer:addChild(sp1, 0, kTagSprite1)
Test6_layer:addChild(sp2, 0, kTagSprite2)
sp1:release()
sp2:release()
end
local function Test6_onEnterOrExit(tag)
if tag == "enter" then
Test6_entry = scheduler:scheduleScriptFunc(Test6_addAndRemove, 2.0, false)
elseif tag == "exit" then
scheduler:unscheduleScriptEntry(Test6_entry)
end
end
local function Test6()
Test6_layer = getBaseLayer()
local sp1 = cc.Sprite:create(s_pPathSister1)
local sp11 = cc.Sprite:create(s_pPathSister1)
local sp2 = cc.Sprite:create(s_pPathSister2)
local sp21 = cc.Sprite:create(s_pPathSister2)
sp1:setPosition(cc.p(100, 160))
sp2:setPosition(cc.p(380, 160))
local rot = cc.RotateBy:create(2, 360)
local rot_back = rot:reverse()
local forever1 = cc.RepeatForever:create(cc.Sequence:create(rot, rot_back))
local forever11 = forever1:clone()
local forever2 = forever1:clone()
local forever21 = forever1:clone()
Test6_layer:addChild(sp1, 0, kTagSprite1)
sp1:addChild(sp11)
Test6_layer:addChild(sp2, 0, kTagSprite2)
sp2:addChild(sp21)
sp1:runAction(forever1)
sp11:runAction(forever11)
sp2:runAction(forever2)
sp21:runAction(forever21)
Test6_layer:registerScriptHandler(Test6_onEnterOrExit)
Helper.titleLabel:setString("remove/cleanup with children")
return Test6_layer
end
-----------------------------------
-- StressTest1
-----------------------------------
local StressTest1_entry = nil
local StressTest1_layer = nil
local function removeMe(node)
local parent = StressTest1_layer:getParent()
parent:removeChild(node, true)
Helper.nextAction()
end
local function shouldNotCrash(dt)
scheduler:unscheduleScriptEntry(StressTest1_entry)
-- if the node has timers, it crashes
local explosion = cc.ParticleSun:create()
explosion:setTexture(cc.Director:getInstance():getTextureCache():addImage("Images/fire.png"))
explosion:setPosition(s.width / 2, s.height / 2)
StressTest1_layer:setAnchorPoint(cc.p(0, 0))
local callFunc = cc.CallFunc:create(removeMe)
StressTest1_layer:runAction(cc.Sequence:create(cc.RotateBy:create(2, 360), callFunc))
StressTest1_layer:addChild(explosion)
end
local function StressTest1_onEnterOrExit(tag)
if tag == "enter" then
StressTest1_entry = scheduler:scheduleScriptFunc(shouldNotCrash, 1.0, false)
elseif tag == "exit" then
scheduler:unscheduleScriptEntry(StressTest1_entry)
end
end
local function StressTest1()
StressTest1_layer = getBaseLayer()
sp1 = cc.Sprite:create(s_pPathSister1)
StressTest1_layer:addChild(sp1, 0, kTagSprite1)
sp1:setPosition(cc.p(s.width / 2, s.height / 2))
StressTest1_layer:registerScriptHandler(StressTest1_onEnterOrExit)
Helper.titleLabel:setString("stress test #1: no crashes")
return StressTest1_layer
end
-----------------------------------
-- StressTest2
-----------------------------------
local StressTest2_entry = nil
local StressTest2_layer = nil
local function shouldNotLeak(dt)
scheduler:unscheduleScriptEntry(StressTest2_entry)
local sublayer = StressTest2_layer:getChildByTag(kTagSprite1)
sublayer:removeAllChildren(true)
end
local function StressTest2_onEnterOrExit(tag)
if tag == "enter" then
StressTest2_entry = scheduler:scheduleScriptFunc(shouldNotLeak, 6.0, false)
elseif tag == "exit" then
scheduler:unscheduleScriptEntry(StressTest2_entry)
end
end
local function StressTest2()
StressTest2_layer = getBaseLayer()
sublayer = cc.Layer:create()
local sp1 = cc.Sprite:create(s_pPathSister1)
sp1:setPosition(cc.p(80, s.height / 2))
local move = cc.MoveBy:create(3, cc.p(350, 0))
local move_ease_inout3 = cc.EaseInOut:create(cc.MoveBy:create(3, cc.p(350, 0)), 2.0)
local move_ease_inout_back3 = move_ease_inout3:reverse()
local seq3 = cc.Sequence:create(move_ease_inout3, move_ease_inout_back3)
sp1:runAction(cc.RepeatForever:create(seq3))
sublayer:addChild(sp1, 1)
local fire = cc.ParticleFire:create()
fire:setTexture(cc.Director:getInstance():getTextureCache():addImage("Images/fire.png"))
fire:setPosition(80, s.height / 2 - 50)
local copy_seq3 = seq3:clone()
fire:runAction(cc.RepeatForever:create(copy_seq3))
sublayer:addChild(fire, 2)
StressTest2_layer:registerScriptHandler(StressTest2_onEnterOrExit)
StressTest2_layer:addChild(sublayer, 0, kTagSprite1)
Helper.titleLabel:setString("stress test #2: no leaks")
return StressTest2_layer
end
-----------------------------------
-- NodeToWorld
-----------------------------------
local function NodeToWorld()
local layer = getBaseLayer()
-- This code tests that nodeToParent works OK:
-- - It tests different anchor Points
-- - It tests different children anchor points
local back = cc.Sprite:create(s_back3)
layer:addChild(back, -10)
back:setAnchorPoint(cc.p(0, 0))
local backSize = back:getContentSize()
local item = cc.MenuItemImage:create(s_PlayNormal, s_PlaySelect)
local menu = cc.Menu:create()
menu:addChild(item)
menu:alignItemsVertically()
menu:setPosition(cc.p(backSize.width / 2, backSize.height / 2))
back:addChild(menu)
local rot = cc.RotateBy:create(5, 360)
local fe = cc.RepeatForever:create(rot)
item:runAction(fe)
local move = cc.MoveBy:create(3, cc.p(200, 0))
local move_back = move:reverse()
local seq = cc.Sequence:create(move, move_back)
local fe2 = cc.RepeatForever:create(seq)
back:runAction(fe2)
Helper.titleLabel:setString("nodeToParent transform")
return layer
end
-----------------------------------
-- CameraOrbitTest
-----------------------------------
local function CameraOrbitTest_onEnterOrExit(tag)
if tag == "enter" then
cc.Director:getInstance():setProjection(cc.DIRECTOR_PROJECTION3_D)
cc.Director:getInstance():setDepthTest(true)
elseif tag == "exit" then
cc.Director:getInstance():setProjection(cc.DIRECTOR_PROJECTION_DEFAULT)
cc.Director:getInstance():setDepthTest(false)
end
end
local function CameraOrbitTest()
local layer = getBaseLayer()
local p = cc.Sprite:create(s_back3)
layer:addChild(p, 0)
p:setPosition(cc.p(s.width / 2, s.height / 2))
p:setOpacity(128)
-- LEFT
local s = p:getContentSize()
local sprite = cc.Sprite:create(s_pPathGrossini)
sprite:setScale(0.5)
p:addChild(sprite, 0)
sprite:setPosition(cc.p(s.width / 4 * 1, s.height / 2))
local orbit = cc.OrbitCamera:create(2, 1, 0, 0, 360, 0, 0)
sprite:runAction(cc.RepeatForever:create(orbit))
-- CENTER
sprite = cc.Sprite:create(s_pPathGrossini)
sprite:setScale(1.0)
p:addChild(sprite, 0)
sprite:setPosition(cc.p(s.width / 4 * 2, s.height / 2))
orbit = cc.OrbitCamera:create(2, 1, 0, 0, 360, 45, 0)
sprite:runAction(cc.RepeatForever:create(orbit))
-- RIGHT
sprite = cc.Sprite:create(s_pPathGrossini)
sprite:setScale(2.0)
p:addChild(sprite, 0)
sprite:setPosition(cc.p(s.width / 4 * 3, s.height / 2))
local ss = sprite:getContentSize()
orbit = cc.OrbitCamera:create(2, 1, 0, 0, 360, 90, -45)
sprite:runAction(cc.RepeatForever:create(orbit))
-- PARENT
orbit = cc.OrbitCamera:create(10, 1, 0, 0, 360, 0, 90)
p:runAction(cc.RepeatForever:create(orbit))
layer:setScale(1)
layer:registerScriptHandler(CameraOrbitTest_onEnterOrExit)
Helper.titleLabel:setString("Camera Orbit test")
return layer
end
-----------------------------------
-- CameraZoomTest
-----------------------------------
local z = 0
local CameraZoomTest_layer = nil
local CameraZoomTest_entry = nil
local function CameraZoomTest_update(dt)
z = z + dt * 100
local sprite = CameraZoomTest_layer:getChildByTag(20)
-- local cam = sprite:getCamera()
-- cam:setEye(0, 0, z)
sprite = CameraZoomTest_layer:getChildByTag(40)
-- cam = sprite:getCamera()
-- cam:setEye(0, 0, -z)
end
local function CameraZoomTest_onEnterOrExit(tag)
if tag == "enter" then
cc.Director:getInstance():setProjection(cc.DIRECTOR_PROJECTION3_D)
CameraZoomTest_entry = scheduler:scheduleScriptFunc(CameraZoomTest_update, 0.0, false)
elseif tag == "exit" then
cc.Director:getInstance():setProjection(cc.DIRECTOR_PROJECTION_DEFAULT)
scheduler:unscheduleScriptEntry(CameraZoomTest_entry)
end
end
local function CameraZoomTest()
CameraZoomTest_layer = getBaseLayer()
z = 0
-- LEFT
local sprite = cc.Sprite:create(s_pPathGrossini)
CameraZoomTest_layer:addChild(sprite, 0)
sprite:setPosition(cc.p(s.width / 4 * 1, s.height / 2))
-- local cam = sprite:getCamera()
-- cam:setEye(0, 0, 415 / 2)
-- cam:setCenter(0, 0, 0)
-- CENTER
sprite = cc.Sprite:create(s_pPathGrossini)
CameraZoomTest_layer:addChild(sprite, 0, 40)
sprite:setPosition(cc.p(s.width / 4 * 2, s.height / 2))
-- RIGHT
sprite = cc.Sprite:create(s_pPathGrossini)
CameraZoomTest_layer:addChild(sprite, 0, 20)
sprite:setPosition(cc.p(s.width / 4 * 3, s.height / 2))
CameraZoomTest_layer:scheduleUpdateWithPriorityLua(CameraZoomTest_update, 0)
CameraZoomTest_layer:registerScriptHandler(CameraZoomTest_onEnterOrExit)
Helper.titleLabel:setString("Camera Zoom test")
return CameraZoomTest_layer
end
-----------------------------------
-- ConvertToNode
-----------------------------------
local ConvertToNode_layer = nil
local function ConvertToNode()
ConvertToNode_layer = getBaseLayer()
local rotate = cc.RotateBy:create(10, 360)
local action = cc.RepeatForever:create(rotate)
for i = 0, 2 do
local sprite = cc.Sprite:create("Images/grossini.png")
sprite:setPosition(cc.p(s.width / 4 * (i + 1), s.height / 2))
local point = cc.Sprite:create("Images/r1.png")
point:setScale(0.25)
point:setPosition(sprite:getPosition())
ConvertToNode_layer:addChild(point, 10, 100 + i)
if i == 0 then
sprite:setAnchorPoint(cc.p(0, 0))
elseif i == 1 then
sprite:setAnchorPoint(cc.p(0.5, 0.5))
elseif i == 2 then
sprite:setAnchorPoint(cc.p(1,1))
end
point:setPosition(sprite:getPosition())
local copy = action:clone()
sprite:runAction(copy)
ConvertToNode_layer:addChild(sprite, i)
end
local function onTouchesEnded(touches, event)
local count = table.getn(touches)
for i = 1, count do
local location = touches[i]:getLocation()
for j = 1,3 do
local node = ConvertToNode_layer:getChildByTag(100 + i - 1)
local p1, p2
p1 = node:convertToNodeSpaceAR(location)
p2 = node:convertToNodeSpace(location)
cclog("AR: x=" .. p1.x .. ", y=" .. p1.y .. " -- Not AR: x=" .. p2.x .. ", y=" .. p2.y)
end
end
end
local listener = cc.EventListenerTouchAllAtOnce:create()
listener:registerScriptHandler(onTouchesEnded,cc.Handler.EVENT_TOUCHES_ENDED )
local eventDispatcher = ConvertToNode_layer:getEventDispatcher()
eventDispatcher:addEventListenerWithSceneGraphPriority(listener, ConvertToNode_layer)
Helper.titleLabel:setString("Convert To Node Space")
Helper.subtitleLabel:setString("testing convertToNodeSpace / AR. Touch and see console")
return ConvertToNode_layer
end
-----------------------------------
-- NodeOpaqueTest
-----------------------------------
local function NodeOpaqueTest()
local layer = getBaseLayer()
for i = 0, 49 do
local background = cc.Sprite:create("Images/background1.png")
background:setBlendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA)
background:setAnchorPoint(cc.p(0, 0))
layer:addChild(background)
end
Helper.titleLabel:setString("Node Opaque Test")
Helper.subtitleLabel:setString("Node rendered with GL_BLEND disabled")
return layer
end
-----------------------------------
-- NodeNonOpaqueTest
-----------------------------------
local function NodeNonOpaqueTest()
local layer = getBaseLayer()
for i = 0, 49 do
background = cc.Sprite:create("Images/background1.jpg")
background:setBlendFunc(gl.ONE, gl.ZERO)
background:setAnchorPoint(cc.p(0, 0))
layer:addChild(background)
end
Helper.titleLabel:setString("Node Non Opaque Test")
Helper.subtitleLabel:setString("Node rendered with GL_BLEND enabled")
return layer
end
-----------------------------------
-- NodeGlobalZValueTest
-----------------------------------
local function NodeGlobalZValueTest()
local layer = getBaseLayer()
Helper.titleLabel:setString("Global Z Value")
Helper.subtitleLabel:setString("Center Sprite should change go from foreground to background")
local s = cc.Director:getInstance():getWinSize()
local zOrderSprite = nil
for i = 1,9 do
local parent = cc.Node:create()
local sprite = nil
if i == 5 then
sprite = cc.Sprite:create("Images/grossinis_sister2.png")
sprite:setGlobalZOrder(-1)
zOrderSprite = sprite
else
sprite = cc.Sprite:create("Images/grossinis_sister1.png")
end
parent:addChild(sprite)
layer:addChild(parent)
local w = sprite:getContentSize().width
sprite:setPosition(s.width/2 - w*0.7*(i - 6),s.height / 2)
end
local accum = 0
local function update(dt)
accum = accum + dt
if accum > 1 then
local z = zOrderSprite:getGlobalZOrder()
zOrderSprite:setGlobalZOrder(-z)
accum = 0
end
end
local function onNodeEvent(tag)
if tag == "exit" then
layer:unscheduleUpdate()
end
end
layer:scheduleUpdateWithPriorityLua(update,0)
layer:registerScriptHandler(onNodeEvent)
return layer
end
function CocosNodeTest()
local scene = cc.Scene:create()
Helper.createFunctionTable = {
CameraCenterTest,
Test2,
Test4,
Test5,
Test6,
StressTest1,
StressTest2,
NodeToWorld,
CameraOrbitTest,
-- CameraZoomTest,
ConvertToNode,
NodeOpaqueTest,
NodeNonOpaqueTest,
NodeGlobalZValueTest,
}
scene:addChild(CameraCenterTest())
scene:addChild(CreateBackMenuItem())
return scene
end
| mit |
EliHar/Pattern_recognition | torch1/install/share/lua/5.1/luarocks/path_cmd.lua | 18 | 2345 |
--- @module luarocks.path_cmd
-- Driver for the `luarocks path` command.
local path_cmd = {}
local util = require("luarocks.util")
local deps = require("luarocks.deps")
local cfg = require("luarocks.cfg")
path_cmd.help_summary = "Return the currently configured package path."
path_cmd.help_arguments = ""
path_cmd.help = [[
Returns the package path currently configured for this installation
of LuaRocks, formatted as shell commands to update LUA_PATH and LUA_CPATH.
--bin Adds the system path to the output
--append Appends the paths to the existing paths. Default is to prefix
the LR paths to the existing paths.
--lr-path Exports the Lua path (not formatted as shell command)
--lr-cpath Exports the Lua cpath (not formatted as shell command)
--lr-bin Exports the system path (not formatted as shell command)
On Unix systems, you may run:
eval `luarocks path`
And on Windows:
luarocks path > "%temp%\_lrp.bat" && call "%temp%\_lrp.bat" && del "%temp%\_lrp.bat"
]]
--- Driver function for "path" command.
-- @return boolean This function always succeeds.
function path_cmd.run(...)
local flags = util.parse_flags(...)
local deps_mode = deps.get_deps_mode(flags)
local lr_path, lr_cpath, lr_bin = cfg.package_paths()
local path_sep = cfg.export_path_separator
if flags["lr-path"] then
util.printout(util.remove_path_dupes(lr_path, ';'))
return true
elseif flags["lr-cpath"] then
util.printout(util.remove_path_dupes(lr_cpath, ';'))
return true
elseif flags["lr-bin"] then
util.printout(util.remove_path_dupes(lr_bin, path_sep))
return true
end
if flags["append"] then
lr_path = package.path .. ";" .. lr_path
lr_cpath = package.cpath .. ";" .. lr_cpath
lr_bin = os.getenv("PATH") .. path_sep .. lr_bin
else
lr_path = lr_path.. ";" .. package.path
lr_cpath = lr_cpath .. ";" .. package.cpath
lr_bin = lr_bin .. path_sep .. os.getenv("PATH")
end
util.printout(cfg.export_lua_path:format(util.remove_path_dupes(lr_path, ';')))
util.printout(cfg.export_lua_cpath:format(util.remove_path_dupes(lr_cpath, ';')))
if flags["bin"] then
util.printout(cfg.export_path:format(util.remove_path_dupes(lr_bin, path_sep)))
end
return true
end
return path_cmd
| mit |
Unrepentant-Atheist/mame | scripts/target/ldplayer/ldplayer.lua | 12 | 2168 | -- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
---------------------------------------------------------------------------
--
-- ldplayer.lua
--
-- Small makefile to build a standalone laserdisc player
--
---------------------------------------------------------------------------
--------------------------------------------------
-- specify required CPU cores (none)
--------------------------------------------------
CPUS["MCS48"] = true
CPUS["Z80"] = true
--------------------------------------------------
-- specify required sound cores
--------------------------------------------------
SOUNDS["WAVE"] = true
--------------------------------------------------
-- specify available video cores
--------------------------------------------------
--------------------------------------------------
-- specify available machine cores
--------------------------------------------------
MACHINES["LDV1000"] = true
MACHINES["LDPR8210"] = true
--------------------------------------------------
-- specify available bus cores
--
-- MIDI is here as dummy bus to allow libbus.a to
-- be created on OSX.
--------------------------------------------------
BUSES["MIDI"] = true
--------------------------------------------------
-- this is the list of driver libraries that
-- comprise MAME plus mamedriv.o which contains
-- the list of drivers
--------------------------------------------------
function createProjects_ldplayer_ldplayer(_target, _subtarget)
project ("drvldplayer")
targetsubdir(_target .."_" .. _subtarget)
kind (LIBTYPE)
uuid (os.uuid("drvldplayer"))
includedirs {
MAME_DIR .. "src/osd",
MAME_DIR .. "src/emu",
MAME_DIR .. "src/devices",
MAME_DIR .. "src/mame",
MAME_DIR .. "src/lib",
MAME_DIR .. "src/lib/util",
MAME_DIR .. "3rdparty",
GEN_DIR .. "mame/layout",
}
files{
MAME_DIR .. "src/emu/drivers/emudummy.cpp",
}
dependency {
{ MAME_DIR .. "src/emu/drivers/emudummy.cpp", GEN_DIR .. "ldplayer/layout/pr8210.lh" },
}
custombuildtask {
layoutbuildtask("ldplayer/layout", "pr8210"),
}
end
function linkProjects_ldplayer_ldplayer(_target, _subtarget)
links {
"drvldplayer",
}
end
| gpl-2.0 |
lynx-seu/skynet | examples/login/gated.lua | 57 | 2201 | local msgserver = require "snax.msgserver"
local crypt = require "crypt"
local skynet = require "skynet"
local loginservice = tonumber(...)
local server = {}
local users = {}
local username_map = {}
local internal_id = 0
-- login server disallow multi login, so login_handler never be reentry
-- call by login server
function server.login_handler(uid, secret)
if users[uid] then
error(string.format("%s is already login", uid))
end
internal_id = internal_id + 1
local id = internal_id -- don't use internal_id directly
local username = msgserver.username(uid, id, servername)
-- you can use a pool to alloc new agent
local agent = skynet.newservice "msgagent"
local u = {
username = username,
agent = agent,
uid = uid,
subid = id,
}
-- trash subid (no used)
skynet.call(agent, "lua", "login", uid, id, secret)
users[uid] = u
username_map[username] = u
msgserver.login(username, secret)
-- you should return unique subid
return id
end
-- call by agent
function server.logout_handler(uid, subid)
local u = users[uid]
if u then
local username = msgserver.username(uid, subid, servername)
assert(u.username == username)
msgserver.logout(u.username)
users[uid] = nil
username_map[u.username] = nil
skynet.call(loginservice, "lua", "logout",uid, subid)
end
end
-- call by login server
function server.kick_handler(uid, subid)
local u = users[uid]
if u then
local username = msgserver.username(uid, subid, servername)
assert(u.username == username)
-- NOTICE: logout may call skynet.exit, so you should use pcall.
pcall(skynet.call, u.agent, "lua", "logout")
end
end
-- call by self (when socket disconnect)
function server.disconnect_handler(username)
local u = username_map[username]
if u then
skynet.call(u.agent, "lua", "afk")
end
end
-- call by self (when recv a request from client)
function server.request_handler(username, msg)
local u = username_map[username]
return skynet.tostring(skynet.rawcall(u.agent, "client", msg))
end
-- call by self (when gate open)
function server.register_handler(name)
servername = name
skynet.call(loginservice, "lua", "register_gate", servername, skynet.self())
end
msgserver.start(server)
| mit |
pillowthief/moonridge | lib/jumper/search/bfs.lua | 9 | 1419 | -- Breadth-First search algorithm
if (...) then
-- Internalization
local t_remove = table.remove
local function breadth_first_search(finder, openList, node, endNode, clearance, toClear)
local neighbours = finder._grid:getNeighbours(node, finder._walkable, finder._allowDiagonal, finder._tunnel)
for i = 1,#neighbours do
local neighbour = neighbours[i]
if not neighbour._closed and not neighbour._opened then
local nClearance = neighbour._clearance[finder._walkable]
local pushThisNode = clearance and nClearance and (nClearance >= clearance)
if (clearance and pushThisNode) or (not clearance) then
openList[#openList+1] = neighbour
neighbour._opened = true
neighbour._parent = node
toClear[neighbour] = true
end
end
end
end
-- Calculates a path.
-- Returns the path from location `<startX, startY>` to location `<endX, endY>`.
return function (finder, startNode, endNode, clearance, toClear)
local openList = {} -- We'll use a FIFO queue (simple array)
openList[1] = startNode
startNode._opened = true
toClear[startNode] = true
local node
while (#openList > 0) do
node = openList[1]
t_remove(openList,1)
node._closed = true
if node == endNode then return node end
breadth_first_search(finder, openList, node, endNode, clearance, toClear)
end
return nil
end
end | mit |
rlcevg/Zero-K | scripts/gunshipaa.lua | 5 | 7773 | include "constants.lua"
--pieces
local base, middle, heading,
mbase, mfbeam, mrbeam, mhull, mwing, mwingtip, mjet, mrack, mmissile, mmissleflare,
rbase, rfbeam, rrbeam, rhull, rwing, rwingtip, rjet, rrack, rmissile, rmissleflare,
lbase, lfbeam, lrbeam, lhull, lwing, lwingtip, ljet, lrack, lmissile, lmissleflare = piece(
"base", "middle", "heading",
"mbase", "mfbeam", "mrbeam", "mhull", "mwing", "mwingtip", "mjet", "mrack", "mmissile", "mmissleflare",
"rbase", "rfbeam", "rrbeam", "rhull", "rwing", "rwingtip", "rjet", "rrack", "rmissile", "rmissleflare",
"lbase", "lfbeam", "lrbeam", "lhull", "lwing", "lwingtip", "ljet", "lrack", "lmissile", "lmissleflare")
local spGetUnitVelocity = Spring.GetUnitVelocity
local smokePiece = { base}
local root3on2 = math.sqrt(3)/2
local isActive = false
local shot = 0
local gun = {
[0] = {query = mmissleflare, missile = rmissile, rack = rrack, loaded = true},
[1] = {query = rmissleflare, missile = lmissile, rack = lrack, loaded = true},
[2] = {query = lmissleflare, missile = mmissile, rack = mrack, loaded = true},
}
local function restoreWings()
Turn(mhull, y_axis, math.rad(0),math.rad(15))
Turn(lhull, y_axis, math.rad(0),math.rad(15))
Turn(rhull, y_axis, math.rad(0),math.rad(15))
Turn(mhull, x_axis, math.rad(0),math.rad(12))
Turn(lhull, x_axis, math.rad(0),math.rad(12))
Turn(rhull, x_axis, math.rad(0),math.rad(12))
Turn(middle, x_axis, math.rad(0), math.rad(30))
Turn(middle, y_axis, math.rad(0), math.rad(30))
end
local function TiltBody()
while true do
if isActive then
local vx,_,vz = spGetUnitVelocity(unitID)
local speed = vx*vx + vz*vz
if speed > 5 then
local myHeading = Spring.GetUnitHeading(unitID)*headingToRad
local velHeading = Spring.GetHeadingFromVector(vx, vz)*headingToRad - myHeading
-- south is 0, increases anticlockwise
local px,_,pz = Spring.GetUnitPiecePosition(unitID, heading)
local curHeading = -Spring.GetHeadingFromVector(-px, -pz)*headingToRad
local diffHeading = (velHeading - curHeading + pi)%tau - pi -- keep in range [-pi,pi)
local newHeading
if diffHeading < -pi/3 then
Turn(lhull, x_axis, math.rad(speed*0.8),math.rad(24))
Turn(rhull, y_axis, -math.rad(speed),math.rad(30))
Turn(mhull, y_axis, math.rad(speed),math.rad(30))
newHeading = velHeading + 2*pi/3
Turn(middle, x_axis, -math.rad(2*speed*0.5), math.rad(30*0.5))
Turn(middle, y_axis, -math.rad(2*speed*root3on2), math.rad(30*root3on2))
Turn(lhull, y_axis, math.rad(0),math.rad(30))
Turn(mhull, x_axis, math.rad(0),math.rad(24))
Turn(rhull, x_axis, math.rad(0),math.rad(24))
elseif diffHeading < pi/3 then
Turn(mhull, x_axis, math.rad(speed*0.8),math.rad(24))
Turn(lhull, y_axis, -math.rad(speed),math.rad(30))
Turn(rhull, y_axis, math.rad(speed),math.rad(30))
newHeading = velHeading
Turn(middle, x_axis, math.rad(2*speed), math.rad(30))
Turn(middle, y_axis, math.rad(0), math.rad(30))
Turn(mhull, y_axis, math.rad(0),math.rad(30))
Turn(lhull, x_axis, math.rad(0),math.rad(24))
Turn(rhull, x_axis, math.rad(0),math.rad(24))
else
Turn(rhull, x_axis, math.rad(speed*0.8),math.rad(24))
Turn(mhull, y_axis, -math.rad(speed),math.rad(30))
Turn(lhull, y_axis, math.rad(speed),math.rad(30))
newHeading = velHeading - 2*pi/3
Turn(middle, x_axis, -math.rad(2*speed*0.5), math.rad(30*0.5))
Turn(middle, y_axis, math.rad(2*speed*root3on2), math.rad(30*root3on2))
Turn(rhull, y_axis, math.rad(0),math.rad(30))
Turn(mhull, x_axis, math.rad(0),math.rad(24))
Turn(lhull, x_axis, math.rad(0),math.rad(24))
end
Turn(base, z_axis, newHeading, math.rad(100))
Sleep(200)
else
restoreWings()
Sleep(10)
end
Sleep(10)
else
restoreWings()
Sleep(10)
end
end
end
local function activate()
isActive = true
Move(mhull, y_axis, -1, 2)
Move(rhull, y_axis, -1, 2)
Move(lhull, y_axis, -1, 2)
Move(mhull, z_axis, -2, 1)
Move(rhull, z_axis, -2, 1)
Move(lhull, z_axis, -2, 1)
--Move(mrack, y_axis, -2.5, 5)
--Move(rrack, y_axis, -2.5, 5)
--Move(lrack, y_axis, -2.5, 5)
end
local function deactivate()
isActive = false
Move(mhull, y_axis, -5, 2)
Move(rhull, y_axis, -5, 2)
Move(lhull, y_axis, -5, 2)
Move(mhull, z_axis, 0, 1)
Move(rhull, z_axis, 0, 1)
Move(lhull, z_axis, 0, 1)
--Move(mrack, y_axis, 5, 5)
--Move(rrack, y_axis, 5, 5)
--Move(lrack, y_axis, 5, 5)
end
function script.Activate()
activate()
end
function script.StopMoving()
deactivate()
end
function script.Create()
Move(mhull, y_axis, -5)
Move(rhull, y_axis, -5)
Move(lhull, y_axis, -5)
Turn(rbase, z_axis, math.rad(120))
Turn(lbase, z_axis, math.rad(-120))
Turn(base, x_axis, math.rad(-90))
Move(base, y_axis, 22)
Move(mbase, z_axis, 2.9)
Move(rbase, z_axis, 2.9)
Move(lbase, z_axis, 2.9)
Move(mhull, y_axis, -5)
Move(rhull, y_axis, -5)
Move(lhull, y_axis, -5)
Move(mrack, y_axis, -4)
Move(rrack, y_axis, -4)
Move(lrack, y_axis, -4)
Move(mrack, z_axis, -4)
Move(rrack, z_axis, -4)
Move(lrack, z_axis, -4)
StartThread(SmokeUnit, smokePiece)
StartThread(TiltBody)
end
function script.QueryWeapon(num)
return gun[shot].query
end
function script.AimFromWeapon(num)
return base
end
function script.AimWeapon(num, heading, pitch)
return true
end
local function reload(num)
gun[num].loaded = false
local adjustedDuration = 0
while adjustedDuration < 5 do
local stunnedOrInbuild = Spring.GetUnitIsStunned(unitID)
local reloadMult = (stunnedOrInbuild and 0) or (Spring.GetUnitRulesParam(unitID, "totalReloadSpeedChange") or 1)
adjustedDuration = adjustedDuration + reloadMult
Sleep(1000)
end
Show(gun[num].missile)
Move(gun[num].rack, y_axis, -4, 2)
while adjustedDuration < 10 do
local stunnedOrInbuild = Spring.GetUnitIsStunned(unitID)
local reloadMult = (stunnedOrInbuild and 0) or (Spring.GetUnitRulesParam(unitID, "totalReloadSpeedChange") or 1)
adjustedDuration = adjustedDuration + reloadMult
Sleep(1000)
end
gun[num].loaded = true
end
function script.BlockShot(num, targetID)
if gun[shot].loaded then
return GG.OverkillPrevention_CheckBlock(unitID, targetID, 200.1, 35)
end
return true
end
function script.Shot(num)
Hide(gun[shot].missile)
Move(gun[shot].rack, y_axis, 5, 2)
StartThread(reload,shot)
shot = (shot + 1)%3
end
function script.Killed(recentDamage, maxHealth)
local severity = recentDamage/maxHealth
if severity <= .25 then
Explode(middle, sfxExplode)
Explode(mhull, sfxNone)
Explode(rhull, sfxNone)
Explode(lhull, sfxNone)
return 1
elseif severity <= .5 or ((Spring.GetUnitMoveTypeData(unitID).aircraftState or "") == "crashing") then
Explode(middle, sfxExplode)
Explode(mhull, sfxExplode)
Explode(rhull, sfxExplode)
Explode(lhull, sfxExplode)
Explode(mwing, sfxExplode + sfxFall)
Explode(rwing, sfxExplode + sfxFall)
Explode(lwing, sfxExplode + sfxFall)
return 1
elseif severity <= .75 then
Explode(middle, sfxExplode)
Explode(mhull, sfxExplode + sfxFall)
Explode(rhull, sfxExplode + sfxFall)
Explode(lhull, sfxExplode + sfxFall)
Explode(mwing, sfxExplode + sfxFall + sfxSmoke)
Explode(rwing, sfxExplode + sfxFall + sfxSmoke)
Explode(lwing, sfxExplode + sfxFall + sfxSmoke)
return 1
else
Explode(middle, sfxExplode + sfxFall)
Explode(mhull, sfxExplode + sfxFall + sfxShatter)
Explode(rhull, sfxExplode + sfxFall + sfxShatter)
Explode(lhull, sfxExplode + sfxFall + sfxShatter)
Explode(mwing, sfxExplode + sfxFall + sfxSmoke + sfxFire)
Explode(rwing, sfxExplode + sfxFall + sfxSmoke + sfxFire)
Explode(lwing, sfxExplode + sfxFall + sfxSmoke + sfxFire)
return 2
end
end
| gpl-2.0 |
EliHar/Pattern_recognition | torch1/extra/argcheck/benchmark/torch9luaffi.lua | 3 | 3953 | local argcheck = require 'argcheck'
local ffi = require 'ffi'
local env = require 'argcheck.env'
local SZ = tonumber(arg[1])
local N = tonumber(arg[2])
local scale = tonumber(arg[3]) or 1
local dbg = arg[4] == '1'
local named = arg[5] == '1'
if named then
print('warning: using named arguments!')
end
function env.istype(obj, typename)
if type(obj) == 'userdata' then
if typename == 'torch.DoubleTensor' then
return true
else
return false
end
end
return type(obj) == typename
end
ffi.cdef[[
typedef struct THLongStorage THLongStorage;
THLongStorage* THLongStorage_newWithSize2(long, long);
void THLongStorage_free(THLongStorage *storage);
typedef struct THGenerator THGenerator;
THGenerator* THGenerator_new();
void THRandom_manualSeed(THGenerator *_generator, unsigned long the_seed_);
typedef struct THDoubleTensor THDoubleTensor;
THDoubleTensor *THDoubleTensor_new(void);
void THDoubleTensor_free(THDoubleTensor *self);
void THDoubleTensor_rand(THDoubleTensor *r_, THGenerator *_generator, THLongStorage *size);
void THDoubleTensor_add(THDoubleTensor *r_, THDoubleTensor *t, double value);
void THDoubleTensor_cadd(THDoubleTensor *r_, THDoubleTensor *t, double value, THDoubleTensor *src);
double THDoubleTensor_normall(THDoubleTensor *t, double value);
]]
local status, C = pcall(ffi.load, ffi.os == 'OSX' and 'libTH.dylib' or 'libTH.so')
if not status then
error('please specify path to libTH in your (DY)LD_LIBRARY_PATH')
end
local DoubleTensor = {}
function DoubleTensor_new()
local self = C.THDoubleTensor_new()
ffi.gc(self, C.THDoubleTensor_free)
return self
end
function DoubleTensor:norm(l)
l = l or 2
return tonumber(C.THDoubleTensor_normall(self, l))
end
DoubleTensor_mt = {__index=DoubleTensor, __new=DoubleTensor_new}
DoubleTensor = ffi.metatype('THDoubleTensor', DoubleTensor_mt)
local _gen = C.THGenerator_new()
C.THRandom_manualSeed(_gen, 1111)
local function rand(a, b)
local size = C.THLongStorage_newWithSize2(a, b)
local self = DoubleTensor()
C.THDoubleTensor_rand(self, _gen, size)
C.THLongStorage_free(size)
return self
end
local add
local dotgraph
for _, RealTensor in ipairs{'torch.ByteTensor', 'torch.ShortTensor', 'torch.FloatTensor',
'torch.LongTensor', 'torch.IntTensor', 'torch.CharTensor',
'torch.DoubleTensor'} do
add = argcheck{
{name="res", type=RealTensor, opt=true},
{name="src", type=RealTensor},
{name="value", type="number"},
call =
function(res, src, value)
res = res or DoubleTensor()
C.THDoubleTensor_add(res, src, value)
return res
end
}
add, dotgraph = argcheck{
debug=dbg,
overload = add,
{name="res", type=RealTensor, opt=true},
{name="src1", type=RealTensor},
{name="value", type="number", default=1},
{name="src2", type=RealTensor},
call =
function(res, src1, value, src2)
res = res or torch.DoubleTensor()
C.THDoubleTensor_cadd(res, src1, value, src2)
return res
end
}
end
if dotgraph then
local f = io.open('argtree.dot', 'w')
f:write(dotgraph)
f:close()
end
local x = rand(SZ, SZ)
local y = rand(SZ, SZ)
print('x', x:norm())
print('y', x:norm())
print('running')
if named then
local clk = os.clock()
if scale == 1 then
for i=1,N do
add{res=y, src=x, value=5}
add{res=y, src1=x, src2=y}
end
else
for i=1,N do
add{res=y, src=x, value=5}
add{res=y, src1=x, value=scale, src2=y}
end
end
print('time (s)', os.clock()-clk)
else
local clk = os.clock()
if scale == 1 then
for i=1,N do
add(y, x, 5)
add(y, x, y)
end
else
for i=1,N do
add(y, x, 5)
add(y, x, scale, y)
end
end
print('time (s)', os.clock()-clk)
end
print('x', x:norm())
print('y', y:norm())
| mit |
AOKP/external_skia | tools/lua/scrape.lua | 145 | 2246 | function tostr(t)
local str = ""
for k, v in next, t do
if #str > 0 then
str = str .. ", "
end
if type(k) == "number" then
str = str .. "[" .. k .. "] = "
else
str = str .. tostring(k) .. " = "
end
if type(v) == "table" then
str = str .. "{ " .. tostr(v) .. " }"
else
str = str .. tostring(v)
end
end
return str
end
local total = {} -- accumulate() stores its data in here
local canvas -- holds the current canvas (from startcanvas())
--[[
startcanvas() is called at the start of each picture file, passing the
canvas that we will be drawing into, and the name of the file.
Following this call, there will be some number of calls to accumulate(t)
where t is a table of parameters that were passed to that draw-op.
t.verb is a string holding the name of the draw-op (e.g. "drawRect")
when a given picture is done, we call endcanvas(canvas, fileName)
]]
function sk_scrape_startcanvas(c, fileName)
canvas = c
end
--[[
Called when the current canvas is done drawing.
]]
function sk_scrape_endcanvas(c, fileName)
canvas = nil
end
--[[
Called with the parameters to each canvas.draw call, where canvas is the
current canvas as set by startcanvas()
]]
function sk_scrape_accumulate(t)
local n = total[t.verb] or 0
total[t.verb] = n + 1
if false and t.verb == "drawRect" and t.paint:isAntiAlias() then
local r = t.rect;
local p = t.paint;
local c = p:getColor();
print("drawRect ", tostr(r), tostr(c), "\n")
end
if false and t.verb == "drawPath" then
local pred, r1, r2, d1, d2 = t.path:isNestedRects()
if pred then
print("drawRect_Nested", tostr(r1), tostr(r2), d1, d2)
else
print("drawPath", "isEmpty", tostring(t.path:isEmpty()),
"isRect", tostring(t.path:isRect()), tostr(t.path:getBounds()))
end
end
end
--[[
lua_pictures will call this function after all of the pictures have been
"accumulated".
]]
function sk_scrape_summarize()
io.write("\n{ ", tostr(total), " }\n")
end
| bsd-3-clause |
stas2z/openwrt-witi | package/luci/applications/luci-app-radicale/luasrc/model/cbi/radicale.lua | 39 | 27698 | -- Copyright 2015 Christian Schoenebeck <christian dot schoenebeck at gmail dot com>
-- Licensed under the Apache License, Version 2.0
local NXFS = require("nixio.fs")
local DISP = require("luci.dispatcher")
local DTYP = require("luci.cbi.datatypes")
local HTTP = require("luci.http")
local UTIL = require("luci.util")
local UCI = require("luci.model.uci")
local SYS = require("luci.sys")
local TOOLS = require("luci.controller.radicale") -- this application's controller and multiused functions
-- #################################################################################################
-- takeover arguments if any -- ################################################
-- then show/edit selected file
if arg[1] then
local argument = arg[1]
local filename = ""
-- SimpleForm ------------------------------------------------
local ft = SimpleForm("_text")
ft.title = TOOLS.app_title_back()
ft.description = TOOLS.app_description()
ft.redirect = DISP.build_url("admin", "services", "radicale") .. "#cbi-radicale-" .. argument
if argument == "logger" then
ft.reset = false
ft.submit = translate("Reload")
local uci = UCI.cursor()
filename = uci:get("radicale", "logger", "file_path") or "/var/log/radicale"
uci:unload("radicale")
filename = filename .. "/radicale"
elseif argument == "auth" then
ft.submit = translate("Save")
filename = "/etc/radicale/users"
elseif argument == "rights" then
ft.submit = translate("Save")
filename = "/etc/radicale/rights"
else
error("Invalid argument given as section")
end
if argument ~= "logger" and not NXFS.access(filename) then
NXFS.writefile(filename, "")
end
-- SimpleSection ---------------------------------------------
local fs = ft:section(SimpleSection)
if argument == "logger" then
fs.title = translate("Log-file Viewer")
fs.description = translate("Please press [Reload] button below to reread the file.")
elseif argument == "auth" then
fs.title = translate("Authentication")
fs.description = translate("Place here the 'user:password' pairs for your users which should have access to Radicale.")
.. [[<br /><strong>]]
.. translate("Keep in mind to use the correct hashing algorithm !")
.. [[</strong>]]
else -- rights
fs.title = translate("Rights")
fs.description = translate("Authentication login is matched against the 'user' key, "
.. "and collection's path is matched against the 'collection' key.") .. " "
.. translate("You can use Python's ConfigParser interpolation values %(login)s and %(path)s.") .. " "
.. translate("You can also get groups from the user regex in the collection with {0}, {1}, etc.")
.. [[<br />]]
.. translate("For example, for the 'user' key, '.+' means 'authenticated user'" .. " "
.. "and '.*' means 'anybody' (including anonymous users).")
.. [[<br />]]
.. translate("Section names are only used for naming the rule.")
.. [[<br />]]
.. translate("Leading or ending slashes are trimmed from collection's path.")
end
-- TextValue -------------------------------------------------
local tt = fs:option(TextValue, "_textvalue")
tt.rmempty = true
if argument == "logger" then
tt.readonly = true
tt.rows = 30
function tt.write()
HTTP.redirect(DISP.build_url("admin", "services", "radicale", "edit", argument))
end
else
tt.rows = 15
function tt.write(self, section, value)
if not value then value = "" end
NXFS.writefile(filename, value:gsub("\r\n", "\n"))
return true --HTTP.redirect(DISP.build_url("admin", "services", "radicale", "edit") .. "#cbi-radicale-" .. argument)
end
end
function tt.cfgvalue()
return NXFS.readfile(filename) or
string.format(translate("File '%s' not found !"), filename)
end
return ft
end
-- #################################################################################################
-- Error handling if not installed or wrong version -- #########################
if not TOOLS.service_ok() then
local f = SimpleForm("_no_config")
f.title = TOOLS.app_title_main()
f.description = TOOLS.app_description()
f.submit = false
f.reset = false
local s = f:section(SimpleSection)
local v = s:option(DummyValue, "_update_needed")
v.rawhtml = true
if TOOLS.service_installed() == "0" then
v.value = [[<h3><strong><br /><font color="red"> ]]
.. translate("Software package '" .. TOOLS.service_name() .. "' is not installed.")
.. [[</font><br /><br /> ]]
.. translate("required") .. [[: ]] .. TOOLS.service_name() .. [[ ]] .. TOOLS.service_required()
.. [[<br /><br /> ]]
.. [[<a href="]] .. DISP.build_url("admin", "system", "packages") ..[[">]]
.. translate("Please install current version !")
.. [[</a><br /> </strong></h3>]]
else
v.value = [[<h3><strong><br /><font color="red"> ]]
.. translate("Software package '" .. TOOLS.service_name() .. "' is outdated.")
.. [[</font><br /><br /> ]]
.. translate("installed") .. [[: ]] .. TOOLS.service_name() .. [[ ]] .. TOOLS.service_installed()
.. [[<br /> ]]
.. translate("required") .. [[: ]] .. TOOLS.service_name() .. [[ ]] .. TOOLS.service_required()
.. [[<br /><br /> ]]
.. [[<a href="]] .. DISP.build_url("admin", "system", "packages") ..[[">]]
.. translate("Please update to current version !")
.. [[</a><br /> </strong></h3>]]
end
return f
end
-- #################################################################################################
-- Error handling if no config, create an empty one -- #########################
if not NXFS.access("/etc/config/radicale") then
NXFS.writefile("/etc/config/radicale", "")
end
-- cbi-map -- ##################################################################
local m = Map("radicale")
m.title = TOOLS.app_title_main()
m.description = TOOLS.app_description()
function m.commit_handler(self)
if self.changed then -- changes ?
os.execute("/etc/init.d/radicale reload &") -- reload configuration
end
end
-- cbi-section "System" -- #####################################################
local sys = m:section( NamedSection, "_system" )
sys.title = translate("System")
sys.description = nil
function sys.cfgvalue(self, section)
return "_dummysection"
end
-- start/stop button -----------------------------------------------------------
local btn = sys:option(DummyValue, "_startstop")
btn.template = "radicale/btn_startstop"
btn.inputstyle = nil
btn.rmempty = true
btn.title = translate("Start / Stop")
btn.description = translate("Start/Stop Radicale server")
function btn.cfgvalue(self, section)
local pid = TOOLS.get_pid(true)
if pid > 0 then
btn.inputtitle = "PID: " .. pid
btn.inputstyle = "reset"
btn.disabled = false
else
btn.inputtitle = translate("Start")
btn.inputstyle = "apply"
btn.disabled = false
end
return true
end
-- enabled ---------------------------------------------------------------------
local ena = sys:option(Flag, "_enabled")
ena.title = translate("Auto-start")
ena.description = translate("Enable/Disable auto-start of Radicale on system start-up and interface events")
ena.orientation = "horizontal" -- put description under the checkbox
ena.rmempty = false -- we need write
function ena.cfgvalue(self, section)
return (SYS.init.enabled("radicale")) and "1" or "0"
end
function ena.write(self, section, value)
if value == "1" then
return SYS.init.enable("radicale")
else
return SYS.init.disable("radicale")
end
end
-- cbi-section "Server" -- #####################################################
local srv = m:section( NamedSection, "server", "setting" )
srv.title = translate("Server")
srv.description = nil
function srv.cfgvalue(self, section)
if not self.map:get(section) then -- section might not exist
self.map:set(section, nil, self.sectiontype)
end
return self.map:get(section)
end
-- hosts -----------------------------------------------------------------------
local sh = srv:option( DynamicList, "hosts" )
sh.title = translate("Address:Port")
sh.description = translate("'Hostname:Port' or 'IPv4:Port' or '[IPv6]:Port' Radicale should listen on")
.. [[<br /><strong>]]
.. translate("Port numbers below 1024 (Privileged ports) are not supported")
.. [[</strong>]]
sh.placeholder = "0.0.0.0:5232"
sh.rmempty = true
-- realm -----------------------------------------------------------------------
local alm = srv:option( Value, "realm" )
alm.title = translate("Logon message")
alm.description = translate("Message displayed in the client when a password is needed.")
alm.default = "Radicale - Password Required"
alm.rmempty = false
function alm.parse(self, section)
AbstractValue.parse(self, section, "true") -- otherwise unspecific validate error
end
function alm.validate(self, value)
if value then
return value
else
return self.default
end
end
function alm.write(self, section, value)
if value ~= self.default then
return self.map:set(section, self.option, value)
else
return self.map:del(section, self.option)
end
end
-- ssl -------------------------------------------------------------------------
local ssl = srv:option( Flag, "ssl" )
ssl.title = translate("Enable HTTPS")
ssl.description = nil
ssl.rmempty = false
function ssl.parse(self, section)
TOOLS.flag_parse(self, section)
end
function ssl.write(self, section, value)
if value == "0" then -- delete all if not https enabled
self.map:del(section, "protocol") -- protocol
self.map:del(section, "certificate") -- certificate
self.map:del(section, "key") -- private key
self.map:del(section, "ciphers") -- ciphers
return self.map:del(section, self.option)
else
return self.map:set(section, self.option, value)
end
end
-- protocol --------------------------------------------------------------------
local prt = srv:option( ListValue, "protocol" )
prt.title = translate("SSL Protocol")
prt.description = translate("'AUTO' selects the highest protocol version that client and server support.")
prt.widget = "select"
prt.default = "PROTOCOL_SSLv23"
prt:depends ("ssl", "1")
prt:value ("PROTOCOL_SSLv23", translate("AUTO"))
prt:value ("PROTOCOL_SSLv2", "SSL v2")
prt:value ("PROTOCOL_SSLv3", "SSL v3")
prt:value ("PROTOCOL_TLSv1", "TLS v1")
prt:value ("PROTOCOL_TLSv1_1", "TLS v1.1")
prt:value ("PROTOCOL_TLSv1_2", "TLS v1.2")
-- certificate -----------------------------------------------------------------
local crt = srv:option( Value, "certificate" )
crt.title = translate("Certificate file")
crt.description = translate("Full path and file name of certificate")
crt.placeholder = "/etc/radicale/ssl/server.crt"
crt.rmempty = false -- force validate/write
crt:depends ("ssl", "1")
function crt.parse(self, section)
local _ssl = ssl:formvalue(section) or "0"
local novld = (_ssl == "0")
AbstractValue.parse(self, section, novld) -- otherwise unspecific validate error
end
function crt.validate(self, value)
local _ssl = ssl:formvalue(srv.section) or "0"
if _ssl == "0" then
return "" -- ignore if not https enabled
end
if value then -- otherwise errors in datatype check
if DTYP.file(value) then
return value
else
return nil, self.title .. " - " .. translate("File not found !")
end
else
return nil, self.title .. " - " .. translate("Path/File required !")
end
end
function crt.write(self, section, value)
if not value or #value == 0 then
return self.map:del(section, self.option)
else
return self.map:set(section, self.option, value)
end
end
-- key -------------------------------------------------------------------------
local key = srv:option( Value, "key" )
key.title = translate("Private key file")
key.description = translate("Full path and file name of private key")
key.placeholder = "/etc/radicale/ssl/server.key"
key.rmempty = false -- force validate/write
key:depends ("ssl", "1")
function key.parse(self, section)
local _ssl = ssl:formvalue(section) or "0"
local novld = (_ssl == "0")
AbstractValue.parse(self, section, novld) -- otherwise unspecific validate error
end
function key.validate(self, value)
local _ssl = ssl:formvalue(srv.section) or "0"
if _ssl == "0" then
return "" -- ignore if not https enabled
end
if value then -- otherwise errors in datatype check
if DTYP.file(value) then
return value
else
return nil, self.title .. " - " .. translate("File not found !")
end
else
return nil, self.title .. " - " .. translate("Path/File required !")
end
end
function key.write(self, section, value)
if not value or #value == 0 then
return self.map:del(section, self.option)
else
return self.map:set(section, self.option, value)
end
end
-- ciphers ---------------------------------------------------------------------
--local cip = srv:option( Value, "ciphers" )
--cip.title = translate("Ciphers")
--cip.description = translate("OPTIONAL: See python's ssl module for available ciphers")
--cip.rmempty = true
--cip:depends ("ssl", "1")
-- cbi-section "Authentication" -- #############################################
local aut = m:section( NamedSection, "auth", "setting" )
aut.title = translate("Authentication")
aut.description = translate("Authentication method to allow access to Radicale server.")
function aut.cfgvalue(self, section)
if not self.map:get(section) then -- section might not exist
self.map:set(section, nil, self.sectiontype)
end
return self.map:get(section)
end
-- type -----------------------------------------------------------------------
local aty = aut:option( ListValue, "type" )
aty.title = translate("Authentication method")
aty.description = nil
aty.widget = "select"
aty.default = "None"
aty:value ("None", translate("None"))
aty:value ("htpasswd", translate("htpasswd file"))
--aty:value ("IMAP", "IMAP") -- The IMAP authentication module relies on the imaplib module.
--aty:value ("LDAP", "LDAP") -- The LDAP authentication module relies on the python-ldap module.
--aty:value ("PAM", "PAM") -- The PAM authentication module relies on the python-pam module.
--aty:value ("courier", "courier")
--aty:value ("HTTP", "HTTP") -- The HTTP authentication module relies on the requests module
--aty:value ("remote_user", "remote_user")
--aty:value ("custom", translate("custom"))
function aty.write(self, section, value)
if value ~= "htpasswd" then
self.map:del(section, "htpasswd_encryption")
elseif value ~= "IMAP" then
self.map:del(section, "imap_hostname")
self.map:del(section, "imap_port")
self.map:del(section, "imap_ssl")
end
if value ~= self.default then
return self.map:set(section, self.option, value)
else
return self.map:del(section, self.option)
end
end
-- htpasswd_encryption ---------------------------------------------------------
local hte = aut:option( ListValue, "htpasswd_encryption" )
hte.title = translate("Encryption method")
hte.description = nil
hte.widget = "select"
hte.default = "crypt"
hte:depends ("type", "htpasswd")
hte:value ("crypt", translate("crypt"))
hte:value ("plain", translate("plain"))
hte:value ("sha1", translate("SHA-1"))
hte:value ("ssha", translate("salted SHA-1"))
-- htpasswd_file (dummy) -------------------------------------------------------
local htf = aut:option( DummyValue, "_htf" )
htf.title = translate("htpasswd file")
htf.description = [[<strong>]]
.. translate("Read only!")
.. [[</strong> ]]
.. translate("Radicale uses '/etc/radicale/users' as htpasswd file.")
.. [[<br /><a href="]]
.. DISP.build_url("admin", "services", "radicale", "edit") .. [[/auth]]
.. [[">]]
.. translate("To edit the file follow this link!")
.. [[</a>]]
htf.keylist = {} -- required by template
htf.vallist = {} -- required by template
htf.template = "radicale/ro_value"
htf.readonly = true
htf:depends ("type", "htpasswd")
function htf.cfgvalue()
return "/etc/radicale/users"
end
-- cbi-section "Rights" -- #####################################################
local rig = m:section( NamedSection, "rights", "setting" )
rig.title = translate("Rights")
rig.description = translate("Control the access to data collections.")
function rig.cfgvalue(self, section)
if not self.map:get(section) then -- section might not exist
self.map:set(section, nil, self.sectiontype)
end
return self.map:get(section)
end
-- type -----------------------------------------------------------------------
local rty = rig:option( ListValue, "type" )
rty.title = translate("Rights backend")
rty.description = nil
rty.widget = "select"
rty.default = "None"
rty:value ("None", translate("Full access for everybody (including anonymous)"))
rty:value ("authenticated", translate("Full access for authenticated Users") )
rty:value ("owner_only", translate("Full access for Owner only") )
rty:value ("owner_write", translate("Owner allow write, authenticated users allow read") )
rty:value ("from_file", translate("Rights are based on a regexp-based file") )
--rty:value ("custom", "Custom handler")
function rty.write(self, section, value)
if value ~= "custom" then
self.map:del(section, "custom_handler")
end
if value ~= self.default then
return self.map:set(section, self.option, value)
else
return self.map:del(section, self.option)
end
end
-- from_file (dummy) -----------------------------------------------------------
local rtf = rig:option( DummyValue, "_rtf" )
rtf.title = translate("RegExp file")
rtf.description = [[<strong>]]
.. translate("Read only!")
.. [[</strong> ]]
.. translate("Radicale uses '/etc/radicale/rights' as regexp-based file.")
.. [[<br /><a href="]]
.. DISP.build_url("admin", "services", "radicale", "edit") .. [[/rights]]
.. [[">]]
.. translate("To edit the file follow this link!")
.. [[</a>]]
rtf.keylist = {} -- required by template
rtf.vallist = {} -- required by template
rtf.template = "radicale/ro_value"
rtf.readonly = true
rtf:depends ("type", "from_file")
function rtf.cfgvalue()
return "/etc/radicale/rights"
end
-- cbi-section "Storage" -- ####################################################
local sto = m:section( NamedSection, "storage", "setting" )
sto.title = translate("Storage")
sto.description = nil
function sto.cfgvalue(self, section)
if not self.map:get(section) then -- section might not exist
self.map:set(section, nil, self.sectiontype)
end
return self.map:get(section)
end
-- type -----------------------------------------------------------------------
local sty = sto:option( ListValue, "type" )
sty.title = translate("Storage backend")
sty.description = translate("WARNING: Only 'File-system' is documented and tested by Radicale development")
sty.widget = "select"
sty.default = "filesystem"
sty:value ("filesystem", translate("File-system"))
--sty:value ("multifilesystem", translate("") )
--sty:value ("database", translate("Database") )
--sty:value ("custom", translate("Custom") )
function sty.write(self, section, value)
if value ~= "filesystem" then
self.map:del(section, "filesystem_folder")
end
if value ~= self.default then
return self.map:set(section, self.option, value)
else
return self.map:del(section, self.option)
end
end
--filesystem_folder ------------------------------------------------------------
local sfi = sto:option( Value, "filesystem_folder" )
sfi.title = translate("Directory")
sfi.description = nil
sfi.default = "/srv/radicale"
sfi.rmempty = false -- force validate/write
sfi:depends ("type", "filesystem")
function sfi.parse(self, section)
local _typ = sty:formvalue(sto.section) or ""
local novld = (_typ ~= "filesystem")
AbstractValue.parse(self, section, novld) -- otherwise unspecific validate error
end
function sfi.validate(self, value)
local _typ = sty:formvalue(sto.section) or ""
if _typ ~= "filesystem" then
return "" -- ignore if not htpasswd
end
if value then -- otherwise errors in datatype check
if DTYP.directory(value) then
return value
else
return nil, self.title .. " - " .. translate("Directory not exists/found !")
end
else
return nil, self.title .. " - " .. translate("Directory required !")
end
end
-- cbi-section "Logging" -- ####################################################
local log = m:section( NamedSection, "logger", "logging" )
log.title = translate("Logging")
log.description = nil
function log.cfgvalue(self, section)
if not self.map:get(section) then -- section might not exist
self.map:set(section, nil, self.sectiontype)
end
return self.map:get(section)
end
-- console_level ---------------------------------------------------------------
local lco = log:option( ListValue, "console_level" )
lco.title = translate("Console Log level")
lco.description = nil
lco.widget = "select"
lco.default = "ERROR"
lco:value ("DEBUG", translate("Debug"))
lco:value ("INFO", translate("Info") )
lco:value ("WARNING", translate("Warning") )
lco:value ("ERROR", translate("Error") )
lco:value ("CRITICAL", translate("Critical") )
function lco.write(self, section, value)
if value ~= self.default then
return self.map:set(section, self.option, value)
else
return self.map:del(section, self.option)
end
end
-- syslog_level ----------------------------------------------------------------
local lsl = log:option( ListValue, "syslog_level" )
lsl.title = translate("Syslog Log level")
lsl.description = nil
lsl.widget = "select"
lsl.default = "WARNING"
lsl:value ("DEBUG", translate("Debug"))
lsl:value ("INFO", translate("Info") )
lsl:value ("WARNING", translate("Warning") )
lsl:value ("ERROR", translate("Error") )
lsl:value ("CRITICAL", translate("Critical") )
function lsl.write(self, section, value)
if value ~= self.default then
return self.map:set(section, self.option, value)
else
return self.map:del(section, self.option)
end
end
-- file_level ------------------------------------------------------------------
local lfi = log:option( ListValue, "file_level" )
lfi.title = translate("File Log level")
lfi.description = nil
lfi.widget = "select"
lfi.default = "INFO"
lfi:value ("DEBUG", translate("Debug"))
lfi:value ("INFO", translate("Info") )
lfi:value ("WARNING", translate("Warning") )
lfi:value ("ERROR", translate("Error") )
lfi:value ("CRITICAL", translate("Critical") )
function lfi.write(self, section, value)
if value ~= self.default then
return self.map:set(section, self.option, value)
else
return self.map:del(section, self.option)
end
end
-- file_path -------------------------------------------------------------------
local lfp = log:option( Value, "file_path" )
lfp.title = translate("Log-file directory")
lfp.description = translate("Directory where the rotating log-files are stored")
.. [[<br /><a href="]]
.. DISP.build_url("admin", "services", "radicale", "edit") .. [[/logger]]
.. [[">]]
.. translate("To view latest log file follow this link!")
.. [[</a>]]
lfp.default = "/var/log/radicale"
function lfp.write(self, section, value)
if value ~= self.default then
return self.map:set(section, self.option, value)
else
return self.map:del(section, self.option)
end
end
-- file_maxbytes ---------------------------------------------------------------
local lmb = log:option( Value, "file_maxbytes" )
lmb.title = translate("Log-file size")
lmb.description = translate("Maximum size of each rotation log-file.")
.. [[<br /><strong>]]
.. translate("Setting this parameter to '0' will disable rotation of log-file.")
.. [[</strong>]]
lmb.default = "8196"
lmb.rmempty = false
function lmb.validate(self, value)
if value then -- otherwise errors in datatype check
if DTYP.uinteger(value) then
return value
else
return nil, self.title .. " - " .. translate("Value is not an Integer >= 0 !")
end
else
return nil, self.title .. " - " .. translate("Value required ! Integer >= 0 !")
end
end
function lmb.write(self, section, value)
if value ~= self.default then
return self.map:set(section, self.option, value)
else
return self.map:del(section, self.option)
end
end
-- file_backupcount ------------------------------------------------------------
local lbc = log:option( Value, "file_backupcount" )
lbc.title = translate("Log-backup Count")
lbc.description = translate("Number of backup files of log to create.")
.. [[<br /><strong>]]
.. translate("Setting this parameter to '0' will disable rotation of log-file.")
.. [[</strong>]]
lbc.default = "1"
lbc.rmempty = false
function lbc.validate(self, value)
if value then -- otherwise errors in datatype check
if DTYP.uinteger(value) then
return value
else
return nil, self.title .. " - " .. translate("Value is not an Integer >= 0 !")
end
else
return nil, self.title .. " - " .. translate("Value required ! Integer >= 0 !")
end
end
function lbc.write(self, section, value)
if value ~= self.default then
return self.map:set(section, self.option, value)
else
return self.map:del(section, self.option)
end
end
-- cbi-section "Encoding" -- ###################################################
local enc = m:section( NamedSection, "encoding", "setting" )
enc.title = translate("Encoding")
enc.description = translate("Change here the encoding Radicale will use instead of 'UTF-8' "
.. "for responses to the client and/or to store data inside collections.")
function enc.cfgvalue(self, section)
if not self.map:get(section) then -- section might not exist
self.map:set(section, nil, self.sectiontype)
end
return self.map:get(section)
end
-- request ---------------------------------------------------------------------
local enr = enc:option( Value, "request" )
enr.title = translate("Response Encoding")
enr.description = translate("Encoding for responding requests.")
enr.default = "utf-8"
enr.optional = true
-- stock -----------------------------------------------------------------------
local ens = enc:option( Value, "stock" )
ens.title = translate("Storage Encoding")
ens.description = translate("Encoding for storing local collections.")
ens.default = "utf-8"
ens.optional = true
-- cbi-section "Headers" -- ####################################################
local hea = m:section( NamedSection, "headers", "setting" )
hea.title = translate("Additional HTTP headers")
hea.description = translate("Cross-origin resource sharing (CORS) is a mechanism that allows restricted resources (e.g. fonts, JavaScript, etc.) "
.. "on a web page to be requested from another domain outside the domain from which the resource originated.")
function hea.cfgvalue(self, section)
if not self.map:get(section) then -- section might not exist
self.map:set(section, nil, self.sectiontype)
end
return self.map:get(section)
end
-- Access_Control_Allow_Origin -------------------------------------------------
local heo = hea:option( DynamicList, "Access_Control_Allow_Origin" )
heo.title = translate("Access-Control-Allow-Origin")
heo.description = nil
heo.default = "*"
heo.optional = true
-- Access_Control_Allow_Methods ------------------------------------------------
local hem = hea:option( DynamicList, "Access_Control_Allow_Methods" )
hem.title = translate("Access-Control-Allow-Methods")
hem.description = nil
hem.optional = true
-- Access_Control_Allow_Headers ------------------------------------------------
local heh = hea:option( DynamicList, "Access_Control_Allow_Headers" )
heh.title = translate("Access-Control-Allow-Headers")
heh.description = nil
heh.optional = true
-- Access_Control_Expose_Headers -----------------------------------------------
local hee = hea:option( DynamicList, "Access_Control_Expose_Headers" )
hee.title = translate("Access-Control-Expose-Headers")
hee.description = nil
hee.optional = true
return m
| gpl-2.0 |
DrFR0ST/Human-Apocalypse | lib/shine/scanlines.lua | 8 | 4107 | --[[
The MIT License (MIT)
Copyright (c) 2015 Daniel Oaks
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.
]]--
return {
description = "Horizontal Scanlines",
new = function(self)
self._pixel_size = 3
self._opacity = 0.3
self._center_fade = 0.44
self._line_height = 0.35
self.canvas = love.graphics.newCanvas()
self.shader = love.graphics.newShader[[
#define PI (3.14159265)
extern float pixel_size;
// Opacity of the scanlines, 0 to 1.
extern float opacity;
// How much scanlines 'fade out' in the center of the screen
extern float center_fade;
// How much of each pixel is scanline, 0 to 1.
extern float scanline_height;
// input coords 0 -> 1,
// return coords -1 -> 1
vec2 coords_glsl_to_neg1_1(vec2 point) {
point.x = ((point.x * 2.0) - 1.0);
point.y = ((point.y * -2.0) + 1.0);
return point;
}
vec4 desaturate(vec4 color, float amount)
{
vec4 gray = vec4(dot(vec4(0.2126,0.7152,0.0722,0.2), color));
return vec4(mix(color, gray, amount));
}
vec4 effect(vec4 vcolor, Image texture, vec2 texture_coords, vec2 pixel_coords)
{
vec4 working_rgb = Texel(texture, texture_coords);
// horizontal scanlines
float current_pixel_v = pixel_coords.y / pixel_size;
float scanline_is_active = cos(current_pixel_v * 2.0 * PI) - 1.0 + scanline_height * 3.0;
// clamp
if (scanline_is_active > 1.0) {
scanline_is_active = 1.0;
}
// fading towards the center, looks much better
vec2 fade_coords = coords_glsl_to_neg1_1(texture_coords);
float fade_value = ((1.0 - abs(fade_coords.x)) + (1.0 - abs(fade_coords.y))) / 2.0;
scanline_is_active -= fade_value * center_fade;
// clamp
if (scanline_is_active < 0.0) {
scanline_is_active = 0.0;
}
// eh, just implement as lowering alpha for now
// see if we should be modifying rgb values instead
// possibly by making it darker and less saturated in the scanlines?
working_rgb = desaturate(working_rgb, scanline_is_active * 0.07);
working_rgb.r = working_rgb.r - (scanline_is_active * opacity);
working_rgb.g = working_rgb.g - (scanline_is_active * opacity);
working_rgb.b = working_rgb.b - (scanline_is_active * opacity);
return working_rgb;
}
]]
self.shader:send("pixel_size", self._pixel_size)
self.shader:send("opacity", self._opacity)
self.shader:send("center_fade", self._center_fade)
self.shader:send("scanline_height", self._line_height)
end,
draw = function(self, func, ...)
self:_apply_shader_to_scene(self.shader, self.canvas, func, ...)
end,
set = function(self, key, value)
if key == "pixel_size" then
assert(type(value) == "number")
self._pixel_size = value
self.shader:send("pixel_size", value)
elseif key == "opacity" then
assert(type(value) == "number")
self._opacity = value
self.shader:send("opacity", value)
elseif key == "center_fade" then
assert(type(value) == "number")
self._center_fade = value
self.shader:send("center_fade", value)
elseif key == "line_height" then
assert(type(value) == "number")
self._line_height = value
self.shader:send("line_height", value)
else
error("Unknown property: " .. tostring(key))
end
return self
end
}
| mit |
omid1212/ccd | plugins/groupmanager.lua | 15 | 11324 | -- data saved to moderation.json
-- check moderation plugin
do
local function create_group(msg)
-- superuser and admins only (because sudo are always has privilege)
if not is_admin(msg) then
return "You're not admin!"
end
local group_creator = msg.from.print_name
create_group_chat (group_creator, group_name, ok_cb, false)
return 'Group '..string.gsub(group_name, '_', ' ')..' has been created.'
end
local function set_description(msg, data)
if not is_momod(msg) then
return "For moderators only!"
end
local data_cat = 'description'
data[tostring(msg.to.id)][data_cat] = deskripsi
save_data(_config.moderation.data, data)
return 'Set group description to:\n'..deskripsi
end
local function get_description(msg, data)
local data_cat = 'description'
if not data[tostring(msg.to.id)][data_cat] then
return 'No description available.'
end
local about = data[tostring(msg.to.id)][data_cat]
local about = string.gsub(msg.to.print_name, "_", " ")..':\n\n'..about
return 'About '..about
end
local function set_rules(msg, data)
if not is_momod(msg) then
return "For moderators only!"
end
local data_cat = 'rules'
data[tostring(msg.to.id)][data_cat] = rules
save_data(_config.moderation.data, data)
return 'Set group rules to:\n'..rules
end
local function get_rules(msg, data)
local data_cat = 'rules'
if not data[tostring(msg.to.id)][data_cat] then
return 'No rules available.'
end
local rules = data[tostring(msg.to.id)][data_cat]
local rules = string.gsub(msg.to.print_name, '_', ' ')..' rules:\n\n'..rules
return rules
end
-- lock/unlock group name. bot automatically change group name when locked
local function lock_group_name(msg, data)
if not is_momod(msg) then
return "For moderators only!"
end
local group_name_set = data[tostring(msg.to.id)]['settings']['set_name']
local group_name_lock = data[tostring(msg.to.id)]['settings']['lock_name']
if group_name_lock == 'yes' then
return 'Group name is already locked'
else
data[tostring(msg.to.id)]['settings']['lock_name'] = 'yes'
save_data(_config.moderation.data, data)
data[tostring(msg.to.id)]['settings']['set_name'] = string.gsub(msg.to.print_name, '_', ' ')
save_data(_config.moderation.data, data)
return 'Group name has been locked'
end
end
local function unlock_group_name(msg, data)
if not is_momod(msg) then
return "For moderators only!"
end
local group_name_set = data[tostring(msg.to.id)]['settings']['set_name']
local group_name_lock = data[tostring(msg.to.id)]['settings']['lock_name']
if group_name_lock == 'no' then
return 'Group name is already unlocked'
else
data[tostring(msg.to.id)]['settings']['lock_name'] = 'no'
save_data(_config.moderation.data, data)
return 'Group name has been unlocked'
end
end
--lock/unlock group member. bot automatically kick new added user when locked
local function lock_group_member(msg, data)
if not is_momod(msg) then
return "For moderators only!"
end
local group_member_lock = data[tostring(msg.to.id)]['settings']['lock_member']
if group_member_lock == 'yes' then
return 'Group members are already locked'
else
data[tostring(msg.to.id)]['settings']['lock_member'] = 'yes'
save_data(_config.moderation.data, data)
end
return 'Group members has been locked'
end
local function unlock_group_member(msg, data)
if not is_momod(msg) then
return "For moderators only!"
end
local group_member_lock = data[tostring(msg.to.id)]['settings']['lock_member']
if group_member_lock == 'no' then
return 'Group members are not locked'
else
data[tostring(msg.to.id)]['settings']['lock_member'] = 'no'
save_data(_config.moderation.data, data)
return 'Group members has been unlocked'
end
end
--lock/unlock group photo. bot automatically keep group photo when locked
local function lock_group_photo(msg, data)
if not is_momod(msg) then
return "For moderators only!"
end
local group_photo_lock = data[tostring(msg.to.id)]['settings']['lock_photo']
if group_photo_lock == 'yes' then
return 'Group photo is already locked'
else
data[tostring(msg.to.id)]['settings']['set_photo'] = 'waiting'
save_data(_config.moderation.data, data)
end
return 'Please send me the group photo now'
end
local function unlock_group_photo(msg, data)
if not is_momod(msg) then
return "For moderators only!"
end
local group_photo_lock = data[tostring(msg.to.id)]['settings']['lock_photo']
if group_photo_lock == 'no' then
return 'Group photo is not locked'
else
data[tostring(msg.to.id)]['settings']['lock_photo'] = 'no'
save_data(_config.moderation.data, data)
return 'Group photo has been unlocked'
end
end
local function set_group_photo(msg, success, result)
local data = load_data(_config.moderation.data)
local receiver = get_receiver(msg)
if success then
local file = 'data/photos/chat_photo_'..msg.to.id..'.jpg'
print('File downloaded to:', result)
os.rename(result, file)
print('File moved to:', file)
chat_set_photo (receiver, file, ok_cb, false)
data[tostring(msg.to.id)]['settings']['set_photo'] = file
save_data(_config.moderation.data, data)
data[tostring(msg.to.id)]['settings']['lock_photo'] = 'yes'
save_data(_config.moderation.data, data)
send_large_msg(receiver, 'Photo saved!', ok_cb, false)
else
print('Error downloading: '..msg.id)
send_large_msg(receiver, 'Failed, please try again!', ok_cb, false)
end
end
-- show group settings
local function show_group_settings(msg, data)
if not is_momod(msg) then
return "For moderators only!"
end
local settings = data[tostring(msg.to.id)]['settings']
local text = "Group settings:\nLock group name : "..settings.lock_name.."\nLock group photo : "..settings.lock_photo.."\nLock group member : "..settings.lock_member
return text
end
function run(msg, matches)
--vardump(msg)
if matches[1] == 'creategroup' and matches[2] then
group_name = matches[2]
return create_group(msg)
end
if not is_chat_msg(msg) then
return "This is not a group chat."
end
local data = load_data(_config.moderation.data)
local receiver = get_receiver(msg)
if msg.media and is_chat_msg(msg) and is_momod(msg) then
if msg.media.type == 'photo' and data[tostring(msg.to.id)] then
if data[tostring(msg.to.id)]['settings']['set_photo'] == 'waiting' then
load_photo(msg.id, set_group_photo, msg)
end
end
end
if data[tostring(msg.to.id)] then
local settings = data[tostring(msg.to.id)]['settings']
if matches[1] == 'setabout' and matches[2] then
deskripsi = matches[2]
return set_description(msg, data)
end
if matches[1] == 'about' then
return get_description(msg, data)
end
if matches[1] == 'setrules' then
rules = matches[2]
return set_rules(msg, data)
end
if matches[1] == 'rules' then
return get_rules(msg, data)
end
if matches[1] == 'group' and matches[2] == 'lock' then --group lock *
if matches[3] == 'name' then
return lock_group_name(msg, data)
end
if matches[3] == 'member' then
return lock_group_member(msg, data)
end
if matches[3] == 'photo' then
return lock_group_photo(msg, data)
end
end
if matches[1] == 'group' and matches[2] == 'unlock' then --group unlock *
if matches[3] == 'name' then
return unlock_group_name(msg, data)
end
if matches[3] == 'member' then
return unlock_group_member(msg, data)
end
if matches[3] == 'photo' then
return unlock_group_photo(msg, data)
end
end
if matches[1] == 'group' and matches[2] == 'settings' then
return show_group_settings(msg, data)
end
if matches[1] == 'chat_rename' then
if not msg.service then
return "Are you trying to troll me?"
end
local group_name_set = settings.set_name
local group_name_lock = settings.lock_name
local to_rename = 'chat#id'..msg.to.id
if group_name_lock == 'yes' then
if group_name_set ~= tostring(msg.to.print_name) then
rename_chat(to_rename, group_name_set, ok_cb, false)
end
elseif group_name_lock == 'no' then
return nil
end
end
if matches[1] == 'setname' and is_momod(msg) then
local new_name = string.gsub(matches[2], '_', ' ')
data[tostring(msg.to.id)]['settings']['set_name'] = new_name
save_data(_config.moderation.data, data)
local group_name_set = data[tostring(msg.to.id)]['settings']['set_name']
local to_rename = 'chat#id'..msg.to.id
rename_chat(to_rename, group_name_set, ok_cb, false)
end
if matches[1] == 'setphoto' and is_momod(msg) then
data[tostring(msg.to.id)]['settings']['set_photo'] = 'waiting'
save_data(_config.moderation.data, data)
return 'Please send me new group photo now'
end
if matches[1] == 'chat_add_user' then
if not msg.service then
return "Are you trying to troll me?"
end
local group_member_lock = settings.lock_member
local user = 'user#id'..msg.action.user.id
local chat = 'chat#id'..msg.to.id
if group_member_lock == 'yes' then
chat_del_user(chat, user, ok_cb, true)
elseif group_member_lock == 'no' then
return nil
end
end
if matches[1] == 'chat_delete_photo' then
if not msg.service then
return "Are you trying to troll me?"
end
local group_photo_lock = settings.lock_photo
if group_photo_lock == 'yes' then
chat_set_photo (receiver, settings.set_photo, ok_cb, false)
elseif group_photo_lock == 'no' then
return nil
end
end
if matches[1] == 'chat_change_photo' and msg.from.id ~= 0 then
if not msg.service then
return "Are you trying to troll me?"
end
local group_photo_lock = settings.lock_photo
if group_photo_lock == 'yes' then
chat_set_photo (receiver, settings.set_photo, ok_cb, false)
elseif group_photo_lock == 'no' then
return nil
end
end
end
end
return {
description = "Plugin to manage group chat.",
usage = {
"!creategroup <group_name> : Create a new group (admin only)",
"!setabout <description> : Set group description",
"!about : Read group description",
"!setrules <rules> : Set group rules",
"!rules : Read group rules",
"!setname <new_name> : Set group name",
"!setphoto : Set group photo",
"!group <lock|unlock> name : Lock/unlock group name",
"!group <lock|unlock> photo : Lock/unlock group photo",
"!group <lock|unlock> member : Lock/unlock group member",
"!group settings : Show group settings"
},
patterns = {
"^!(creategroup) (.*)$",
"^!(setabout) (.*)$",
"^!(about)$",
"^!(setrules) (.*)$",
"^!(rules)$",
"^!(setname) (.*)$",
"^!(setphoto)$",
"^!(group) (lock) (.*)$",
"^!(group) (unlock) (.*)$",
"^!(group) (settings)$",
"^!!tgservice (.+)$",
"%[(photo)%]",
},
run = run,
}
end
| gpl-2.0 |
medialab-prado/Interactivos-15-Ego | minetest-ego/games/adventuretest/mods/mg_villages/village_types.lua | 3 | 6892 |
-- DOCUMENTATION: mg_villages.village_type_data has entries in the following form:
-- key = { data values } with key beeing the name of the village type
-- meaning of the data values:
-- min, max: the village size will be choosen randomly between these two values;
-- the actual village will have a radius about twice as big (including sourrounding area)
-- space_between_buildings=2 How much space is there between the buildings. 1 or 2 are good values.
-- The higher, the further the buildings are spread apart.
-- mods = {'homedecor','moreblocks'} List of mods that are required for the buildings of this village type.
-- List all the mods the blocks used by your buildings which are not in default.
-- texture = 'wool_white.png' Texture used to show the location of the village when using the
-- vmap command.
-- name_prefix = 'Village ',
-- name_postfix = '' When creating village names for single houses which are spawned outside
-- of villages, the village name will consist of name_prefix..village_name..name_postfix
-- sapling_divisor = 1 Villages are sourrounded by a flat area that may contain trees. Increasing this
-- value decreses the mount of trees placed.
-- plant_type = 'farming:wheat_8' Type of plant that is placed around villages.
-- plant_frequency = 1 The higher this value is, the less plants are placed.
local village_type_data_list = {
nore = { min = 20, max = 40, space_between_buildings=1, mods={}, texture = 'default_stone_brick.png',
replacement_function = mg_villages.replacements_nore },
taoki = { min = 30, max = 70, space_between_buildings=1, mods={}, texture = 'default_brick.png' ,
sapling_divisor = 5, plant_type = 'farming:cotton_8', plant_frequency = 1,
replacement_function = mg_villages.replacements_taoki },
medieval = { min = 25, max = 60, space_between_buildings=2, mods={'cottages'}, texture = 'cottages_darkage_straw.png', -- they often have straw roofs
sapling_divisor = 10, plant_type = 'farming:wheat_8', plant_frequency = 1,
replacement_function = mg_villages.replacements_medieval,
roadsize_list = {2,3,4,5,6},
-- road_materials = {'default:cobble','default:gravel','default:stonebrick','default:coalblock'},
}, --roadsize_list = {1,1,2,3,4} },
charachoal = { min = 10, max = 15, space_between_buildings=1, mods={'cottages'}, texture = 'default_coal_block.png',
replacement_function = mg_villages.replacements_charachoal },
lumberjack = { min = 10, max = 30, space_between_buildings=1, mods={'cottages'}, texture = 'default_tree.png', name_prefix = 'Camp ',
sapling_divisor = 1, plant_type = 'default:junglegrass', plant_frequency = 24,
replacement_function = mg_villages.replacements_lumberjack },
claytrader = { min = 10, max = 20, space_between_buildings=1, mods={'cottages'}, texture = 'default_clay.png',
replacement_function = mg_villages.replacements_claytrader },
logcabin = { min = 15, max = 30, space_between_buildings=1, mods={'cottages'}, texture = 'default_wood.png',
replacement_function = mg_villages.replacements_logcabin },
grasshut = { min = 10, max = 40, space_between_buildings=1, mods={'dryplants'}, texture = 'dryplants_reed.png',
replacement_function = mg_villages.replacements_grasshut },
tent = { min = 5, max = 20, space_between_buildings=2, mods={'cottages'}, texture = 'wool_white.png', name_preifx = 'Tent at',
replacement_function = mg_villages.replacements_tent },
-- these sub-types may occour as single houses placed far from villages
tower = { only_single = 1, name_prefix = 'Tower at ', mods={'cottages'}, texture = 'default_mese.png',
replacement_function = mg_villages.replacements_tower },
chateau = { only_single = 1, name_prefix = 'Chateau ', texture = 'default_gold_block.png',
replacement_function = mg_villages.replacements_chateau },
forge = { only_single = 1, name_prefix = 'Forge at '},
tavern = { only_single = 1, name_prefix = 'Inn at '},
well = { only_single = 1, name_prefix = 'Well at ',
replacement_function = mg_villages.replacements_medieval },
trader = { only_single = 1, name_prefix = 'Trading post ' },
sawmill = { only_single = 1, name_prefix = 'Sawmill at ' },
farm_tiny = { only_single = 1, name_prefix = 'House '},
farm_full = { only_single = 1, name_prefix = 'Farm '},
single = { only_single = 1, name_prefix = 'House '}, -- fallback
}
-- NOTE: Most values of village types added with mg_villages.add_village_type can still be changed later on by
-- changing the global variable mg_villages.village_type_data[ village_type ]
-- Village types where one or more of the required mods (listed in v.mods) are missing will not be
-- available.
-- You can add your own village type by i.e. calling
-- mg_villages.add_village_type( 'town', { min = 10, max = 30, space_between_buildings = 2, mods = {'moreblocks','homedecor'}, texture='default_diamond_block.png'} );
-- This will add a new village type named 'town', which will only be available if the mods moreblocks and homedecor are installed.
-- It will show the texture of the diamond block when showing the position of a village of that type in the map displayed by the /vmap command.
-- some villages require special mods as building material for their houses;
-- figure out which village types can be used
mg_villages.add_village_type = function( type_name, v )
local found = true;
if( not( v.mods )) then
v.mods = {};
end
for _,m in ipairs( v.mods ) do
if( not( minetest.get_modpath( m ))) then
-- this village type will not be used because not all required mods are installed
return false;
end
end
if( not( v.only_single ) and (not(v.min) or not(v.max))) then
mg_villages.print( mg_villages.DEBUG_LEVEL_NORMAL, 'Error: Village type '..tostring( type_name )..' lacks size information.');
return false;
end
-- set some default values
if( not( v.sapling_divisor )) then
v.sapling_divisor = 10;
end
if( not( v.plant_type )) then
v.plant_type = 'default:grass_5';
if( not( minetest.registered_nodes[ v.plant_type ])) then
v.plant_type = 'default:dry_shrub';
end
end
if( not( v.plant_frequency )) then
v.plant_frequency = 3;
end
-- this village type is supported by the mods installed and may be used
v.supported = 1;
mg_villages.village_type_data[ type_name ] = v;
return true;
end
-- build a list of all useable village types the mg_villages mod comes with
mg_villages.village_type_data = {};
for k,v in pairs( village_type_data_list ) do
mg_villages.add_village_type( k, v );
end
village_type_data_list = nil;
| mit |
EliHar/Pattern_recognition | torch1/install/share/lua/5.1/pl/xml.lua | 14 | 25405 | --- XML LOM Utilities.
--
-- This implements some useful things on [LOM](http://matthewwild.co.uk/projects/luaexpat/lom.html) documents, such as returned by `lxp.lom.parse`.
-- In particular, it can convert LOM back into XML text, with optional pretty-printing control.
-- It is s based on stanza.lua from [Prosody](http://hg.prosody.im/trunk/file/4621c92d2368/util/stanza.lua)
--
-- > d = xml.parse "<nodes><node id='1'>alice</node></nodes>"
-- > = d
-- <nodes><node id='1'>alice</node></nodes>
-- > = xml.tostring(d,'',' ')
-- <nodes>
-- <node id='1'>alice</node>
-- </nodes>
--
-- Can be used as a lightweight one-stop-shop for simple XML processing; a simple XML parser is included
-- but the default is to use `lxp.lom` if it can be found.
-- <pre>
-- Prosody IM
-- Copyright (C) 2008-2010 Matthew Wild
-- Copyright (C) 2008-2010 Waqas Hussain--
-- classic Lua XML parser by Roberto Ierusalimschy.
-- modified to output LOM format.
-- http://lua-users.org/wiki/LuaXml
-- </pre>
-- See @{06-data.md.XML|the Guide}
--
-- Dependencies: `pl.utils`
--
-- Soft Dependencies: `lxp.lom` (fallback is to use basic Lua parser)
-- @module pl.xml
local utils = require 'pl.utils'
local split = utils.split;
local t_insert = table.insert;
local t_concat = table.concat;
local t_remove = table.remove;
local s_format = string.format;
local s_match = string.match;
local tostring = tostring;
local setmetatable = setmetatable;
local getmetatable = getmetatable;
local pairs = pairs;
local ipairs = ipairs;
local type = type;
local next = next;
local print = print;
local unpack = utils.unpack;
local s_gsub = string.gsub;
local s_char = string.char;
local s_find = string.find;
local os = os;
local pcall,require,io = pcall,require,io
local _M = {}
local Doc = { __type = "doc" };
Doc.__index = Doc;
--- create a new document node.
-- @param tag the tag name
-- @param attr optional attributes (table of name-value pairs)
function _M.new(tag, attr)
local doc = { tag = tag, attr = attr or {}, last_add = {}};
return setmetatable(doc, Doc);
end
--- parse an XML document. By default, this uses lxp.lom.parse, but
-- falls back to basic_parse, or if use_basic is true
-- @param text_or_file file or string representation
-- @param is_file whether text_or_file is a file name or not
-- @param use_basic do a basic parse
-- @return a parsed LOM document with the document metatatables set
-- @return nil, error the error can either be a file error or a parse error
function _M.parse(text_or_file, is_file, use_basic)
local parser,status,lom
if use_basic then parser = _M.basic_parse
else
status,lom = pcall(require,'lxp.lom')
if not status then parser = _M.basic_parse else parser = lom.parse end
end
if is_file then
local f,err = io.open(text_or_file)
if not f then return nil,err end
text_or_file = f:read '*a'
f:close()
end
local doc,err = parser(text_or_file)
if not doc then return nil,err end
if lom then
_M.walk(doc,false,function(_,d)
setmetatable(d,Doc)
end)
end
return doc
end
---- convenient function to add a document node, This updates the last inserted position.
-- @param tag a tag name
-- @param attrs optional set of attributes (name-string pairs)
function Doc:addtag(tag, attrs)
local s = _M.new(tag, attrs);
(self.last_add[#self.last_add] or self):add_direct_child(s);
t_insert(self.last_add, s);
return self;
end
--- convenient function to add a text node. This updates the last inserted position.
-- @param text a string
function Doc:text(text)
(self.last_add[#self.last_add] or self):add_direct_child(text);
return self;
end
---- go up one level in a document
function Doc:up()
t_remove(self.last_add);
return self;
end
function Doc:reset()
local last_add = self.last_add;
for i = 1,#last_add do
last_add[i] = nil;
end
return self;
end
--- append a child to a document directly.
-- @param child a child node (either text or a document)
function Doc:add_direct_child(child)
t_insert(self, child);
end
--- append a child to a document at the last element added
-- @param child a child node (either text or a document)
function Doc:add_child(child)
(self.last_add[#self.last_add] or self):add_direct_child(child);
return self;
end
--accessing attributes: useful not to have to expose implementation (attr)
--but also can allow attr to be nil in any future optimizations
--- set attributes of a document node.
-- @param t a table containing attribute/value pairs
function Doc:set_attribs (t)
for k,v in pairs(t) do
self.attr[k] = v
end
end
--- set a single attribute of a document node.
-- @param a attribute
-- @param v its value
function Doc:set_attrib(a,v)
self.attr[a] = v
end
--- access the attributes of a document node.
function Doc:get_attribs()
return self.attr
end
local function is_text(s) return type(s) == 'string' end
--- function to create an element with a given tag name and a set of children.
-- @param tag a tag name
-- @param items either text or a table where the hash part is the attributes and the list part is the children.
function _M.elem(tag,items)
local s = _M.new(tag)
if is_text(items) then items = {items} end
if _M.is_tag(items) then
t_insert(s,items)
elseif type(items) == 'table' then
for k,v in pairs(items) do
if is_text(k) then
s.attr[k] = v
t_insert(s.attr,k)
else
s[k] = v
end
end
end
return s
end
--- given a list of names, return a number of element constructors.
-- @param list a list of names, or a comma-separated string.
-- @usage local parent,children = doc.tags 'parent,children' <br>
-- doc = parent {child 'one', child 'two'}
function _M.tags(list)
local ctors = {}
local elem = _M.elem
if is_text(list) then list = split(list,'%s*,%s*') end
for _,tag in ipairs(list) do
local ctor = function(items) return _M.elem(tag,items) end
t_insert(ctors,ctor)
end
return unpack(ctors)
end
local templ_cache = {}
local function template_cache (templ)
if is_text(templ) then
if templ_cache[templ] then
templ = templ_cache[templ]
else
local str,err = templ
templ,err = _M.parse(str,false,true)
if not templ then return nil,err end
templ_cache[str] = templ
end
elseif not _M.is_tag(templ) then
return nil, "template is not a document"
end
return templ
end
local function is_data(data)
return #data == 0 or type(data[1]) ~= 'table'
end
local function prepare_data(data)
-- a hack for ensuring that $1 maps to first element of data, etc.
-- Either this or could change the gsub call just below.
for i,v in ipairs(data) do
data[tostring(i)] = v
end
end
--- create a substituted copy of a document,
-- @param templ may be a document or a string representation which will be parsed and cached
-- @param data a table of name-value pairs or a list of such tables
-- @return an XML document
function Doc.subst(templ, data)
local err
if type(data) ~= 'table' or not next(data) then return nil, "data must be a non-empty table" end
if is_data(data) then
prepare_data(data)
end
templ,err = template_cache(templ)
if err then return nil, err end
local function _subst(item)
return _M.clone(templ,function(s)
return s:gsub('%$(%w+)',item)
end)
end
if is_data(data) then return _subst(data) end
local list = {}
for _,item in ipairs(data) do
prepare_data(item)
t_insert(list,_subst(item))
end
if data.tag then
list = _M.elem(data.tag,list)
end
return list
end
--- get the first child with a given tag name.
-- @param tag the tag name
function Doc:child_with_name(tag)
for _, child in ipairs(self) do
if child.tag == tag then return child; end
end
end
local _children_with_name
function _children_with_name(self,tag,list,recurse)
for _, child in ipairs(self) do if type(child) == 'table' then
if child.tag == tag then t_insert(list,child) end
if recurse then _children_with_name(child,tag,list,recurse) end
end end
end
--- get all elements in a document that have a given tag.
-- @param tag a tag name
-- @param dont_recurse optionally only return the immediate children with this tag name
-- @return a list of elements
function Doc:get_elements_with_name(tag,dont_recurse)
local res = {}
_children_with_name(self,tag,res,not dont_recurse)
return res
end
-- iterate over all children of a document node, including text nodes.
function Doc:children()
local i = 0;
return function (a)
i = i + 1
return a[i];
end, self, i;
end
-- return the first child element of a node, if it exists.
function Doc:first_childtag()
if #self == 0 then return end
for _,t in ipairs(self) do
if type(t) == 'table' then return t end
end
end
function Doc:matching_tags(tag, xmlns)
xmlns = xmlns or self.attr.xmlns;
local tags = self;
local start_i, max_i, v = 1, #tags;
return function ()
for i=start_i,max_i do
v = tags[i];
if (not tag or v.tag == tag)
and (not xmlns or xmlns == v.attr.xmlns) then
start_i = i+1;
return v;
end
end
end, tags, start_i;
end
--- iterate over all child elements of a document node.
function Doc:childtags()
local i = 0;
return function (a)
local v
repeat
i = i + 1
v = self[i]
if v and type(v) == 'table' then return v; end
until not v
end, self[1], i;
end
--- visit child element of a node and call a function, possibility modifying the document.
-- @param callback a function passed the node (text or element). If it returns nil, that node will be removed.
-- If it returns a value, that will replace the current node.
function Doc:maptags(callback)
local is_tag = _M.is_tag
local i = 1;
while i <= #self do
if is_tag(self[i]) then
local ret = callback(self[i]);
if ret == nil then
t_remove(self, i);
else
self[i] = ret;
i = i + 1;
end
end
end
return self;
end
local xml_escape
do
local escape_table = { ["'"] = "'", ["\""] = """, ["<"] = "<", [">"] = ">", ["&"] = "&" };
function xml_escape(str) return (s_gsub(str, "['&<>\"]", escape_table)); end
_M.xml_escape = xml_escape;
end
-- pretty printing
-- if indent, then put each new tag on its own line
-- if attr_indent, put each new attribute on its own line
local function _dostring(t, buf, self, xml_escape, parentns, idn, indent, attr_indent)
local nsid = 0;
local tag = t.tag
local lf,alf = ""," "
if indent then lf = '\n'..idn end
if attr_indent then alf = '\n'..idn..attr_indent end
t_insert(buf, lf.."<"..tag);
local function write_attr(k,v)
if s_find(k, "\1", 1, true) then
local ns, attrk = s_match(k, "^([^\1]*)\1?(.*)$");
nsid = nsid + 1;
t_insert(buf, " xmlns:ns"..nsid.."='"..xml_escape(ns).."' ".."ns"..nsid..":"..attrk.."='"..xml_escape(v).."'");
elseif not(k == "xmlns" and v == parentns) then
t_insert(buf, alf..k.."='"..xml_escape(v).."'");
end
end
-- it's useful for testing to have predictable attribute ordering, if available
if #t.attr > 0 then
for _,k in ipairs(t.attr) do
write_attr(k,t.attr[k])
end
else
for k, v in pairs(t.attr) do
write_attr(k,v)
end
end
local len,has_children = #t;
if len == 0 then
local out = "/>"
if attr_indent then out = '\n'..idn..out end
t_insert(buf, out);
else
t_insert(buf, ">");
for n=1,len do
local child = t[n];
if child.tag then
self(child, buf, self, xml_escape, t.attr.xmlns,idn and idn..indent, indent, attr_indent );
has_children = true
else -- text element
t_insert(buf, xml_escape(child));
end
end
t_insert(buf, (has_children and lf or '').."</"..tag..">");
end
end
---- pretty-print an XML document
--- @param t an XML document
--- @param idn an initial indent (indents are all strings)
--- @param indent an indent for each level
--- @param attr_indent if given, indent each attribute pair and put on a separate line
--- @param xml force prefacing with default or custom <?xml...>
--- @return a string representation
function _M.tostring(t,idn,indent, attr_indent, xml)
local buf = {};
if xml then
if type(xml) == "string" then
buf[1] = xml
else
buf[1] = "<?xml version='1.0'?>"
end
end
_dostring(t, buf, _dostring, xml_escape, nil,idn,indent, attr_indent);
return t_concat(buf);
end
Doc.__tostring = _M.tostring
--- get the full text value of an element
function Doc:get_text()
local res = {}
for i,el in ipairs(self) do
if is_text(el) then t_insert(res,el) end
end
return t_concat(res);
end
--- make a copy of a document
-- @param doc the original document
-- @param strsubst an optional function for handling string copying which could do substitution, etc.
function _M.clone(doc, strsubst)
local lookup_table = {};
local function _copy(object,kind,parent)
if type(object) ~= "table" then
if strsubst and is_text(object) then return strsubst(object,kind,parent)
else return object
end
elseif lookup_table[object] then
return lookup_table[object]
end
local new_table = {};
lookup_table[object] = new_table
local tag = object.tag
new_table.tag = _copy(tag,'*TAG',parent)
if object.attr then
local res = {}
for attr,value in pairs(object.attr) do
res[attr] = _copy(value,attr,object)
end
new_table.attr = res
end
for index = 1,#object do
local v = _copy(object[index],'*TEXT',object)
t_insert(new_table,v)
end
return setmetatable(new_table, getmetatable(object))
end
return _copy(doc)
end
Doc.filter = _M.clone -- also available as method
--- compare two documents.
-- @param t1 any value
-- @param t2 any value
function _M.compare(t1,t2)
local ty1 = type(t1)
local ty2 = type(t2)
if ty1 ~= ty2 then return false, 'type mismatch' end
if ty1 == 'string' then
return t1 == t2 and true or 'text '..t1..' ~= text '..t2
end
if ty1 ~= 'table' or ty2 ~= 'table' then return false, 'not a document' end
if t1.tag ~= t2.tag then return false, 'tag '..t1.tag..' ~= tag '..t2.tag end
if #t1 ~= #t2 then return false, 'size '..#t1..' ~= size '..#t2..' for tag '..t1.tag end
-- compare attributes
for k,v in pairs(t1.attr) do
if t2.attr[k] ~= v then return false, 'mismatch attrib' end
end
for k,v in pairs(t2.attr) do
if t1.attr[k] ~= v then return false, 'mismatch attrib' end
end
-- compare children
for i = 1,#t1 do
local yes,err = _M.compare(t1[i],t2[i])
if not yes then return err end
end
return true
end
--- is this value a document element?
-- @param d any value
function _M.is_tag(d)
return type(d) == 'table' and is_text(d.tag)
end
--- call the desired function recursively over the document.
-- @param doc the document
-- @param depth_first visit child notes first, then the current node
-- @param operation a function which will receive the current tag name and current node.
function _M.walk (doc, depth_first, operation)
if not depth_first then operation(doc.tag,doc) end
for _,d in ipairs(doc) do
if _M.is_tag(d) then
_M.walk(d,depth_first,operation)
end
end
if depth_first then operation(doc.tag,doc) end
end
local html_empty_elements = { --lists all HTML empty (void) elements
br = true,
img = true,
meta = true,
frame = true,
area = true,
hr = true,
base = true,
col = true,
link = true,
input = true,
option = true,
param = true,
isindex = true,
embed = true,
}
local escapes = { quot = "\"", apos = "'", lt = "<", gt = ">", amp = "&" }
local function unescape(str) return (str:gsub( "&(%a+);", escapes)); end
--- Parse a well-formed HTML file as a string.
-- Tags are case-insenstive, DOCTYPE is ignored, and empty elements can be .. empty.
-- @param s the HTML
function _M.parsehtml (s)
return _M.basic_parse(s,false,true)
end
--- Parse a simple XML document using a pure Lua parser based on Robero Ierusalimschy's original version.
-- @param s the XML document to be parsed.
-- @param all_text if true, preserves all whitespace. Otherwise only text containing non-whitespace is included.
-- @param html if true, uses relaxed HTML rules for parsing
function _M.basic_parse(s,all_text,html)
local t_insert,t_remove = table.insert,table.remove
local s_find,s_sub = string.find,string.sub
local stack = {}
local top = {}
local function parseargs(s)
local arg = {}
s:gsub("([%w:%-_]+)%s*=%s*([\"'])(.-)%2", function (w, _, a)
if html then w = w:lower() end
arg[w] = unescape(a)
end)
if html then
s:gsub("([%w:%-_]+)%s*=%s*([^\"']+)%s*", function (w, a)
w = w:lower()
arg[w] = unescape(a)
end)
end
return arg
end
t_insert(stack, top)
local ni,c,label,xarg, empty, _, istart
local i, j = 1, 1
-- we're not interested in <?xml version="1.0"?>
_,istart = s_find(s,'^%s*<%?[^%?]+%?>%s*')
if not istart then -- or <!DOCTYPE ...>
_,istart = s_find(s,'^%s*<!DOCTYPE.->%s*')
end
if istart then i = istart+1 end
while true do
ni,j,c,label,xarg, empty = s_find(s, "<([%/!]?)([%w:%-_]+)(.-)(%/?)>", i)
if not ni then break end
if c == "!" then -- comment
-- case where there's no space inside comment
if not (label:match '%-%-$' and xarg == '') then
if xarg:match '%-%-$' then -- we've grabbed it all
j = j - 2
end
-- match end of comment
_,j = s_find(s, "-->", j, true)
end
else
local text = s_sub(s, i, ni-1)
if html then
label = label:lower()
if html_empty_elements[label] then empty = "/" end
if label == 'script' then
end
end
if all_text or not s_find(text, "^%s*$") then
t_insert(top, unescape(text))
end
if empty == "/" then -- empty element tag
t_insert(top, setmetatable({tag=label, attr=parseargs(xarg), empty=1},Doc))
elseif c == "" then -- start tag
top = setmetatable({tag=label, attr=parseargs(xarg)},Doc)
t_insert(stack, top) -- new level
else -- end tag
local toclose = t_remove(stack) -- remove top
top = stack[#stack]
if #stack < 1 then
error("nothing to close with "..label..':'..text)
end
if toclose.tag ~= label then
error("trying to close "..toclose.tag.." with "..label.." "..text)
end
t_insert(top, toclose)
end
end
i = j+1
end
local text = s_sub(s, i)
if all_text or not s_find(text, "^%s*$") then
t_insert(stack[#stack], unescape(text))
end
if #stack > 1 then
error("unclosed "..stack[#stack].tag)
end
local res = stack[1]
return is_text(res[1]) and res[2] or res[1]
end
local function empty(attr) return not attr or not next(attr) end
local function is_element(d) return type(d) == 'table' and d.tag ~= nil end
-- returns the key,value pair from a table if it has exactly one entry
local function has_one_element(t)
local key,value = next(t)
if next(t,key) ~= nil then return false end
return key,value
end
local function append_capture(res,tbl)
if not empty(tbl) then -- no point in capturing empty tables...
local key
if tbl._ then -- if $_ was set then it is meant as the top-level key for the captured table
key = tbl._
tbl._ = nil
if empty(tbl) then return end
end
-- a table with only one pair {[0]=value} shall be reduced to that value
local numkey,val = has_one_element(tbl)
if numkey == 0 then tbl = val end
if key then
res[key] = tbl
else -- otherwise, we append the captured table
t_insert(res,tbl)
end
end
end
local function make_number(pat)
if pat:find '^%d+$' then -- $1 etc means use this as an array location
pat = tonumber(pat)
end
return pat
end
local function capture_attrib(res,pat,value)
pat = make_number(pat:sub(2))
res[pat] = value
return true
end
local match
function match(d,pat,res,keep_going)
local ret = true
if d == nil then d = '' end --return false end
-- attribute string matching is straight equality, except if the pattern is a $ capture,
-- which always succeeds.
if is_text(d) then
if not is_text(pat) then return false end
if _M.debug then print(d,pat) end
if pat:find '^%$' then
return capture_attrib(res,pat,d)
else
return d == pat
end
else
if _M.debug then print(d.tag,pat.tag) end
-- this is an element node. For a match to succeed, the attributes must
-- match as well.
-- a tagname in the pattern ending with '-' is a wildcard and matches like an attribute
local tagpat = pat.tag:match '^(.-)%-$'
if tagpat then
tagpat = make_number(tagpat)
res[tagpat] = d.tag
end
if d.tag == pat.tag or tagpat then
if not empty(pat.attr) then
if empty(d.attr) then ret = false
else
for prop,pval in pairs(pat.attr) do
local dval = d.attr[prop]
if not match(dval,pval,res) then ret = false; break end
end
end
end
-- the pattern may have child nodes. We match partially, so that {P1,P2} shall match {X,P1,X,X,P2,..}
if ret and #pat > 0 then
local i,j = 1,1
local function next_elem()
j = j + 1 -- next child element of data
if is_text(d[j]) then j = j + 1 end
return j <= #d
end
repeat
local p = pat[i]
-- repeated {{<...>}} patterns shall match one or more elements
-- so e.g. {P+} will match {X,X,P,P,X,P,X,X,X}
if is_element(p) and p.repeated then
local found
repeat
local tbl = {}
ret = match(d[j],p,tbl,false)
if ret then
found = false --true
append_capture(res,tbl)
end
until not next_elem() or (found and not ret)
i = i + 1
else
ret = match(d[j],p,res,false)
if ret then i = i + 1 end
end
until not next_elem() or i > #pat -- run out of elements or patterns to match
-- if every element in our pattern matched ok, then it's been a successful match
if i > #pat then return true end
end
if ret then return true end
else
ret = false
end
-- keep going anyway - look at the children!
if keep_going then
for child in d:childtags() do
ret = match(child,pat,res,keep_going)
if ret then break end
end
end
end
return ret
end
function Doc:match(pat)
local err
pat,err = template_cache(pat)
if not pat then return nil, err end
_M.walk(pat,false,function(_,d)
if is_text(d[1]) and is_element(d[2]) and is_text(d[3]) and
d[1]:find '%s*{{' and d[3]:find '}}%s*' then
t_remove(d,1)
t_remove(d,2)
d[1].repeated = true
end
end)
local res = {}
local ret = match(self,pat,res,true)
return res,ret
end
return _M
| mit |
fernandobt8/thrift | lib/lua/TMemoryBuffer.lua | 100 | 2266 | --
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you under the Apache License, Version 2.0 (the
-- "License"); you may not use this file except in compliance
-- with the License. You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing,
-- software distributed under the License is distributed on an
-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-- KIND, either express or implied. See the License for the
-- specific language governing permissions and limitations
-- under the License.
--
require 'TTransport'
TMemoryBuffer = TTransportBase:new{
__type = 'TMemoryBuffer',
buffer = '',
bufferSize = 1024,
wPos = 0,
rPos = 0
}
function TMemoryBuffer:isOpen()
return 1
end
function TMemoryBuffer:open() end
function TMemoryBuffer:close() end
function TMemoryBuffer:peak()
return self.rPos < self.wPos
end
function TMemoryBuffer:getBuffer()
return self.buffer
end
function TMemoryBuffer:resetBuffer(buf)
if buf then
self.buffer = buf
self.bufferSize = string.len(buf)
else
self.buffer = ''
self.bufferSize = 1024
end
self.wPos = string.len(buf)
self.rPos = 0
end
function TMemoryBuffer:available()
return self.wPos - self.rPos
end
function TMemoryBuffer:read(len)
local avail = self:available()
if avail == 0 then
return ''
end
if avail < len then
len = avail
end
local val = string.sub(self.buffer, self.rPos + 1, self.rPos + len)
self.rPos = self.rPos + len
return val
end
function TMemoryBuffer:readAll(len)
local avail = self:available()
if avail < len then
local msg = string.format('Attempt to readAll(%d) found only %d available',
len, avail)
terror(TTransportException:new{message = msg})
end
-- read should block so we don't need a loop here
return self:read(len)
end
function TMemoryBuffer:write(buf)
self.buffer = self.buffer .. buf
self.wPos = self.wPos + string.len(buf)
end
function TMemoryBuffer:flush() end
| apache-2.0 |
soumith/cudnn.torch | Pooling.lua | 2 | 4243 | local Pooling, parent = torch.class('cudnn._Pooling', 'nn.Module')
local ffi = require 'ffi'
local errcheck = cudnn.errcheck
function Pooling:__init(kW, kH, dW, dH, padW, padH)
parent.__init(self)
self.kW = kW
self.kH = kH
self.dW = dW or kW
self.dH = dH or kH
self.padW = padW or 0
self.padH = padH or 0
self.iSize = torch.LongStorage(4):fill(0)
self.ceil_mode = false
end
function Pooling:ceil()
self.ceil_mode = true
return self
end
function Pooling:floor()
self.ceil_mode = false
return self
end
function Pooling:resetPoolDescriptors()
-- create pooling descriptor
self.padW = self.padW or 0
self.padH = self.padH or 0
self.poolDesc = ffi.new('struct cudnnPoolingStruct*[1]')
errcheck('cudnnCreatePoolingDescriptor', self.poolDesc)
local ker = torch.IntTensor({self.kH, self.kW})
local str = torch.IntTensor({self.dH, self.dW})
local pad = torch.IntTensor({self.padH, self.padW})
errcheck('cudnnSetPoolingNdDescriptor', self.poolDesc[0], self.mode, 'CUDNN_PROPAGATE_NAN', 2,
ker:data(), pad:data(), str:data());
local function destroyPoolDesc(d)
errcheck('cudnnDestroyPoolingDescriptor', d[0]);
end
ffi.gc(self.poolDesc, destroyPoolDesc)
end
function Pooling:createIODescriptors(input)
assert(self.mode, 'mode is not set. (trying to use base class?)');
local batch = true
if input:dim() == 3 then
input = input:view(1, input:size(1), input:size(2), input:size(3))
batch = false
end
assert(input:dim() == 4 and input:isContiguous());
if not self.iDesc or not self.oDesc or
input:size(1) ~= self.iSize[1] or input:size(2) ~= self.iSize[2]
or input:size(3) ~= self.iSize[3] or input:size(4) ~= self.iSize[4] then
self.iSize = input:size()
local oW, oH
if self.ceil_mode then
oW = math.ceil((input:size(4)+self.padW*2 - self.kW)/self.dW + 1)
oH = math.ceil((input:size(3)+self.padH*2 - self.kH)/self.dH + 1)
else
oW = math.floor((input:size(4)+self.padW*2 - self.kW)/self.dW + 1)
oH = math.floor((input:size(3)+self.padH*2 - self.kH)/self.dH + 1)
end
assert(oW > 0 and oH > 0, 'input image smaller than kernel')
self.output:resize(input:size(1), input:size(2), oH, oW)
-- create input/output descriptor
self.iDesc = cudnn.toDescriptor(input)
self.oDesc = cudnn.toDescriptor(self.output)
if not batch then
self.output = self.output:view(self.output:size(2),
self.output:size(3),
self.output:size(4))
end
end
end
function Pooling:updateOutput(input)
if not self.poolDesc then self:resetPoolDescriptors() end
self:createIODescriptors(input)
errcheck('cudnnPoolingForward', cudnn.getHandle(),
self.poolDesc[0],
cudnn.scalar(input, 1),
self.iDesc[0], input:data(),
cudnn.scalar(input, 0),
self.oDesc[0], self.output:data());
return self.output
end
function Pooling:updateGradInput(input, gradOutput)
assert(gradOutput:dim() == 3 or gradOutput:dim() == 4);
if not gradOutput:isContiguous() then
self._gradOutput = self._gradOutput or gradOutput.new()
self._gradOutput:resizeAs(gradOutput):copy(gradOutput)
gradOutput = self._gradOutput
end
self.gradInput:resizeAs(input)
if not self.poolDesc then self:resetPoolDescriptors() end
self:createIODescriptors(input)
errcheck('cudnnPoolingBackward',
cudnn.getHandle(), self.poolDesc[0],
cudnn.scalar(input, 1),
self.oDesc[0], self.output:data(),
self.oDesc[0], gradOutput:data(),
self.iDesc[0], input:data(),
cudnn.scalar(input, 0),
self.iDesc[0], self.gradInput:data());
return self.gradInput
end
function Pooling:clearDesc()
self.poolDesc = nil
self.iDesc = nil
self.oDesc = nil
end
function Pooling:write(f)
self:clearDesc()
local var = {}
for k,v in pairs(self) do
var[k] = v
end
f:writeObject(var)
end
function Pooling:clearState()
self:clearDesc()
nn.utils.clear(self, '_gradOutput')
return parent.clearState(self)
end
| bsd-2-clause |
medialab-prado/Interactivos-15-Ego | minetest-ego/games/adventuretest/mods/cottages/nodes_furniture.lua | 1 | 12439 | ---------------------------------------------------------------------------------------
-- furniture
---------------------------------------------------------------------------------------
-- contains:
-- * a bed seperated into foot and head reagion so that it can be placed manually; it has
-- no other functionality than decoration!
-- * a sleeping mat - mostly for NPC that cannot afford a bet yet
-- * bench - if you don't have 3dforniture:chair, then this is the next best thing
-- * table - very simple one
-- * shelf - for stroring things; this one is 3d
-- * stovepipe - so that the smoke from the furnace can get away
-- * washing place - put it over a water source and you can 'wash' yourshelf
---------------------------------------------------------------------------------------
-- TODO: change the textures of the bed (make the clothing white, foot path not entirely covered with cloth)
local S = cottages.S
-- a bed without functionality - just decoration
minetest.register_node("cottages:bed_foot", {
description = S("Bed (foot region)"),
drawtype = "nodebox",
tiles = {"cottages_beds_bed_top_bottom.png", cottages.texture_furniture, "cottages_beds_bed_side.png", "cottages_beds_bed_side.png", "cottages_beds_bed_side.png", "cottages_beds_bed_side.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = {
-- bed
{-0.5, 0.0, -0.5, 0.5, 0.3, 0.5},
-- stützen
{-0.5, -0.5, -0.5, -0.4, 0.5, -0.4},
{ 0.4,-0.5, -0.5, 0.5, 0.5, -0.4},
-- Querstrebe
{-0.4, 0.3, -0.5, 0.4, 0.5, -0.4}
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.3, 0.5},
}
},
is_ground_content = false,
})
-- the bed is split up in two parts to avoid destruction of blocks on placement
minetest.register_node("cottages:bed_head", {
description = S("Bed (head region)"),
drawtype = "nodebox",
tiles = {"cottages_beds_bed_top_top.png", cottages.texture_furniture, "cottages_beds_bed_side_top_r.png", "cottages_beds_bed_side_top_l.png", cottages.texture_furniture, "cottages_beds_bed_side.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = {
-- bed
{-0.5, 0.0, -0.5, 0.5, 0.3, 0.5},
-- stützen
{-0.5,-0.5, 0.4, -0.4, 0.5, 0.5},
{ 0.4,-0.5, 0.4, 0.5, 0.5, 0.5},
-- Querstrebe
{-0.4, 0.3, 0.4, 0.4, 0.5, 0.5}
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.3, 0.5},
}
},
is_ground_content = false,
})
-- the basic version of a bed - a sleeping mat
-- to facilitate upgrade path straw mat -> sleeping mat -> bed, this uses a nodebox
minetest.register_node("cottages:sleeping_mat", {
description = S("sleeping mat"),
drawtype = 'nodebox',
tiles = { 'cottages_sleepingmat.png' }, -- done by VanessaE
wield_image = 'cottages_sleepingmat.png',
inventory_image = 'cottages_sleepingmat.png',
sunlight_propagates = true,
paramtype = 'light',
paramtype2 = "facedir",
walkable = false,
groups = { snappy = 3 },
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "wallmounted",
},
node_box = {
type = "fixed",
fixed = {
{-0.48, -0.5,-0.48, 0.48, -0.45, 0.48},
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.48, -0.5,-0.48, 0.48, -0.25, 0.48},
}
},
is_ground_content = false,
})
-- furniture; possible replacement: 3dforniture:chair
minetest.register_node("cottages:bench", {
drawtype = "nodebox",
description = S("simple wooden bench"),
tiles = {"cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png", "cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = {
-- sitting area
{-0.5, -0.15, 0.1, 0.5, -0.05, 0.5},
-- stützen
{-0.4, -0.5, 0.2, -0.3, -0.15, 0.4},
{ 0.3, -0.5, 0.2, 0.4, -0.15, 0.4},
}
},
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, 0, 0.5, 0, 0.5},
}
},
is_ground_content = false,
})
-- a simple table; possible replacement: 3dforniture:table
local cottages_table_def = {
description = S("table"),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = {"cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
fixed = {
{ -0.1, -0.5, -0.1, 0.1, 0.3, 0.1},
{ -0.5, 0.3, -0.5, 0.5, 0.4, 0.5},
},
},
selection_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, 0.5, 0.4, 0.5},
},
},
is_ground_content = false,
}
-- search for the workbench in AdventureTest
local workbench = minetest.registered_nodes[ "workbench:3x3"];
if( workbench ) then
cottages_table_def.tiles = {workbench.tiles[1], cottages_table_def.tiles[1]};
cottages_table_def.on_rightclick = workbench.on_rightclick;
end
-- search for the workbench from RealTEst
workbench = minetest.registered_nodes[ "workbench:work_bench_birch"];
if( workbench ) then
cottages_table_def.tiles = {workbench.tiles[1], cottages_table_def.tiles[1]};
cottages_table_def.on_construct = workbench.on_construct;
cottages_table_def.can_dig = workbench.can_dig;
cottages_table_def.on_metadata_inventory_take = workbench.on_metadata_inventory_take;
cottages_table_def.on_metadata_inventory_move = workbench.on_metadata_inventory_move;
cottages_table_def.on_metadata_inventory_put = workbench.on_metadata_inventory_put;
end
minetest.register_node("cottages:table", cottages_table_def );
-- looks better than two slabs impersonating a shelf; also more 3d than a bookshelf
-- the infotext shows if it's empty or not
minetest.register_node("cottages:shelf", {
description = S("open storage shelf"),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = {"cottages_minimal_wood.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.3, -0.4, 0.5, 0.5},
{ 0.4, -0.5, -0.3, 0.5, 0.5, 0.5},
{ -0.5, -0.2, -0.3, 0.5, -0.1, 0.5},
{ -0.5, 0.3, -0.3, 0.5, 0.4, 0.5},
},
},
selection_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
},
},
on_construct = function(pos)
local meta = minetest.get_meta(pos);
meta:set_string("formspec",
"size[8,8]"..
"list[current_name;main;0,0;8,3;]"..
"list[current_player;main;0,4;8,4;]")
meta:set_string("infotext", S("open storage shelf"))
local inv = meta:get_inventory();
inv:set_size("main", 24);
end,
can_dig = function( pos,player )
local meta = minetest.get_meta( pos );
local inv = meta:get_inventory();
return inv:is_empty("main");
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
local meta = minetest.get_meta( pos );
meta:set_string('infotext', S('open storage shelf (in use)'));
end,
on_metadata_inventory_take = function(pos, listname, index, stack, player)
local meta = minetest.get_meta( pos );
local inv = meta:get_inventory();
if( inv:is_empty("main")) then
meta:set_string('infotext', S('open storage shelf (empty)'));
end
end,
is_ground_content = false,
})
-- so that the smoke from a furnace can get out of a building
minetest.register_node("cottages:stovepipe", {
description = S("stovepipe"),
drawtype = "nodebox",
tiles = {"cottages_steel_block.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
fixed = {
{ 0.20, -0.5, 0.20, 0.45, 0.5, 0.45},
},
},
selection_box = {
type = "fixed",
fixed = {
{ 0.20, -0.5, 0.20, 0.45, 0.5, 0.45},
},
},
is_ground_content = false,
})
-- this washing place can be put over a water source (it is open at the bottom)
minetest.register_node("cottages:washing", {
description = S("washing place"),
drawtype = "nodebox",
-- top, bottom, side1, side2, inner, outer
tiles = {"cottages_clay.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, 0.5, -0.2, -0.2},
{ -0.5, -0.5, -0.2, -0.4, 0.2, 0.5},
{ 0.4, -0.5, -0.2, 0.5, 0.2, 0.5},
{ -0.4, -0.5, 0.4, 0.4, 0.2, 0.5},
{ -0.4, -0.5, -0.2, 0.4, 0.2, -0.1},
},
},
selection_box = {
type = "fixed",
fixed = {
{ -0.5, -0.5, -0.5, 0.5, 0.2, 0.5},
},
},
on_rightclick = function(pos, node, player)
-- works only with water beneath
local node_under = minetest.get_node( {x=pos.x, y=(pos.y-1), z=pos.z} );
if( not( node_under ) or node_under.name == "ignore" or (node_under.name ~= 'default:water_source' and node_under.name ~= 'default:water_flowing')) then
minetest.chat_send_player( player:get_player_name(), S("Sorry. This washing place is out of water. Please place it above water!"));
else
minetest.chat_send_player( player:get_player_name(), S("You feel much cleaner after some washing."));
end
end,
is_ground_content = false,
})
---------------------------------------------------------------------------------------
-- crafting receipes
---------------------------------------------------------------------------------------
minetest.register_craft({
output = "cottages:bed_foot",
recipe = {
{cottages.craftitem_wool, "", "", },
{cottages.craftitem_wood, "", "", },
{cottages.craftitem_stick, "", "", }
}
})
minetest.register_craft({
output = "cottages:bed_head",
recipe = {
{"", "", cottages.craftitem_wool, },
{"", cottages.craftitem_stick, cottages.craftitem_wood, },
{"", "", cottages.craftitem_stick, }
}
})
minetest.register_craft({
output = "cottages:sleeping_mat 3",
recipe = {
{"cottages:wool_tent", "cottages:straw_mat","cottages:straw_mat" }
}
})
minetest.register_craft({
output = "cottages:table",
recipe = {
{"", cottages.craftitem_slab_wood, "", },
{"", cottages.craftitem_stick, "" }
}
})
minetest.register_craft({
output = "cottages:bench",
recipe = {
{"", cottages.craftitem_wood, "", },
{cottages.craftitem_stick, "", cottages.craftitem_stick, }
}
})
minetest.register_craft({
output = "cottages:shelf",
recipe = {
{cottages.craftitem_stick, cottages.craftitem_wood, cottages.craftitem_stick, },
{cottages.craftitem_stick, cottages.craftitem_wood, cottages.craftitem_stick, },
{cottages.craftitem_stick, "", cottages.craftitem_stick}
}
})
minetest.register_craft({
output = "cottages:washing 2",
recipe = {
{cottages.craftitem_stick, },
{cottages.craftitem_clay, },
}
})
minetest.register_craft({
output = "cottages:stovepipe 2",
recipe = {
{cottages.craftitem_steel, '', cottages.craftitem_steel},
}
})
| mit |
zhuhangyu/ABTestingGateway | admin/policy/del.lua | 22 | 4156 | local runtimeModule = require('abtesting.adapter.runtime')
local policyModule = require('abtesting.adapter.policy')
local redisModule = require('abtesting.utils.redis')
local systemConf = require('abtesting.utils.init')
local handler = require('abtesting.error.handler').handler
local utils = require('abtesting.utils.utils')
local ERRORINFO = require('abtesting.error.errcode').info
local cjson = require('cjson.safe')
local doresp = utils.doresp
local dolog = utils.dolog
local redisConf = systemConf.redisConf
local divtypes = systemConf.divtypes
local prefixConf = systemConf.prefixConf
local policyLib = prefixConf.policyLibPrefix
local runtimeLib = prefixConf.runtimeInfoPrefix
local domain_name = prefixConf.domainname
local policyID = ngx.var.arg_policyid
if policyID then
policyID = tonumber(ngx.var.arg_policyid)
if not policyID or policyID < 0 then
local info = ERRORINFO.PARAMETER_TYPE_ERROR
local desc = "policyID should be a positive Integer"
local response = doresp(info, desc)
dolog(info, desc)
ngx.say(response)
return
end
end
if not policyID then
local request_body = ngx.var.request_body
local postData = cjson.decode(request_body)
if not request_body then
-- ERRORCODE.PARAMETER_NONE
local info = ERRORINFO.PARAMETER_NONE
local desc = 'request_body or post data to get policyID'
local response = doresp(info, desc)
dolog(info, desc)
ngx.say(response)
return
end
if not postData then
-- ERRORCODE.PARAMETER_ERROR
local info = ERRORINFO.PARAMETER_ERROR
local desc = 'postData is not a json string'
local response = doresp(info, desc)
dolog(info, desc)
ngx.say(response)
return
end
policyID = postData.policyid
if not policyID then
local info = ERRORINFO.PARAMETER_ERROR
local desc = "policyID is needed"
local response = doresp(info, desc)
dolog(info, desc)
ngx.say(response)
return
end
policyID = tonumber(postData.policyid)
if not policyID or policyID < 0 then
local info = ERRORINFO.PARAMETER_TYPE_ERROR
local desc = "policyID should be a positive Integer"
local response = doresp(info, desc)
dolog(info, desc)
ngx.say(response)
return
end
end
local red = redisModule:new(redisConf)
local ok, err = red:connectdb()
if not ok then
local info = ERRORINFO.REDIS_CONNECT_ERROR
local response = doresp(info, err)
dolog(info, desc)
ngx.say(response)
return
end
local pfunc = function()
local runtimeMod = runtimeModule:new(red.redis, runtimeLib)
return runtimeMod:get(domain_name)
end
local status, info = xpcall(pfunc, handler)
if not status then
local errinfo = info[1]
local errstack = info[2]
local err, desc = errinfo[1], errinfo[2]
local response = doresp(err, desc)
dolog(err, desc, nil, errstack)
ngx.say(response)
return
end
local divModname = info[1]
local divPolicy = info[2]
local userInfoModname = info[3]
if divPolicy and divPolicy ~= ngx.null then
local s, e = string.find(divPolicy, policyLib)
if s and e then
local sub = string.sub(divPolicy, e+1)
local _, _, num = string.find(sub, "(%d+)")
num = tonumber(num)
if num and num == policyID then
local response = doresp(ERRORINFO.POLICY_BUSY_ERROR, policyID)
ngx.say(response)
return
end
end
end
local pfunc = function()
local policyMod = policyModule:new(red.redis, policyLib)
return policyMod:del(policyID)
end
local status, info = xpcall(pfunc, handler)
if not status then
local errinfo = info[1]
local errstack = info[2]
local err, desc = errinfo[1], errinfo[2]
local response = doresp(err, desc)
dolog(err, desc, nil, errstack)
ngx.say(response)
return
end
local response = doresp(ERRORINFO.SUCCESS)
ngx.say(response)
| mit |
Jennal/cocos2dx-3.2-qt | cocos/scripting/lua-bindings/script/DrawPrimitives.lua | 57 | 12038 | local dp_initialized = false
local dp_shader = nil
local dp_colorLocation = -1
local dp_color = { 1.0, 1.0, 1.0, 1.0 }
local dp_pointSizeLocation = -1
local dp_pointSize = 1.0
local SHADER_NAME_POSITION_U_COLOR = "ShaderPosition_uColor"
local targetPlatform = CCApplication:getInstance():getTargetPlatform()
local function lazy_init()
if not dp_initialized then
dp_shader = CCShaderCache:getInstance():getProgram(SHADER_NAME_POSITION_U_COLOR)
--dp_shader:retain()
if nil ~= dp_shader then
dp_colorLocation = gl.getUniformLocation( dp_shader:getProgram(), "u_color")
dp_pointSizeLocation = gl.getUniformLocation( dp_shader:getProgram(), "u_pointSize")
dp_Initialized = true
end
end
if nil == dp_shader then
print("Error:dp_shader is nil!")
return false
end
return true
end
local function setDrawProperty()
gl.glEnableVertexAttribs( CCConstants.VERTEX_ATTRIB_FLAG_POSITION )
dp_shader:use()
dp_shader:setUniformsForBuiltins()
dp_shader:setUniformLocationWith4fv(dp_colorLocation, dp_color, 1)
end
function ccDrawInit()
lazy_init()
end
function ccDrawFree()
dp_initialized = false
end
function ccDrawColor4f(r,g,b,a)
dp_color[1] = r
dp_color[2] = g
dp_color[3] = b
dp_color[4] = a
end
function ccPointSize(pointSize)
dp_pointSize = pointSize * CCDirector:getInstance():getContentScaleFactor()
end
function ccDrawColor4B(r,g,b,a)
dp_color[1] = r / 255.0
dp_color[2] = g / 255.0
dp_color[3] = b / 255.0
dp_color[4] = a / 255.0
end
function ccDrawPoint(point)
if not lazy_init() then
return
end
local vertexBuffer = { }
local function initBuffer()
vertexBuffer.buffer_id = gl.createBuffer()
gl.bindBuffer(gl.ARRAY_BUFFER,vertexBuffer.buffer_id)
local vertices = { point.x,point.y}
gl.bufferData(gl.ARRAY_BUFFER,2,vertices,gl.STATIC_DRAW)
gl.bindBuffer(gl.ARRAY_BUFFER, 0)
end
initBuffer()
setDrawProperty()
dp_shader:setUniformLocationWith1f(dp_pointSizeLocation, dp_pointSize)
gl.bindBuffer(gl.ARRAY_BUFFER,vertexBuffer.buffer_id)
gl.vertexAttribPointer(CCConstants.VERTEX_ATTRIB_POSITION, 2, gl.FLOAT, false, 0, 0)
gl.drawArrays(gl.POINTS,0,1)
gl.bindBuffer(gl.ARRAY_BUFFER,0)
end
function ccDrawPoints(points,numOfPoint)
if not lazy_init() then
return
end
local vertexBuffer = {}
local i = 1
local function initBuffer()
vertexBuffer.buffer_id = gl.createBuffer()
gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer.buffer_id)
local vertices = {}
for i = 1, numOfPoint do
vertices[2 * i - 1] = points[i].x
vertices[2 * i] = points[i].y
end
gl.bufferData(gl.ARRAY_BUFFER, numOfPoint * 2, vertices, gl.STATIC_DRAW)
gl.bindBuffer(gl.ARRAY_BUFFER, 0)
end
initBuffer()
setDrawProperty()
dp_shader:setUniformLocationWith1f(dp_pointSizeLocation, dp_pointSize)
gl.bindBuffer(gl.ARRAY_BUFFER,vertexBuffer.buffer_id)
gl.vertexAttribPointer(CCConstants.VERTEX_ATTRIB_POSITION, 2, gl.FLOAT, false, 0, 0)
gl.drawArrays(gl.POINTS,0,numOfPoint)
gl.bindBuffer(gl.ARRAY_BUFFER,0)
end
function ccDrawLine(origin,destination)
if not lazy_init() then
return
end
local vertexBuffer = {}
local function initBuffer()
vertexBuffer.buffer_id = gl.createBuffer()
gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer.buffer_id)
local vertices = { origin.x, origin.y, destination.x, destination.y}
gl.bufferData(gl.ARRAY_BUFFER,4,vertices,gl.STATIC_DRAW)
gl.bindBuffer(gl.ARRAY_BUFFER, 0)
end
initBuffer()
setDrawProperty()
gl.bindBuffer(gl.ARRAY_BUFFER,vertexBuffer.buffer_id)
gl.vertexAttribPointer(CCConstants.VERTEX_ATTRIB_POSITION, 2, gl.FLOAT, false, 0, 0)
gl.drawArrays(gl.LINES ,0,2)
gl.bindBuffer(gl.ARRAY_BUFFER,0)
end
function ccDrawPoly(points,numOfPoints,closePolygon)
if not lazy_init() then
return
end
local vertexBuffer = {}
local i = 1
local function initBuffer()
vertexBuffer.buffer_id = gl.createBuffer()
gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer.buffer_id)
local vertices = {}
for i = 1, numOfPoints do
vertices[2 * i - 1] = points[i].x
vertices[2 * i] = points[i].y
end
gl.bufferData(gl.ARRAY_BUFFER, numOfPoints * 2, vertices, gl.STATIC_DRAW)
gl.bindBuffer(gl.ARRAY_BUFFER, 0)
end
initBuffer()
setDrawProperty()
gl.bindBuffer(gl.ARRAY_BUFFER,vertexBuffer.buffer_id)
gl.vertexAttribPointer(CCConstants.VERTEX_ATTRIB_POSITION, 2, gl.FLOAT, false, 0, 0)
if closePolygon then
gl.drawArrays(gl.LINE_LOOP , 0, numOfPoints)
else
gl.drawArrays(gl.LINE_STRIP, 0, numOfPoints)
end
gl.bindBuffer(gl.ARRAY_BUFFER,0)
end
function ccDrawSolidPoly(points,numOfPoints,color)
if not lazy_init() then
return
end
local vertexBuffer = {}
local i = 1
local function initBuffer()
vertexBuffer.buffer_id = gl.createBuffer()
gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer.buffer_id)
local vertices = {}
for i = 1, numOfPoints do
vertices[2 * i - 1] = points[i].x
vertices[2 * i] = points[i].y
end
gl.bufferData(gl.ARRAY_BUFFER, numOfPoints * 2, vertices, gl.STATIC_DRAW)
gl.bindBuffer(gl.ARRAY_BUFFER, 0)
end
initBuffer()
gl.glEnableVertexAttribs( CCConstants.VERTEX_ATTRIB_FLAG_POSITION )
dp_shader:use()
dp_shader:setUniformsForBuiltins()
dp_shader:setUniformLocationWith4fv(dp_colorLocation, color, 1)
gl.bindBuffer(gl.ARRAY_BUFFER,vertexBuffer.buffer_id)
gl.vertexAttribPointer(CCConstants.VERTEX_ATTRIB_POSITION, 2, gl.FLOAT, false, 0, 0)
gl.drawArrays(gl.TRIANGLE_FAN , 0, numOfPoints)
gl.bindBuffer(gl.ARRAY_BUFFER,0)
end
function ccDrawRect(origin,destination)
ccDrawLine(CCPoint:__call(origin.x, origin.y), CCPoint:__call(destination.x, origin.y))
ccDrawLine(CCPoint:__call(destination.x, origin.y), CCPoint:__call(destination.x, destination.y))
ccDrawLine(CCPoint:__call(destination.x, destination.y), CCPoint:__call(origin.x, destination.y))
ccDrawLine(CCPoint:__call(origin.x, destination.y), CCPoint:__call(origin.x, origin.y))
end
function ccDrawSolidRect( origin,destination,color )
local vertices = { origin, CCPoint:__call(destination.x, origin.y) , destination, CCPoint:__call(origin.x, destination.y) }
ccDrawSolidPoly(vertices,4,color)
end
function ccDrawCircleScale( center, radius, angle, segments,drawLineToCenter,scaleX,scaleY)
if not lazy_init() then
return
end
local additionalSegment = 1
if drawLineToCenter then
additionalSegment = additionalSegment + 1
end
local vertexBuffer = { }
local function initBuffer()
local coef = 2.0 * math.pi / segments
local i = 1
local vertices = {}
vertexBuffer.buffer_id = gl.createBuffer()
gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer.buffer_id)
for i = 1, segments + 1 do
local rads = (i - 1) * coef
local j = radius * math.cos(rads + angle) * scaleX + center.x
local k = radius * math.sin(rads + angle) * scaleY + center.y
vertices[i * 2 - 1] = j
vertices[i * 2] = k
end
vertices[(segments + 2) * 2 - 1] = center.x
vertices[(segments + 2) * 2] = center.y
gl.bufferData(gl.ARRAY_BUFFER, (segments + 2) * 2, vertices, gl.STATIC_DRAW)
gl.bindBuffer(gl.ARRAY_BUFFER, 0)
end
initBuffer()
setDrawProperty()
gl.bindBuffer(gl.ARRAY_BUFFER,vertexBuffer.buffer_id)
gl.vertexAttribPointer(CCConstants.VERTEX_ATTRIB_POSITION, 2, gl.FLOAT, false, 0, 0)
gl.drawArrays(gl.LINE_STRIP , 0, segments + additionalSegment)
gl.bindBuffer(gl.ARRAY_BUFFER,0)
end
function ccDrawCircle(center, radius, angle, segments, drawLineToCenter)
ccDrawCircleScale(center, radius, angle, segments, drawLineToCenter, 1.0, 1.0)
end
function ccDrawSolidCircle(center, radius, angle, segments,scaleX,scaleY)
if not lazy_init() then
return
end
local vertexBuffer = { }
local function initBuffer()
local coef = 2.0 * math.pi / segments
local i = 1
local vertices = {}
vertexBuffer.buffer_id = gl.createBuffer()
gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer.buffer_id)
for i = 1, segments + 1 do
local rads = (i - 1) * coef
local j = radius * math.cos(rads + angle) * scaleX + center.x
local k = radius * math.sin(rads + angle) * scaleY + center.y
vertices[i * 2 - 1] = j
vertices[i * 2] = k
end
vertices[(segments + 2) * 2 - 1] = center.x
vertices[(segments + 2) * 2] = center.y
gl.bufferData(gl.ARRAY_BUFFER, (segments + 2) * 2, vertices, gl.STATIC_DRAW)
gl.bindBuffer(gl.ARRAY_BUFFER, 0)
end
initBuffer()
setDrawProperty()
gl.bindBuffer(gl.ARRAY_BUFFER,vertexBuffer.buffer_id)
gl.vertexAttribPointer(CCConstants.VERTEX_ATTRIB_POSITION, 2, gl.FLOAT, false, 0, 0)
gl.drawArrays(gl.TRIANGLE_FAN , 0, segments + 1)
gl.bindBuffer(gl.ARRAY_BUFFER,0)
end
function ccDrawQuadBezier(origin, control, destination, segments)
if not lazy_init() then
return
end
local vertexBuffer = { }
local function initBuffer()
local vertices = { }
local i = 1
local t = 0.0
for i = 1, segments do
vertices[2 * i - 1] = math.pow(1 - t,2) * origin.x + 2.0 * (1 - t) * t * control.x + t * t * destination.x
vertices[2 * i] = math.pow(1 - t,2) * origin.y + 2.0 * (1 - t) * t * control.y + t * t * destination.y
t = t + 1.0 / segments
end
vertices[2 * (segments + 1) - 1] = destination.x
vertices[2 * (segments + 1)] = destination.y
vertexBuffer.buffer_id = gl.createBuffer()
gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer.buffer_id)
gl.bufferData(gl.ARRAY_BUFFER, (segments + 1) * 2, vertices, gl.STATIC_DRAW)
gl.bindBuffer(gl.ARRAY_BUFFER, 0)
end
initBuffer()
setDrawProperty()
gl.bindBuffer(gl.ARRAY_BUFFER,vertexBuffer.buffer_id)
gl.vertexAttribPointer(CCConstants.VERTEX_ATTRIB_POSITION, 2, gl.FLOAT, false, 0, 0)
gl.drawArrays(gl.LINE_STRIP , 0, segments + 1)
gl.bindBuffer(gl.ARRAY_BUFFER,0)
end
function ccDrawCubicBezier(origin, control1, control2, destination, segments)
if not lazy_init then
return
end
local vertexBuffer = { }
local function initBuffer()
local vertices = { }
local t = 0
local i = 1
for i = 1, segments do
vertices[2 * i - 1] = math.pow(1 - t,3) * origin.x + 3.0 * math.pow(1 - t, 2) * t * control1.x + 3.0 * (1 - t) * t * t * control2.x + t * t * t * destination.x
vertices[2 * i] = math.pow(1 - t,3) * origin.y + 3.0 * math.pow(1 - t, 2) * t * control1.y + 3.0 * (1 - t) * t * t * control2.y + t * t * t * destination.y
t = t + 1.0 / segments
end
vertices[2 * (segments + 1) - 1] = destination.x
vertices[2 * (segments + 1)] = destination.y
vertexBuffer.buffer_id = gl.createBuffer()
gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer.buffer_id)
gl.bufferData(gl.ARRAY_BUFFER, (segments + 1) * 2, vertices, gl.STATIC_DRAW)
gl.bindBuffer(gl.ARRAY_BUFFER, 0)
end
initBuffer()
setDrawProperty()
gl.bindBuffer(gl.ARRAY_BUFFER,vertexBuffer.buffer_id)
gl.vertexAttribPointer(CCConstants.VERTEX_ATTRIB_POSITION, 2, gl.FLOAT, false, 0, 0)
gl.drawArrays(gl.LINE_STRIP , 0, segments + 1)
gl.bindBuffer(gl.ARRAY_BUFFER,0)
end
| mit |
rlcevg/Zero-K | LuaUI/Widgets/chili/Controls/scrollpanel.lua | 12 | 10871 | --//=============================================================================
ScrollPanel = Control:Inherit{
classname = "scrollpanel",
padding = {0,0,0,0},
backgroundColor = {0,0,0,0},
scrollbarSize = 12,
scrollPosX = 0,
scrollPosY = 0,
verticalScrollbar = true,
horizontalScrollbar = true,
verticalSmartScroll = false, --// if control is scrolled to bottom, keep scroll when layout changes
smoothScroll = true,
smoothScrollTime = 0.7, --// in seconds
ignoreMouseWheel = false,
}
local this = ScrollPanel
local inherited = this.inherited
--//=============================================================================
local function smoothstep(x)
return x*x*(3 - 2*x)
end
--//=============================================================================
function ScrollPanel:SetScrollPos(x,y,inview)
if (self.smoothScroll) then
self._oldScrollPosX = self.scrollPosX
self._oldScrollPosY = self.scrollPosY
end
if (x) then
if (inview) then
x = x - self.clientArea[3] * 0.5
end
self.scrollPosX = x
if (self.contentArea) then
self.scrollPosX = clamp(0, self.contentArea[3] - self.clientArea[3], self.scrollPosX)
end
end
if (y) then
if (inview) then
y = y - self.clientArea[4] * 0.5
end
self.scrollPosY = y
if (self.contentArea) then
self.scrollPosY = clamp(0, self.contentArea[4] - self.clientArea[4], self.scrollPosY)
end
end
if (self.smoothScroll) then
if (self._oldScrollPosX ~= self.scrollPosX)or(self._oldScrollPosY ~= self.scrollPosY) then
self._smoothScrollEnd = Spring.GetTimer()
self._newScrollPosX = self.scrollPosX
self._newScrollPosY = self.scrollPosY
self.scrollPosX = self._oldScrollPosX
self.scrollPosY = self._oldScrollPosY
end
end
self:Invalidate()
end
function ScrollPanel:Update(...)
local trans = 1
if self.smoothScroll and self._smoothScrollEnd then
local trans = Spring.DiffTimers(Spring.GetTimer(), self._smoothScrollEnd)
trans = trans / self.smoothScrollTime
if (trans >= 1) then
self.scrollPosX = self._newScrollPosX
self.scrollPosY = self._newScrollPosY
self._smoothScrollEnd = nil
else
for n=1,3 do trans = smoothstep(trans) end
self.scrollPosX = self._oldScrollPosX * (1 - trans) + self._newScrollPosX * trans
self.scrollPosY = self._oldScrollPosY * (1 - trans) + self._newScrollPosY * trans
self:Invalidate()
end
end
inherited.Update(self, ...)
end
--//=============================================================================
function ScrollPanel:LocalToClient(x,y)
local ca = self.clientArea
return x - ca[1] + self.scrollPosX, y - ca[2] + self.scrollPosY
end
function ScrollPanel:ClientToLocal(x,y)
local ca = self.clientArea
return x + ca[1] - self.scrollPosX, y + ca[2] - self.scrollPosY
end
function ScrollPanel:ParentToClient(x,y)
local ca = self.clientArea
return x - self.x - ca[1] + self.scrollPosX, y - self.y - ca[2] + self.scrollPosY
end
function ScrollPanel:ClientToParent(x,y)
local ca = self.clientArea
return x + self.x + ca[1] - self.scrollPosX, y + self.y + ca[2] - self.scrollPosY
end
--//=============================================================================
function ScrollPanel:GetCurrentExtents()
local left = self.x
local top = self.y
local right = self.x + self.width
local bottom = self.y + self.height
if (left < minLeft) then minLeft = left end
if (top < minTop ) then minTop = top end
if (right > maxRight) then maxRight = right end
if (bottom > maxBottom) then maxBottom = bottom end
return minLeft, minTop, maxRight, maxBottom
end
--//=============================================================================
function ScrollPanel:_DetermineContentArea()
local minLeft, minTop, maxRight, maxBottom = self:GetChildrenCurrentExtents()
self.contentArea = {
0,
0,
maxRight,
maxBottom,
}
local contentArea = self.contentArea
local clientArea = self.clientArea
if (self.verticalScrollbar) then
if (contentArea[4]>clientArea[4]) then
if (not self._vscrollbar) then
self.padding[3] = self.padding[3] + self.scrollbarSize
end
self._vscrollbar = true
else
if (self._vscrollbar) then
self.padding[3] = self.padding[3] - self.scrollbarSize
end
self._vscrollbar = false
end
end
if (self.horizontalScrollbar) then
if (contentArea[3]>clientArea[3]) then
if (not self._hscrollbar) then
self.padding[4] = self.padding[4] + self.scrollbarSize
end
self._hscrollbar = true
else
if (self._hscrollbar) then
self.padding[4] = self.padding[4] - self.scrollbarSize
end
self._hscrollbar = false
end
end
self:UpdateClientArea()
local contentArea = self.contentArea
local clientArea = self.clientArea
if (contentArea[4] < clientArea[4]) then
contentArea[4] = clientArea[4]
end
if (contentArea[3] < clientArea[3]) then
contentArea[3] = clientArea[3]
end
end
--//=============================================================================
function ScrollPanel:UpdateLayout()
--self:_DetermineContentArea()
self:RealignChildren()
local before = ((self._vscrollbar and 1) or 0) + ((self._hscrollbar and 2) or 0)
self:_DetermineContentArea()
local now = ((self._vscrollbar and 1) or 0) + ((self._hscrollbar and 2) or 0)
if (before ~= now) then
self:RealignChildren()
end
self.scrollPosX = clamp(0, self.contentArea[3] - self.clientArea[3], self.scrollPosX)
local oldClamp = self.clampY or 0
self.clampY = self.contentArea[4] - self.clientArea[4]
if self.verticalSmartScroll and self.scrollPosY >= oldClamp then
self.scrollPosY = self.clampY
else
self.scrollPosY = clamp(0, self.clampY, self.scrollPosY)
end
return true;
end
--//=============================================================================
function ScrollPanel:IsRectInView(x,y,w,h)
if (not self.parent) then
return false
end
--//FIXME 1. don't create tables 2. merge somehow into Control:IsRectInView
local cx = x - self.scrollPosX
local cy = y - self.scrollPosY
local rect1 = {cx,cy,w,h}
local rect2 = {0,0,self.clientArea[3],self.clientArea[4]}
local inview = AreRectsOverlapping(rect1,rect2)
if not(inview) then
return false
end
local px,py = self:ClientToParent(x,y)
return (self.parent):IsRectInView(px,py,w,h)
end
--//=============================================================================
function ScrollPanel:DrawControl()
--// gets overriden by the skin/theme
end
function ScrollPanel:_DrawInClientArea(fnc,...)
local clientX,clientY,clientWidth,clientHeight = unpack4(self.clientArea)
if (self.safeOpengl) then
local sx,sy = self:LocalToScreen(clientX,clientY)
sy = select(2,gl.GetViewSizes()) - (sy + clientHeight)
PushScissor(sx,sy,clientWidth,clientHeight)
end
gl.PushMatrix()
gl.Translate(math.floor(self.x + clientX - self.scrollPosX),math.floor(self.y + clientY - self.scrollPosY),0)
fnc(...)
gl.PopMatrix()
if (self.safeOpengl) then
PopScissor()
end
end
--//=============================================================================
function ScrollPanel:IsAboveHScrollbars(x,y)
if (not self._hscrollbar) then return false end
return y >= (self.height - self.scrollbarSize) --FIXME
end
function ScrollPanel:IsAboveVScrollbars(x,y)
if (not self._vscrollbar) then return false end
return x >= (self.width - self.scrollbarSize) --FIXME
end
function ScrollPanel:HitTest(x, y)
if self:IsAboveVScrollbars(x,y) then
return self
end
if self:IsAboveHScrollbars(x,y) then
return self
end
return inherited.HitTest(self, x, y)
end
function ScrollPanel:MouseDown(x, y, ...)
if self:IsAboveVScrollbars(x,y) then
self._vscrolling = true
local clientArea = self.clientArea
local cy = y - clientArea[2]
self.scrollPosY = (cy/clientArea[4])*self.contentArea[4] - 0.5*clientArea[4]
self.scrollPosY = clamp(0, self.contentArea[4] - clientArea[4], self.scrollPosY)
self:Invalidate()
return self
end
if self:IsAboveHScrollbars(x,y) then
self._hscrolling = true
local clientArea = self.clientArea
local cx = x - clientArea[1]
self.scrollPosX = (cx/clientArea[3])*self.contentArea[3] - 0.5*clientArea[3]
self.scrollPosX = clamp(0, self.contentArea[3] - clientArea[3], self.scrollPosX)
self:Invalidate()
return self
end
return inherited.MouseDown(self, x, y, ...)
end
function ScrollPanel:MouseMove(x, y, dx, dy, ...)
if self._vscrolling then
local clientArea = self.clientArea
local cy = y - clientArea[2]
self.scrollPosY = (cy/clientArea[4])*self.contentArea[4] - 0.5*clientArea[4]
self.scrollPosY = clamp(0, self.contentArea[4] - clientArea[4], self.scrollPosY)
self:Invalidate()
return self
end
if self._hscrolling then
local clientArea = self.clientArea
local cx = x - clientArea[1]
self.scrollPosX = (cx/clientArea[3])*self.contentArea[3] - 0.5*clientArea[3]
self.scrollPosX = clamp(0, self.contentArea[3] - clientArea[3], self.scrollPosX)
self:Invalidate()
return self
end
local old = (self._hHovered and 1 or 0) + (self._vHovered and 2 or 0)
self._hHovered = self:IsAboveHScrollbars(x,y)
self._vHovered = self:IsAboveVScrollbars(x,y)
local new = (self._hHovered and 1 or 0) + (self._vHovered and 2 or 0)
if (new ~= old) then
self:Invalidate()
end
return inherited.MouseMove(self, x, y, dx, dy, ...)
end
function ScrollPanel:MouseUp(x, y, ...)
if self._vscrolling then
self._vscrolling = nil
local clientArea = self.clientArea
local cy = y - clientArea[2]
self.scrollPosY = (cy/clientArea[4])*self.contentArea[4] - 0.5*clientArea[4]
self.scrollPosY = clamp(0, self.contentArea[4] - clientArea[4], self.scrollPosY)
self:Invalidate()
return self
end
if self._hscrolling then
self._hscrolling = nil
local clientArea = self.clientArea
local cx = x - clientArea[1]
self.scrollPosX = (cx/clientArea[3])*self.contentArea[3] - 0.5*clientArea[3]
self.scrollPosX = clamp(0, self.contentArea[3] - clientArea[3], self.scrollPosX)
self:Invalidate()
return self
end
return inherited.MouseUp(self, x, y, ...)
end
function ScrollPanel:MouseWheel(x, y, up, value, ...)
if self._vscrollbar and not self.ignoreMouseWheel then
self.scrollPosY = self.scrollPosY - value*30
self.scrollPosY = clamp(0, self.contentArea[4] - self.clientArea[4], self.scrollPosY)
self:Invalidate()
return self
end
return inherited.MouseWheel(self, x, y, up, value, ...)
end
function ScrollPanel:MouseOut(...)
inherited.MouseOut(self, ...)
self._hHovered = false
self._vHovered = false
self:Invalidate()
end
| gpl-2.0 |
DanielTea/Unity_AI | unity3d-roll-a-ball-master/Atari2/Master.lua | 1 | 6931 | local classic = require 'classic'
local signal = require 'posix.signal'
local Singleton = require 'structures/Singleton'
local Agent = require 'Agent'
local Display = require 'Display'
local Validation = require 'Validation'
local Master = classic.class('Master')
-- Sets up environment and agent
function Master:_init(opt)
self.opt = opt
self.verbose = opt.verbose
self.learnStart = opt.learnStart
self.progFreq = opt.progFreq
self.reportWeights = opt.reportWeights
self.noValidation = opt.noValidation
self.valFreq = opt.valFreq
self.experiments = opt.experiments
self._id = opt._id
-- Set up singleton global object for transferring step
self.globals = Singleton({step = 1}) -- Initial step
-- Initialise environment
log.info('Setting up ' .. opt.env)
local Env = require(opt.env)
self.env = Env(opt) -- Environment instantiation
-- Create DQN agent
log.info('Creating DQN')
self.agent = Agent(opt)
if paths.filep(opt.network) then
-- Load saved agent if specified
log.info('Loading pretrained network weights')
self.agent:loadWeights(opt.network)
elseif paths.filep(paths.concat(opt.experiments, opt._id, 'agent.t7')) then
-- Ask to load saved agent if found in experiment folder (resuming training)
-- log.info('Saved agent found - load (y/n)?')
-- if io.read() == 'y' then
log.info('Loading saved agent')
self.agent = torch.load(paths.concat(opt.experiments, opt._id, 'agent.t7'))
-- Reset globals (step) from agent
Singleton.setInstance(self.agent.globals)
self.globals = Singleton.getInstance()
-- Switch saliency style
self.agent:setSaliency(opt.saliency)
--end
end
-- Start gaming
log.info('Starting game: ' .. opt.game)
local state = self.env:start()
-- Set up display (if available)
self.hasDisplay = false
if opt.displaySpec then
self.hasDisplay = true
self.display = Display(opt, self.env:getDisplay())
end
-- Set up validation (with display if available)
self.validation = Validation(opt, self.agent, self.env, self.display)
classic.strict(self)
end
-- Trains agent
function Master:train()
log.info('Training mode')
-- Catch CTRL-C to save
self:catchSigInt()
-- Daniel reduce race condition set new game flag
while file_exists('/media/daniel/BigNeuronalNetwo/NewTests/unity3d-roll-a-ball-master/unitySWSem.txt') == true do
end
file = io.open('/media/daniel/BigNeuronalNetwo/NewTests/unity3d-roll-a-ball-master/networkSWSem.txt','w')
file:close()
file = io.open("startgame.txt", "w")
file:write('1')
file:close()
os.remove('/media/daniel/BigNeuronalNetwo/NewTests/unity3d-roll-a-ball-master/networkSWSem.txt')
local reward, state, terminal = 0, self.env:start(), false
-- Set environment and agent to training mode
self.env:training()
self.agent:training()
-- Training variables (reported in verbose mode)
local episode = 1
local episodeScore = reward
-- Training loop
local initStep = self.globals.step -- Extract step
local stepStrFormat = '%0' .. (math.floor(math.log10(self.opt.steps)) + 1) .. 'd' -- String format for padding step with zeros
for step = initStep, self.opt.steps do
self.globals.step = step -- Pass step number to globals for use in other modules
-- Observe results of previous transition (r, s', terminal') and choose next action (index)
local action = self.agent:observe(reward, state, terminal) -- As results received, learn in training mode
if not terminal then
-- Act on environment (to cause transition)
reward, state, terminal = self.env:step(action)
-- Track score
episodeScore = episodeScore + reward
else
if self.verbose then
-- Print score for episode
log.info('Steps: ' .. string.format(stepStrFormat, step) .. '/' .. self.opt.steps .. ' | Episode ' .. episode .. ' | Score: ' .. episodeScore)
end
-- Start a new episode
episode = episode + 1
-- Daniel reduce race condition set new game flag
while file_exists('/media/daniel/BigNeuronalNetwo/NewTests/unity3d-roll-a-ball-master/unitySWSem.txt') == true do
end
file = io.open('/media/daniel/BigNeuronalNetwo/NewTests/unity3d-roll-a-ball-master/networkSWSem.txt','w')
file:close()
file = io.open("startgame.txt", "w")
file:write('1')
file:close()
os.remove('/media/daniel/BigNeuronalNetwo/NewTests/unity3d-roll-a-ball-master/networkSWSem.txt')
reward, state, terminal = 0, self.env:start(), false
episodeScore = reward -- Reset episode score
end
-- Display (if available)
if self.hasDisplay then
self.display:display(self.agent, self.env:getDisplay())
end
-- Trigger learning after a while (wait to accumulate experience)
if step == self.learnStart then
log.info('Learning started')
end
-- Report progress
if step % self.progFreq == 0 then
log.info('Steps: ' .. string.format(stepStrFormat, step) .. '/' .. self.opt.steps)
-- Report weight and weight gradient statistics
if self.reportWeights then
local reports = self.agent:report()
for r = 1, #reports do
log.info(reports[r])
end
end
end
-- Validate
if not self.noValidation and step >= self.learnStart and step % self.valFreq == 0 then
self.validation:validate() -- Sets env and agent to evaluation mode and then back to training mode
log.info('Resuming training')
-- Start new game (as previous one was interrupted)
-- Daniel reduce race condition set new game flag
while file_exists('/media/daniel/BigNeuronalNetwo/NewTests/unity3d-roll-a-ball-master/unitySWSem.txt') == true do
end
file = io.open('/media/daniel/BigNeuronalNetwo/NewTests/unity3d-roll-a-ball-master/networkSWSem.txt','w')
file:close()
file = io.open("startgame.txt", "w")
file:write('1')
file:close()
os.remove('/media/daniel/BigNeuronalNetwo/NewTests/unity3d-roll-a-ball-master/networkSWSem.txt')
reward, state, terminal = 0, self.env:start(), false
episodeScore = reward
end
end
log.info('Finished training')
torch.save(paths.concat(self.experiments, self._id, 'agent.t7'), self.agent) -- Save agent to resume training
log.info('saved agent')
end
function Master:evaluate()
self.validation:evaluate() -- Sets env and agent to evaluation mode
end
-- Sets up SIGINT (Ctrl+C) handler to save network before quitting
function Master:catchSigInt()
signal.signal(signal.SIGINT, function(signum)
log.warn('SIGINT received')
log.info('Save agent (y/n)?')
if io.read() == 'y' then
log.info('Saving agent')
torch.save(paths.concat(self.experiments, self._id, 'agent.t7'), self.agent) -- Save agent to resume training
end
log.warn('Exiting')
os.exit(128 + signum)
end)
end
return Master
| mit |
rlcevg/Zero-K | scripts/tankriotraider.lua | 18 | 5913 | -- linear constant 65536
include "constants.lua"
local main, nose, nosefan1, nosefan2,
turret, sleeve, barrel1, flare1, barrel2, flare2,
sparkcenter, sparkcenter2,
door1, door2, rud1, rud2, mainfan1, mainfan2,
wheels1, wheels2, wheels3, wheels4, wheels5, wheels6, wheels7,
tracks1, tracks2, tracks3, tracks4 =
piece('main', 'nose', 'nosefan1', 'nosefan2',
'turret', 'sleeve', 'barrel1', 'flare1', 'barrel2', 'flare2',
'sparkcenter', 'sparkcenter2',
'door1', 'door2', 'rud1', 'rud2', 'mainfan1', 'mainfan2',
'wheels1', 'wheels2', 'wheels3', 'wheels4', 'wheels5', 'wheels6', 'wheels7',
'tracks1', 'tracks2', 'tracks3', 'tracks4')
local moving, once, animCount = false,true,0
-- Signal definitions
local SIG_Walk = 2
local SIG_Restore = 1
local SIG_AIM1 = 1
local ANIM_SPEED = 50
local RESTORE_DELAY = 3000
local TURRET_TURN_SPEED = 500
local GUN_TURN_SPEED = 150
local WHEEL_TURN_SPEED1 = 480
local WHEEL_TURN_SPEED1_ACCELERATION = 75
local WHEEL_TURN_SPEED1_DECELERATION = 200
local smokePiece = {main, turret}
local function RestoreAfterDelay()
Signal(SIG_Restore)
SetSignalMask(SIG_Restore)
Sleep(RESTORE_DELAY)
Turn(turret, y_axis, math.rad(0), math.rad(TURRET_TURN_SPEED/2))
Turn(sleeve, x_axis, math.rad(0), math.rad(TURRET_TURN_SPEED/2))
end
function AnimationControl()
local current_tracks = 0
while true do
EmitSfx(sparkcenter, 1024)
Move(sparkcenter, z_axis, 2, 1)
WaitForMove(sparkcenter, z_axis)
Move(sparkcenter, z_axis, 0, 1)
WaitForMove(sparkcenter, z_axis)
if moving or once then
if current_tracks == 0 then
Show(tracks1)
Hide(tracks4)
current_tracks = current_tracks + 1
elseif current_tracks == 1 then
Show(tracks2)
Hide(tracks1)
current_tracks = current_tracks + 1
elseif current_tracks == 2 then
Show(tracks3)
Hide(tracks2)
current_tracks = current_tracks + 1
elseif current_tracks == 3 then
Show(tracks4)
Hide(tracks3)
current_tracks = 0
end
once = false
end
animCount = animCount + 1
Sleep(ANIM_SPEED)
end
end
local function Moving()
Signal(SIG_Walk)
SetSignalMask(SIG_Walk)
Spin(wheels1, x_axis, WHEEL_TURN_SPEED1, WHEEL_TURN_SPEED1_ACCELERATION)
Spin(wheels2, x_axis, WHEEL_TURN_SPEED1, WHEEL_TURN_SPEED1_ACCELERATION)
Spin(wheels3, x_axis, WHEEL_TURN_SPEED1, WHEEL_TURN_SPEED1_ACCELERATION)
Spin(wheels4, x_axis, WHEEL_TURN_SPEED1, WHEEL_TURN_SPEED1_ACCELERATION)
Spin(wheels5, x_axis, WHEEL_TURN_SPEED1, WHEEL_TURN_SPEED1_ACCELERATION)
Spin(wheels6, x_axis, WHEEL_TURN_SPEED1, WHEEL_TURN_SPEED1_ACCELERATION)
Spin(wheels7, x_axis, WHEEL_TURN_SPEED1, WHEEL_TURN_SPEED1_ACCELERATION)
end
local function Stopping()
Signal(SIG_Walk)
SetSignalMask(SIG_Walk)
-- I don't like insta braking. It's not perfect but works for most cases.
-- Probably looks goofy when the unit is turtling,, i.e. does not become faster as time increases..
once = animCount*ANIM_SPEED/1000
StopSpin(wheels1, x_axis, WHEEL_TURN_SPEED1_DECELERATION)
StopSpin(wheels2, x_axis, WHEEL_TURN_SPEED1_DECELERATION)
StopSpin(wheels3, x_axis, WHEEL_TURN_SPEED1_DECELERATION)
StopSpin(wheels4, x_axis, WHEEL_TURN_SPEED1_DECELERATION)
StopSpin(wheels5, x_axis, WHEEL_TURN_SPEED1_DECELERATION)
StopSpin(wheels6, x_axis, WHEEL_TURN_SPEED1_DECELERATION)
StopSpin(wheels7, x_axis, WHEEL_TURN_SPEED1_DECELERATION)
end
function script.StartMoving()
moving = true
animCount = 0
StartThread(Moving)
end
function script.StopMoving()
moving = false
StartThread(Stopping)
end
-- Weapons
function script.AimFromWeapon1()
return turret
end
function script.QueryWeapon1()
return sparkcenter2
end
function script.AimWeapon1(heading, pitch)
Signal(SIG_AIM1)
SetSignalMask(SIG_AIM1)
Turn(turret, y_axis, heading, math.rad(TURRET_TURN_SPEED))
Turn(sleeve, x_axis, -pitch, math.rad(GUN_TURN_SPEED))
WaitForTurn(turret, y_axis)
WaitForTurn(sleeve, x_axis)
StartThread(RestoreAfterDelay)
return true
--[[
local fx, _, fz = Spring.GetUnitPiecePosition(unitID, firepoint)
local tx, _, tz = Spring.GetUnitPiecePosition(unitID, turret)
local pieceHeading = math.pi * Spring.GetHeadingFromVector(fx-tx,fz-tz) * 2^-15
local headingDiff = math.abs((heading+pieceHeading)%(math.pi*2) - math.pi)
if headingDiff > 2.6 then
Turn(turret, y_axis, heading)
Turn(sleeve, x_axis, -pitch)
StartThread(RestoreAfterDelay)
-- EmitSfx works if the turret takes no time to turn and there is no waitForTurn
return true
else
Turn(turret, y_axis, heading, math.rad(TURRET_TURN_SPEED))
Turn(sleeve, x_axis, -pitch, math.rad(GUN_TURN_SPEED))
StartThread(RestoreAfterDelay)
return false
end
--]]
end
local function Recoil()
Move(barrel1, z_axis, -3.5)
Move(barrel2, z_axis, -3.5)
Sleep(150)
Move(barrel1, z_axis, 0, 10)
Move(barrel2, z_axis, 0, 10)
end
function script.Shot(num)
--[[
Turn(firepoint, y_axis, math.rad(25))
EmitSfx(firepoint, FIRE_W2)
Turn(firepoint, y_axis, - math.rad(25))
EmitSfx(firepoint, FIRE_W2)
Turn(firepoint, y_axis, 0)
--]]
StartThread(Recoil)
end
function script.Killed(severity, corpsetype)
if severity <= 25 then
corpsetype = 1
Explode(main, sfxNone)
Explode(turret, sfxNone)
return 1
end
if severity <= 50 then
corpsetype = 1
Explode(main, sfxNone)
Explode(turret,sfxNone)
Explode(barrel1, sfxFall + sfxSmoke + sfxFire)
return 1
else
corpsetype = 2
Explode(main, sfxNone)
Explode(turret, sfxNone)
Explode(barrel2, sfxFall + sfxSmoke + sfxFire)
Explode(tracks1, sfxShatter + sfxSmoke + sfxFire)
Hide(tracks2)
Hide(tracks3)
Hide(tracks4)
return 2
end
return corpsetype
end
function script.Create()
moving = false
Turn(sparkcenter2, x_axis, math.rad(7))
Hide(tracks1)
Hide(tracks2)
Hide(tracks3)
while select(5, Spring.GetUnitHealth(unitID)) < 1 do
Sleep(250)
end
StartThread(AnimationControl)
StartThread(SmokeUnit, smokePiece)
end | gpl-2.0 |
ViolyS/RayUI_VS | Interface/AddOns/RayUI/modules/skins/blizzard/loot.lua | 1 | 12679 | ----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Skins")
local S = _Skins
local function GroupLootDropDown_Initialize()
local info = Lib_UIDropDownMenu_CreateInfo()
info.isTitle = 1
info.text = MASTER_LOOTER
info.fontObject = GameFontNormalLeft
info.notCheckable = 1
Lib_UIDropDownMenu_AddButton(info)
info = Lib_UIDropDownMenu_CreateInfo()
info.notCheckable = 1
info.text = ASSIGN_LOOT
info.func = MasterLooterFrame_Show
Lib_UIDropDownMenu_AddButton(info)
info.text = REQUEST_ROLL
info.func = function() DoMasterLootRoll(LootFrame.selectedSlot) end
Lib_UIDropDownMenu_AddButton(info)
end
--Create the new group loot dropdown frame and initialize it
local RayUIGroupLootDropDown = CreateFrame("Frame", "RayUIGroupLootDropDown", UIParent, "Lib_UIDropDownMenuTemplate")
RayUIGroupLootDropDown:SetID(1)
RayUIGroupLootDropDown:Hide()
Lib_UIDropDownMenu_Initialize(RayUIGroupLootDropDown, nil, "MENU")
RayUIGroupLootDropDown.initialize = GroupLootDropDown_Initialize
local function LoadSkin()
local autoLootTable = {}
if not(IsAddOnLoaded("Butsu") or IsAddOnLoaded("LovelyLoot") or IsAddOnLoaded("XLoot")) then
MasterLooterFrame:StripTextures()
S:SetBD(MasterLooterFrame)
MasterLooterFrame:SetFrameStrata("FULLSCREEN_DIALOG")
hooksecurefunc("MasterLooterFrame_Show", function()
local b = MasterLooterFrame.Item
if b then
local i = b.Icon
local icon = i:GetTexture()
local c = ITEM_QUALITY_COLORS[LootFrame.selectedQuality]
b:StripTextures()
i:SetTexture(icon)
i:SetTexCoord(.08, .92, .08, .92)
b.border = CreateFrame("Frame", nil, b)
b.border:SetBackdrop({
edgeFile = R["media"].blank,
bgFile = R["media"].blank,
edgeSize = R.mult,
insets = { left = -R.mult, right = -R.mult, top = -R.mult, bottom = -R.mult }
})
b.border:SetOutside(i)
b.border:SetBackdropBorderColor(c.r, c.g, c.b)
b.border:SetBackdropColor(0, 0, 0)
b.border:SetFrameLevel(b:GetFrameLevel() - 1)
end
for i=1, MasterLooterFrame:GetNumChildren() do
local child = select(i, MasterLooterFrame:GetChildren())
if child and not child.isSkinned and not child:GetName() then
if child:GetObjectType() == "Button" then
if child:GetPushedTexture() then
S:ReskinClose(child)
else
S:Reskin(child)
end
if child.Highlight then child.Highlight:SetAlpha(0) end
child.isSkinned = true
end
end
end
end)
local slotsize = 36
lootSlots = {}
local anchorframe = CreateFrame("Frame", "ItemLoot", R.UIParent)
anchorframe:SetSize(200, 15)
anchorframe:SetPoint("TOPLEFT", 300, -300)
local function OnClick(self, button)
if IsModifiedClick() then
if button == "LeftButton" then
HandleModifiedItemClick(GetLootSlotLink(self.id))
end
else
StaticPopup_Hide("CONFIRM_LOOT_DISTRIBUTION")
LootFrame.selectedSlot = self.id
LootFrame.selectedQuality = self.quality
LootFrame.selectedItemName = self.text:GetText()
LootFrame.selectedTexture = self.texture:GetTexture()
LootSlot(self.id)
end
end
local function OnEnter(self)
if GetLootSlotType(self.id) == LOOT_SLOT_ITEM then
GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
GameTooltip:SetLootItem(self.id)
CursorUpdate(self)
end
end
local function OnLeave(self)
GameTooltip:Hide()
ResetCursor()
end
local function CreateLootSlot(self, id)
local slot = CreateFrame("Button", nil, self)
slot:SetPoint("TOPLEFT", 3, -20 - (id - 1) * (slotsize + 5))
slot:SetSize(slotsize, slotsize)
slot:SetBackdrop({
bgFile = R["media"].blank,
insets = { left = -R.mult, right = -R.mult, top = -R.mult, bottom = -R.mult }
})
slot:StyleButton()
slot.texture = slot:CreateTexture(nil, "BORDER")
slot.texture:Point("TOPLEFT", 2, -2)
slot.texture:Point("BOTTOMRIGHT", -2, 2)
slot.texture:SetTexCoord(0.08, 0.92, 0.08, 0.92)
slot.text = slot:CreateFontString(nil, "OVERLAY")
slot.text:SetFont(R["media"].font, R["media"].fontsize, R["media"].fontflag)
slot.text:SetPoint("LEFT", slot, "RIGHT", 4, 0)
slot.text:SetPoint("RIGHT", slot:GetParent(), "RIGHT", -4, 0)
slot.text:SetJustifyH("LEFT")
slot.glow = CreateFrame("Frame", nil, slot)
slot.glow:SetAllPoints()
slot.glow:SetFrameLevel(slot:GetFrameLevel()+1)
slot.glow:CreateBorder()
slot.count = slot:CreateFontString(nil, "OVERLAY")
slot.count:SetFont(R["media"].font, R["media"].fontsize, R["media"].fontflag)
slot.count:SetPoint("BOTTOMRIGHT", 0, 4)
slot.quest = slot:CreateTexture(nil, "OVERLAY")
slot.quest:SetTexture(TEXTURE_ITEM_QUEST_BANG)
slot.quest:SetInside(slot)
slot.quest:SetTexCoord(.08, .92, .08, .92)
slot.quest:Hide()
slot:RegisterForClicks("LeftButtonUp", "RightButtonUp")
slot:SetScript("OnClick", OnClick)
slot:SetScript("OnEnter", OnEnter)
slot:SetScript("OnLeave", OnLeave)
slot:Hide()
return slot
end
local function GetLootSlot(self, id)
if not lootSlots[id] then
lootSlots[id] = CreateLootSlot(self, id)
end
return lootSlots[id]
end
local function UpdateLootSlot(self, id)
local lootSlot = GetLootSlot(self, id)
local texture, item, quantity, quality, locked, isQuestItem, questId, isActive = GetLootSlotInfo(id)
if not item then return end
local color = ITEM_QUALITY_COLORS[quality]
lootSlot.quality = quality
lootSlot.id = id
lootSlot.texture:SetTexture(texture)
lootSlot.text:SetText(item)
lootSlot.text:SetTextColor(color.r, color.g, color.b)
if quantity > 1 then
lootSlot.count:SetText(quantity)
lootSlot.count:Show()
else
lootSlot.count:Hide()
end
-- if isActive == false then
-- lootSlot.quest:Show()
-- else
-- lootSlot.quest:Hide()
-- end
local glow = lootSlot.glow
if quality and quality > 1 then
lootSlot.texture:SetInside()
lootSlot:StyleButton()
glow:SetBackdropBorderColor(color.r, color.g, color.b)
lootSlot:SetBackdropColor(0, 0, 0)
ActionButton_HideOverlayGlow(lootSlot)
elseif questId then
lootSlot.texture:SetInside()
lootSlot:StyleButton()
glow:SetBackdropBorderColor(1.0, 0.2, 0.2)
lootSlot:SetBackdropColor(0, 0, 0)
ActionButton_ShowOverlayGlow(lootSlot)
else
lootSlot.texture:SetAllPoints()
glow:SetBackdropBorderColor(0, 0, 0)
lootSlot:SetBackdropColor(0, 0, 0, 0)
lootSlot:StyleButton(true)
ActionButton_HideOverlayGlow(lootSlot)
end
if ( questId and not isActive ) then
lootSlot.quest:Show()
ActionButton_ShowOverlayGlow(lootSlot)
elseif ( questId or isQuestItem ) then
lootSlot.quest:Hide()
ActionButton_ShowOverlayGlow(lootSlot)
else
lootSlot.quest:Hide()
ActionButton_HideOverlayGlow(lootSlot)
end
if R:IsItemUnusable(GetLootSlotLink(id)) or locked then
lootSlot.texture:SetVertexColor(RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b)
else
lootSlot.texture:SetVertexColor(1, 1, 1)
end
lootSlot:Show()
end
local function OnEvent(self, event, ...)
if event == "LOOT_OPENED" then
local autoLoot = ...
self:Show()
if UnitExists("target") and UnitIsDead("target") then
self.title:SetText(UnitName("target"))
else
self.title:SetText(ITEMS)
end
local numLootItems = GetNumLootItems()
self:SetHeight(numLootItems * (slotsize + 5) + 20)
if GetCVar("lootUnderMouse") == "1" then
local x, y = GetCursorPosition()
x = x / self:GetEffectiveScale()
y = y / self:GetEffectiveScale()
local posX = x - 15
local posY = y + 32
if posY < 350 then
posY = 350
end
self:ClearAllPoints()
self:SetPoint("TOPLEFT", nil, "BOTTOMLEFT", posX, posY)
self:GetCenter()
self:Raise()
end
if numLootItems > 0 then
for i = 1, numLootItems do
UpdateLootSlot(self, i)
if not R:TableIsEmpty(autoLootTable) then
if GetLootSlotType(i) == 2 then
LootSlot(i)
else
if autoLootTable[select(2, GetLootSlotInfo(i))] then
LootSlot(i)
end
end
end
end
else
CloseLoot()
end
if not self:IsShown() then
CloseLoot(autoLoot == 0)
end
elseif event == "LOOT_SLOT_CLEARED" then
local slotId = ...
if not self:IsShown() then return end
if slotId > 0 then
if lootSlots[slotId] then
lootSlots[slotId]:Hide()
end
end
elseif event == "LOOT_SLOT_CHANGED" then
local slotId = ...
UpdateLootSlot(self, slotId)
elseif event == "LOOT_CLOSED" then
StaticPopup_Hide("LOOT_BIND")
for i, v in pairs(lootSlots) do
v:Hide()
end
self:Hide()
elseif event == "OPEN_MASTER_LOOT_LIST" then
Lib_ToggleDropDownMenu(1, nil, RayUIGroupLootDropDown, lootSlots[LootFrame.selectedSlot], 0, 0)
elseif event == "UPDATE_MASTER_LOOT_LIST" then
UIDropDownMenu_Refresh(GroupLootDropDown)
MasterLooterFrame_UpdatePlayers()
end
end
local loot = CreateFrame("Frame", nil, R.UIParent)
loot:SetScript("OnEvent", OnEvent)
loot:RegisterEvent("LOOT_OPENED")
loot:RegisterEvent("LOOT_SLOT_CLEARED")
loot:RegisterEvent("LOOT_SLOT_CHANGED")
loot:RegisterEvent("LOOT_CLOSED")
loot:RegisterEvent("OPEN_MASTER_LOOT_LIST")
loot:RegisterEvent("UPDATE_MASTER_LOOT_LIST")
LootFrame:UnregisterAllEvents()
S:SetBD(loot)
loot:SetWidth(200)
loot:SetPoint("TOP", anchorframe, 0, 0)
loot:SetFrameStrata("FULLSCREEN")
loot:SetToplevel(true)
loot:EnableMouse(true)
loot:SetMovable(true)
loot:RegisterForDrag("LeftButton")
loot:SetScript("OnDragStart", function(self) self:StartMoving() self:SetUserPlaced(false) end)
loot:SetScript("OnDragStop", function(self) self:StopMovingOrSizing() end)
loot.title = loot:CreateFontString(nil, "OVERLAY")
loot.title:SetFont(R["media"].font, R["media"].fontsize, R["media"].fontflag)
loot.title:SetPoint("TOPLEFT", 3, -4)
loot.title:SetPoint("TOPRIGHT", -105, -4)
loot.title:SetJustifyH("LEFT")
loot.button = CreateFrame("Button", nil, loot)
loot.button:SetPoint("TOPRIGHT")
loot.button:SetSize(17, 17)
S:ReskinClose(loot.button)
loot.button:SetScript("OnClick", function()
CloseLoot()
end)
local chn = { "say", "guild", "party", "raid"}
local chncolor = {
say = { 1, 1, 1},
guild = { .25, 1, .25},
party = { 2/3, 2/3, 1},
raid = { 1, .5, 0},
}
local function Announce(chn)
local nums = GetNumLootItems()
if(nums == 0) then return end
if UnitIsPlayer("target") or not UnitExists("target") then -- Chests are hard to identify!
SendChatMessage(format("*** %s ***", L["箱子中的战利品"]), chn)
else
SendChatMessage(format("*** %s%s ***", UnitName("target"), L["的战利品"]), chn)
end
for i = 1, GetNumLootItems() do
local link
if(LootSlotHasItem(i)) then --判断,只发送物品
link = GetLootSlotLink(i)
else
_, link = GetLootSlotInfo(i)
end
if link then
local messlink = "- %s"
SendChatMessage(format(messlink, link), chn)
end
end
end
loot.announce = {}
for i = 1, #chn do
loot.announce[i] = CreateFrame("Button", "ItemLootAnnounceButton"..i, loot)
loot.announce[i]:SetSize(17, 17)
loot.announce[i]:SetPoint("RIGHT", i==1 and loot.button or loot.announce[i-1], "LEFT", -3, 0)
loot.announce[i]:SetScript("OnClick", function() Announce(chn[i]) end)
loot.announce[i]:SetScript("OnEnter", function(self)
GameTooltip:SetOwner(self, "ANCHOR_TOP", 0, 5)
GameTooltip:ClearLines()
GameTooltip:AddLine(L["将战利品通报至"].._G[chn[i]:upper()])
GameTooltip:Show()
end)
loot.announce[i]:SetScript("OnLeave", GameTooltip_Hide)
loot.announce[i]:SetBackdrop({
bgFile = R["media"].blank,
edgeFile = R["media"].blank,
edgeSize = R.mult
})
loot.announce[i]:SetBackdropBorderColor(unpack(R["media"].bordercolor))
loot.announce[i]:SetBackdropColor(unpack(chncolor[chn[i]]))
loot.announce[i]:StyleButton(1)
end
SlashCmdList.AUTOLOOT = function(msg)
if msg then
if msg == "reset" then
wipe(autoLootTable)
else
autoLootTable[msg] = true
end
end
end
_G.SLASH_AUTOLOOT1 = "/autoloot"
end
end
S:AddCallback("Loot", LoadSkin)
| mit |
soulik/luambedtls | tests/ztcp.lua | 1 | 4304 | local zmq = require 'zmq'
local ztransport = require 'ztransport'
local context = assert(zmq.context())
local function buffer(_data, _len)
local _data = _data or ''
local _len = _len or 0
local obj = {
}
obj.read = function(len0)
if len0 and (len0 < _len) then
local out = _data:sub(1, len0)
_data = _data:sub(len0 + 1)
_len = _len - len0
return out, len0
else
local out = _data
local outLen = _len
_data = ''
_len = 0
return out, outLen
end
end
obj.write = function(data, len)
if _len>0 then
_data = _data .. data
_len = _len + len
else
_data = data
_len = len
end
end
obj.clear = function()
_data = ''
_len = 0
end
obj.empty = function()
return _len <= 0
end
return obj
end
local function TCP(options)
local options = options or {}
local host = options.host or 'localhost'
local port = options.port or 80
local socket = assert(context.socket(zmq.ZMQ_STREAM))
local identity
socket.options.stream_notify = true
socket.options.ipv6 = true
local recvDataBuffers = {
}
local sendDataBuffers = {
}
local identities = {}
for _, t in ipairs {recvDataBuffers, sendDataBuffers, identities} do
setmetatable(t, {__mode='k'})
end
for _, t in ipairs {recvDataBuffers, sendDataBuffers} do
local mt = getmetatable(t)
mt.__index = function(storage, socket)
local dataBuffer = rawget(storage, socket)
if not dataBuffer then
dataBuffer = buffer(); rawset(storage,socket,dataBuffer)
end
return dataBuffer
end
end
local function s_sendData(socket, id, data)
assert(socket.send(id, zmq.ZMQ_SNDMORE))
return assert(socket.send(data, zmq.ZMQ_SNDMORE))
end
local function s_recvData(socket, len0, t)
local dataBuffer = recvDataBuffers[socket]
if dataBuffer and not dataBuffer.empty() then
local len, data = dataBuffer.read(len0)
return dataBuffer.ID, data, len
else
local id = assert(socket.recv(16))
local data, len = assert(socket.recv(BUFFER_SIZE))
if len > len0 then
local dataBuffer = recvDataBuffers[socket]
if not dataBuffer then
dataBuffer = buffer(data, len, id); recvDataBuffers[socket] = dataBuffer
else
dataBuffer.write(data, len)
end
return id, dataBuffer.read(len0)
else
return id, data, len
end
end
end
local function recvFn(socket)
local dataBuffer = recvDataBuffers[socket]
local id = assert(socket.recv(16))
local data, len = assert(socket.recv(BUFFER_SIZE))
if not identities[socket] then
identities[socket] = id
end
if len>0 then
dataBuffer.write(data, len)
end
end
local function sendFn(socket)
local dataBuffer = sendDataBuffers[socket]
if not dataBuffer.empty() then
local data, len = dataBuffer.read()
local id = identities[socket] or identity
local bsent = 0
if id then
assert(socket.send(id, zmq.ZMQ_SNDMORE))
bsent = assert(socket.send(data, zmq.ZMQ_SNDMORE))
if bsent < len then
local data1 = data:sub(bsent+1)
dataBuffer.write(data1, #data1)
end
end
end
end
local recvPoll = zmq.poll {
{socket, zmq.ZMQ_POLLIN, recvFn},
}
local sendPoll = zmq.poll {
{socket, zmq.ZMQ_POLLOUT, sendFn},
}
local function sendData(data, id)
--local id = id or identity
--return s_sendData(socket, id, data)
local dataBuffer = sendDataBuffers[socket]
dataBuffer.write(data, #data)
while not dataBuffer.empty() do
sendPoll.start()
end
return #data
end
local function recvData(len0, t)
--return s_recvData(socket, len0, t)
local dataBuffer = recvDataBuffers[socket]
while dataBuffer.empty() do
if t then
recvPoll.start(t)
else
recvPoll.start()
end
end
--local id = identities[socket]
return dataBuffer.read(len0)
end
local function init()
local addr = ("tcp://%s:%d"):format(host, port)
if options.debug then
print('Connecting to', addr)
end
assert(socket.connect(addr))
identity = socket.options.identity
if options.debug then
print(identity:hex_dump{tabs=1, prefix='Client ID - '})
end
end
local function close()
assert(socket.send(identity, zmq.ZMQ_SNDMORE))
assert(socket.send(''))
socket.disconnect()
end
return {
init = init,
close = close,
recv = recvData,
send = sendData,
}
end
return {
new = ztransport.wrap(TCP),
} | gpl-2.0 |
EliHar/Pattern_recognition | torch1/extra/penlight/lua/pl/lapp.lua | 6 | 13984 | --- Simple command-line parsing using human-readable specification.
-- Supports GNU-style parameters.
--
-- lapp = require 'pl.lapp'
-- local args = lapp [[
-- Does some calculations
-- -o,--offset (default 0.0) Offset to add to scaled number
-- -s,--scale (number) Scaling factor
-- <number>; (number ) Number to be scaled
-- ]]
--
-- print(args.offset + args.scale * args.number)
--
-- Lines begining with '-' are flags; there may be a short and a long name;
-- lines begining wih '<var>' are arguments. Anything in parens after
-- the flag/argument is either a default, a type name or a range constraint.
--
-- See @{08-additional.md.Command_line_Programs_with_Lapp|the Guide}
--
-- Dependencies: `pl.sip`
-- @module pl.lapp
local status,sip = pcall(require,'pl.sip')
if not status then
sip = require 'sip'
end
local match = sip.match_at_start
local append,tinsert = table.insert,table.insert
sip.custom_pattern('X','(%a[%w_%-]*)')
local function lines(s) return s:gmatch('([^\n]*)\n') end
local function lstrip(str) return str:gsub('^%s+','') end
local function strip(str) return lstrip(str):gsub('%s+$','') end
local function at(s,k) return s:sub(k,k) end
local function isdigit(s) return s:find('^%d+$') == 1 end
local lapp = {}
local open_files,parms,aliases,parmlist,usage,windows,script
lapp.callback = false -- keep Strict happy
local filetypes = {
stdin = {io.stdin,'file-in'}, stdout = {io.stdout,'file-out'},
stderr = {io.stderr,'file-out'}
}
--- controls whether to dump usage on error.
-- Defaults to true
lapp.show_usage_error = true
--- quit this script immediately.
-- @string msg optional message
-- @bool no_usage suppress 'usage' display
function lapp.quit(msg,no_usage)
if no_usage == 'throw' then
error(msg)
end
if msg then
io.stderr:write(msg..'\n\n')
end
if not no_usage then
io.stderr:write(usage)
end
os.exit(1)
end
--- print an error to stderr and quit.
-- @string msg a message
-- @bool no_usage suppress 'usage' display
function lapp.error(msg,no_usage)
if not lapp.show_usage_error then
no_usage = true
elseif lapp.show_usage_error == 'throw' then
no_usage = 'throw'
end
lapp.quit(script..': '..msg,no_usage)
end
--- open a file.
-- This will quit on error, and keep a list of file objects for later cleanup.
-- @string file filename
-- @string[opt] opt same as second parameter of `io.open`
function lapp.open (file,opt)
local val,err = io.open(file,opt)
if not val then lapp.error(err,true) end
append(open_files,val)
return val
end
--- quit if the condition is false.
-- @bool condn a condition
-- @string msg message text
function lapp.assert(condn,msg)
if not condn then
lapp.error(msg)
end
end
local function range_check(x,min,max,parm)
lapp.assert(min <= x and max >= x,parm..' out of range')
end
local function xtonumber(s)
local val = tonumber(s)
if not val then lapp.error("unable to convert to number: "..s) end
return val
end
local types = {}
local builtin_types = {string=true,number=true,['file-in']='file',['file-out']='file',boolean=true}
local function convert_parameter(ps,val)
if ps.converter then
val = ps.converter(val)
end
if ps.type == 'number' then
val = xtonumber(val)
elseif builtin_types[ps.type] == 'file' then
val = lapp.open(val,(ps.type == 'file-in' and 'r') or 'w' )
elseif ps.type == 'boolean' then
return val
end
if ps.constraint then
ps.constraint(val)
end
return val
end
--- add a new type to Lapp. These appear in parens after the value like
-- a range constraint, e.g. '<ival> (integer) Process PID'
-- @string name name of type
-- @param converter either a function to convert values, or a Lua type name.
-- @func[opt] constraint optional function to verify values, should use lapp.error
-- if failed.
function lapp.add_type (name,converter,constraint)
types[name] = {converter=converter,constraint=constraint}
end
local function force_short(short)
lapp.assert(#short==1,short..": short parameters should be one character")
end
-- deducing type of variable from default value;
local function process_default (sval,vtype)
local val
if not vtype or vtype == 'number' then
val = tonumber(sval)
end
if val then -- we have a number!
return val,'number'
elseif filetypes[sval] then
local ft = filetypes[sval]
return ft[1],ft[2]
else
if sval == 'true' and not vtype then
return true, 'boolean'
end
if sval:match '^["\']' then sval = sval:sub(2,-2) end
return sval,vtype or 'string'
end
end
--- process a Lapp options string.
-- Usually called as `lapp()`.
-- @string str the options text
-- @tparam {string} args a table of arguments (default is `_G.arg`)
-- @return a table with parameter-value pairs
function lapp.process_options_string(str,args)
local results = {}
local opts = {at_start=true}
local varargs
local arg = args or _G.arg
open_files = {}
parms = {}
aliases = {}
parmlist = {}
local function check_varargs(s)
local res,cnt = s:gsub('^%.%.%.%s*','')
return res, (cnt > 0)
end
local function set_result(ps,parm,val)
parm = type(parm) == "string" and parm:gsub("%W", "_") or parm -- so foo-bar becomes foo_bar in Lua
if not ps.varargs then
results[parm] = val
else
if not results[parm] then
results[parm] = { val }
else
append(results[parm],val)
end
end
end
usage = str
for line in lines(str) do
local res = {}
local optspec,optparm,i1,i2,defval,vtype,constraint,rest
line = lstrip(line)
local function check(str)
return match(str,line,res)
end
-- flags: either '-<short>', '-<short>,--<long>' or '--<long>'
if check '-$v{short}, --$o{long} $' or check '-$v{short} $' or check '--$o{long} $' then
if res.long then
optparm = res.long:gsub('[^%w%-]','_') -- I'm not sure the $o pattern will let anything else through?
if res.short then aliases[res.short] = optparm end
else
optparm = res.short
end
if res.short and not lapp.slack then force_short(res.short) end
res.rest, varargs = check_varargs(res.rest)
elseif check '$<{name} $' then -- is it <parameter_name>?
-- so <input file...> becomes input_file ...
optparm,rest = res.name:match '([^%.]+)(.*)'
optparm = optparm:gsub('%A','_')
varargs = rest == '...'
append(parmlist,optparm)
end
-- this is not a pure doc line and specifies the flag/parameter type
if res.rest then
line = res.rest
res = {}
local optional
-- do we have ([optional] [<type>] [default <val>])?
if match('$({def} $',line,res) or match('$({def}',line,res) then
local typespec = strip(res.def)
local ftype, rest = typespec:match('^(%S+)(.*)$')
rest = strip(rest)
if ftype == 'optional' then
ftype, rest = rest:match('^(%S+)(.*)$')
rest = strip(rest)
optional = true
end
local default
if ftype == 'default' then
default = true
if rest == '' then lapp.error("value must follow default") end
else -- a type specification
if match('$f{min}..$f{max}',ftype,res) then
-- a numerical range like 1..10
local min,max = res.min,res.max
vtype = 'number'
constraint = function(x)
range_check(x,min,max,optparm)
end
elseif not ftype:match '|' then -- plain type
vtype = ftype
else
-- 'enum' type is a string which must belong to
-- one of several distinct values
local enums = ftype
local enump = '|' .. enums .. '|'
vtype = 'string'
constraint = function(s)
lapp.assert(enump:match('|'..s..'|'),
"value '"..s.."' not in "..enums
)
end
end
end
res.rest = rest
typespec = res.rest
-- optional 'default value' clause. Type is inferred as
-- 'string' or 'number' if there's no explicit type
if default or match('default $r{rest}',typespec,res) then
defval,vtype = process_default(res.rest,vtype)
end
else -- must be a plain flag, no extra parameter required
defval = false
vtype = 'boolean'
end
local ps = {
type = vtype,
defval = defval,
required = defval == nil and not optional,
comment = res.rest or optparm,
constraint = constraint,
varargs = varargs
}
varargs = nil
if types[vtype] then
local converter = types[vtype].converter
if type(converter) == 'string' then
ps.type = converter
else
ps.converter = converter
end
ps.constraint = types[vtype].constraint
elseif not builtin_types[vtype] then
lapp.error(vtype.." is unknown type")
end
parms[optparm] = ps
end
end
-- cool, we have our parms, let's parse the command line args
local iparm = 1
local iextra = 1
local i = 1
local parm,ps,val
local function check_parm (parm)
local eqi = parm:find '='
if eqi then
tinsert(arg,i+1,parm:sub(eqi+1))
parm = parm:sub(1,eqi-1)
end
return parm,eqi
end
local function is_flag (parm)
return parms[aliases[parm] or parm]
end
while i <= #arg do
local theArg = arg[i]
local res = {}
-- look for a flag, -<short flags> or --<long flag>
if match('--$S{long}',theArg,res) or match('-$S{short}',theArg,res) then
if res.long then -- long option
parm = check_parm(res.long)
elseif #res.short == 1 or is_flag(res.short) then
parm = res.short
else
local parmstr,eq = check_parm(res.short)
if not eq then
parm = at(parmstr,1)
local flag = is_flag(parm)
if flag and flag.type ~= 'boolean' then
--if isdigit(at(parmstr,2)) then
-- a short option followed by a digit is an exception (for AW;))
-- push ahead into the arg array
tinsert(arg,i+1,parmstr:sub(2))
else
-- push multiple flags into the arg array!
for k = 2,#parmstr do
tinsert(arg,i+k-1,'-'..at(parmstr,k))
end
end
else
parm = parmstr
end
end
if aliases[parm] then parm = aliases[parm] end
if not parms[parm] and (parm == 'h' or parm == 'help') then
lapp.quit()
end
else -- a parameter
parm = parmlist[iparm]
if not parm then
-- extra unnamed parameters are indexed starting at 1
parm = iextra
ps = { type = 'string' }
parms[parm] = ps
iextra = iextra + 1
else
ps = parms[parm]
end
if not ps.varargs then
iparm = iparm + 1
end
val = theArg
end
ps = parms[parm]
if not ps then lapp.error("unrecognized parameter: "..parm) end
if ps.type ~= 'boolean' then -- we need a value! This should follow
if not val then
i = i + 1
val = arg[i]
theArg = val
end
lapp.assert(val,parm.." was expecting a value")
else -- toggle boolean flags (usually false -> true)
val = not ps.defval
end
ps.used = true
val = convert_parameter(ps,val)
set_result(ps,parm,val)
if builtin_types[ps.type] == 'file' then
set_result(ps,parm..'_name',theArg)
end
if lapp.callback then
lapp.callback(parm,theArg,res)
end
i = i + 1
val = nil
end
-- check unused parms, set defaults and check if any required parameters were missed
for parm,ps in pairs(parms) do
if not ps.used then
if ps.required then lapp.error("missing required parameter: "..parm) end
set_result(ps,parm,ps.defval)
end
end
return results
end
if arg then
script = arg[0]
script = script or rawget(_G,"LAPP_SCRIPT") or "unknown"
-- strip dir and extension to get current script name
script = script:gsub('.+[\\/]',''):gsub('%.%a+$','')
else
script = "inter"
end
setmetatable(lapp, {
__call = function(tbl,str,args) return lapp.process_options_string(str,args) end,
})
return lapp
| mit |
rlcevg/Zero-K | scripts/funnelweb.lua | 9 | 4045 | include "constants.lua"
include "spider_walking.lua"
local ALLY_ACCESS = {allied = true}
local notum = piece 'notum'
local gaster = piece 'gaster'
local gunL, gunR, flareL, flareR, aimpoint = piece('gunl', 'gunr', 'flarel', 'flarer', 'aimpoint')
local shieldArm, shield, eye, eyeflare = piece('shield_arm', 'shield', 'eye', 'eyeflare')
local emitl, emitr = piece('emitl', 'emitr')
-- note reversed sides from piece names!
local br = piece 'thigh_bacl' -- back right
local mr = piece 'thigh_midl' -- middle right
local fr = piece 'thigh_frol' -- front right
local bl = piece 'thigh_bacr' -- back left
local ml = piece 'thigh_midr' -- middle left
local fl = piece 'thigh_fror' -- front left
local smokePiece = {gaster, notum}
local SIG_WALK = 1
local PERIOD = 0.35
local sleepTime = PERIOD*1000
local legRaiseAngle = math.rad(20)
local legRaiseSpeed = legRaiseAngle/PERIOD
local legLowerSpeed = legRaiseAngle/PERIOD
local legForwardAngle = math.rad(12)
local legForwardTheta = math.rad(25)
local legForwardOffset = 0
local legForwardSpeed = legForwardAngle/PERIOD
local legMiddleAngle = math.rad(12)
local legMiddleTheta = 0
local legMiddleOffset = 0
local legMiddleSpeed = legMiddleAngle/PERIOD
local legBackwardAngle = math.rad(12)
local legBackwardTheta = -math.rad(25)
local legBackwardOffset = 0
local legBackwardSpeed = legBackwardAngle/PERIOD
local function Walk()
Signal (SIG_WALK)
SetSignalMask (SIG_WALK)
while true do
walk (br, mr, fr, bl, ml, fl,
legRaiseAngle, legRaiseSpeed, legLowerSpeed,
legForwardAngle, legForwardOffset, legForwardSpeed, legForwardTheta,
legMiddleAngle, legMiddleOffset, legMiddleSpeed, legMiddleTheta,
legBackwardAngle, legBackwardOffset, legBackwardSpeed, legBackwardTheta,
sleepTime)
end
end
local function RestoreLegs()
Signal (SIG_WALK)
SetSignalMask (SIG_WALK)
restoreLegs (br, mr, fr, bl, ml, fl,
legRaiseSpeed, legForwardSpeed, legMiddleSpeed,legBackwardSpeed)
end
function script.Create()
Hide (gunL)
Hide (gunR)
Move (aimpoint, z_axis, 9)
Move (aimpoint, y_axis, 4)
StartThread(SmokeUnit, smokePiece)
end
function script.Activate()
Spring.SetUnitRulesParam(unitID, "shieldChargeDisabled", 0, ALLY_ACCESS)
end
function script.Deactivate()
Spring.SetUnitRulesParam(unitID, "shieldChargeDisabled", 1, ALLY_ACCESS)
end
function script.StartMoving ()
StartThread (Walk)
end
function script.StopMoving ()
StartThread (RestoreLegs)
end
function script.QueryWeapon (num)
return aimpoint
end
function script.AimWeapon (num)
if num == 1 then return false -- fake targeter
else return true end
end
function script.Killed (recentDamage, maxHealth)
local severity = recentDamage/maxHealth
if severity <= .25 then
return 1
elseif severity <= .50 then
Explode (shield, sfxFall)
Explode (shieldArm, sfxFall)
Explode (eye, sfxFall)
Explode (br, sfxFall)
Explode (ml, sfxFall)
Explode (fr, sfxFall)
return 1
elseif severity <= .75 then
Explode (bl, sfxFall)
Explode (mr, sfxFall)
Explode (fl, sfxFall)
Explode (shield, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (shieldArm, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (eye, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (br, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (ml, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (fr, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (gaster, sfxShatter)
return 2
else
Explode (shield, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (shieldArm, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (eye, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (bl, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (mr, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (fl, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (br, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (ml, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (fr, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode (gaster, sfxShatter)
Explode (notum, sfxShatter)
return 2
end
end
| gpl-2.0 |
rlcevg/Zero-K | units/corpyro.lua | 1 | 8306 | unitDef = {
unitname = [[corpyro]],
name = [[Pyro]],
description = [[Raider/Riot Jumper]],
acceleration = 0.4,
brakeRate = 0.4,
buildCostEnergy = 220,
buildCostMetal = 220,
builder = false,
buildPic = [[CORPYRO.png]],
buildTime = 220,
canAttack = true,
canGuard = true,
canMove = true,
canPatrol = true,
canstop = [[1]],
category = [[LAND FIREPROOF]],
corpse = [[DEAD]],
customParams = {
canjump = 1,
jump_range = 400,
jump_speed = 6,
jump_reload = 10,
jump_from_midair = 1,
description_es = [[Invasor Caminante Jumpjet]],
description_fr = [[Marcheur Pilleur r Jetpack]],
description_it = [[Invasore Camminatore Jumpjet]],
description_de = [[Raider Jumpjet Roboter]],
description_pl = [[Lekki robot ze skokiem]],
fireproof = [[1]],
helptext = [[The Pyro is a cheap, fast walker with a flamethrower. The flamethrower deals increased damage to large units and can hit multiple targets at the same time. When killed, the Pyro sets surrounding units on fire. Additionally, Pyros also come with jetpacks, allowing them to jump over obstacles or get the drop on enemies.]],
helptext_es = [[El Pyro es un invasor caminante barato con un lanzallamas. El lanzallamas hace mucho da?o a unidades grandes, pero poco da?o a las peque?as. Puede da?ar multiples enemigos a la vez. El Pyro explota violentemente cuando es destruido. Sus armas queman a los enemigos. El Pyro viene con jumpjets, que le permiten brincar sobre obstáculos y aterrizar cerca de los enemigos.]],
helptext_fr = [[Le Pyro est un marcheur facile r produire et rapide. Son lanceflamme fait des ravage au corps r corps et son jetpack lui permet des attaques par des angles surprenants. Les dommages sont plus ?lev?s sur les cibles de gros calibres comme les b?timents, et il peut tirer sur plusieurs cibles r la fois. Attention cependant r ne pas les grouper, car le Pyro explose fortement et peut entrainer une r?action en chaine.]],
helptext_it = [[Il Pyro é un camminatore veloce ed economico con un lanciafiamme. Il lanciafiamme fa un danno incredibile alle unita grandi, ma poco a quelle piccole. Puo colpire molte cose alla stessa volta. Il Pyro esplode violentamente quando é distrutto. Le armi del Pyro bruciano i nemici. Il Pyro viene con jumpjets, che gli permettono di saltare sopra gli ostacoli e atterrare vicino ai nemici.]],
helptext_de = [[Der Pyro ist ein günstiger und schneller Roboter, der mit einem Flammenwerfer ausgestattet ist. Dieser fügt großen Zielen erheblichen Schaden zu und kleineren entsprechend weniger. Außerdem können mehrere Ziele gleichzeitig getroffen werden, welche auch im Feuer aufgehen können. Der Pyro explodiert brutalst, sobald er zerstört wird. Zusätzlich besitzt er noch ein Jetpack, welches ihm zum Beispiel das Springen über Hindernisse ermöglicht.]],
helptext_pl = [[Pyro to tani i w miare szybki robot z miotaczem ognia, ktory zadaje obrazenia wszystkim jednostkom na linii strzalu i podpala je, zajac dodatkowe obrazenia w czasie. Pyro posiada mozliwosc skoku, co daje mu wysoka mobilnosc. Zniszczony Pyro detonuje sie, podpalajac okoliczne jednostki.]],
stats_show_death_explosion = 1,
},
explodeAs = [[PYRO_DEATH]],
footprintX = 2,
footprintZ = 2,
iconType = [[jumpjetraider]],
idleAutoHeal = 5,
idleTime = 1800,
leaveTracks = true,
mass = 157,
maxDamage = 620,
maxSlope = 36,
maxVelocity = 3,
maxWaterDepth = 22,
minCloakDistance = 75,
movementClass = [[KBOT2]],
noAutoFire = false,
noChaseCategory = [[FIXEDWING GUNSHIP SUB]],
objectName = [[m-5.s3o]],
script = [[corpyro.lua]],
seismicSignature = 4,
selfDestructAs = [[PYRO_DEATH]],
selfDestructCountdown = 5,
sfxtypes = {
explosiongenerators = {
[[custom:PILOT]],
[[custom:PILOT2]],
[[custom:RAIDMUZZLE]],
[[custom:VINDIBACK]],
},
},
sightDistance = 420,
trackOffset = 0,
trackStrength = 8,
trackStretch = 1,
trackType = [[ComTrack]],
trackWidth = 22,
turnRate = 1800,
upright = true,
workerTime = 0,
weapons = {
{
def = [[FLAMETHROWER]],
badTargetCategory = [[FIREPROOF]],
onlyTargetCategory = [[SWIM LAND SINK TURRET FLOAT SHIP HOVER GUNSHIP FIXEDWING]],
},
},
weaponDefs = {
FLAMETHROWER = {
name = [[Flamethrower]],
areaOfEffect = 64,
avoidGround = false,
avoidFeature = false,
avoidFriendly = false,
collideFeature = false,
collideGround = false,
coreThickness = 0,
craterBoost = 0,
craterMult = 0,
cegTag = [[flamer]],
customParams = {
flamethrower = [[1]],
setunitsonfire = "1",
burntime = [[450]],
},
damage = {
default = 8.5,
subs = 0.01,
},
duration = 0.01,
explosionGenerator = [[custom:SMOKE]],
fallOffRate = 1,
fireStarter = 100,
impulseBoost = 0,
impulseFactor = 0,
intensity = 0.3,
interceptedByShieldType = 1,
noExplode = true,
noSelfDamage = true,
--predictBoost = 1,
range = 280,
reloadtime = 0.16,
rgbColor = [[1 1 1]],
soundStart = [[weapon/flamethrower]],
soundTrigger = true,
texture1 = [[flame]],
thickness = 0,
tolerance = 5000,
turret = true,
weaponType = [[LaserCannon]],
weaponVelocity = 800,
},
PYRO_DEATH = {
name = [[Napalm Blast]],
areaofeffect = 256,
craterboost = 1,
cratermult = 3.5,
customparams = {
setunitsonfire = "1",
burnchance = "1",
burntime = 60,
area_damage = 1,
area_damage_radius = 128,
area_damage_dps = 20,
area_damage_duration = 13.3,
},
damage = {
default = 50,
},
edgeeffectiveness = 0.5,
explosionGenerator = [[custom:napalm_pyro]],
impulseboost = 0,
impulsefactor = 0,
soundhit = [[explosion/ex_med3]],
},
},
featureDefs = {
DEAD = {
description = [[Wreckage - Pyro]],
blocking = false,
category = [[heaps]],
damage = 620,
energy = 0,
featureDead = [[HEAP]],
featurereclamate = [[SMUDGE01]],
footprintX = 2,
footprintZ = 2,
height = [[4]],
hitdensity = [[100]],
metal = 88,
object = [[m-5_dead.s3o]],
reclaimable = true,
reclaimTime = 88,
seqnamereclamate = [[TREE1RECLAMATE]],
world = [[All Worlds]],
},
HEAP = {
description = [[Debris - Pyro]],
blocking = false,
category = [[heaps]],
damage = 620,
energy = 0,
featurereclamate = [[SMUDGE01]],
footprintX = 2,
footprintZ = 2,
hitdensity = [[100]],
metal = 44,
object = [[debris2x2c.s3o]],
reclaimable = true,
reclaimTime = 44,
seqnamereclamate = [[TREE1RECLAMATE]],
world = [[All Worlds]],
},
},
}
return lowerkeys({ corpyro = unitDef })
| gpl-2.0 |
cailyoung/CommandPost | src/plugins/finalcutpro/menu/administrator.lua | 1 | 3994 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- A D M I N I S T R A T O R M E N U --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--- === plugins.finalcutpro.menu.administrator ===
---
--- Administrator Menu.
--------------------------------------------------------------------------------
--
-- EXTENSIONS:
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- CommandPost Extensions:
--------------------------------------------------------------------------------
local config = require("cp.config")
local fcp = require("cp.apple.finalcutpro")
--------------------------------------------------------------------------------
--
-- CONSTANTS:
--
--------------------------------------------------------------------------------
-- PRIORITY -> number
-- Constant
-- The menubar position priority.
local PRIORITY = 5000
-- PREFERENCES_PRIORITY -> number
-- Constant
-- Preferences Priority
local PREFERENCES_PRIORITY = 7
-- SETTING -> string
-- Constant
-- Setting Name
local SETTING = "menubarAdministratorEnabled"
--------------------------------------------------------------------------------
--
-- THE MODULE:
--
--------------------------------------------------------------------------------
-- sectionEnabled <cp.prop: boolean>
-- Variable
-- Section Enabled
local sectionEnabled = config.prop(SETTING, true)
--------------------------------------------------------------------------------
--
-- THE PLUGIN:
--
--------------------------------------------------------------------------------
local plugin = {
id = "finalcutpro.menu.administrator",
group = "finalcutpro",
dependencies = {
["core.menu.manager"] = "manager",
["core.preferences.panels.menubar"] = "prefs",
}
}
--------------------------------------------------------------------------------
-- INITIALISE PLUGIN:
--------------------------------------------------------------------------------
function plugin.init(dependencies)
--------------------------------------------------------------------------------
-- Create the Administrator section
--------------------------------------------------------------------------------
local shortcuts = dependencies.manager.addSection(PRIORITY)
--------------------------------------------------------------------------------
-- Disable the section if the Administrator option is disabled
--------------------------------------------------------------------------------
shortcuts:setDisabledFn(function()
return not fcp:isInstalled() or not sectionEnabled()
end)
--------------------------------------------------------------------------------
-- Add the separator and title for the section.
--------------------------------------------------------------------------------
shortcuts:addSeparator(0)
:addItem(1, function()
return { title = string.upper(i18n("adminTools")) .. ":", disabled = true }
end)
--------------------------------------------------------------------------------
-- Add to General Preferences Panel:
--------------------------------------------------------------------------------
local prefs = dependencies.prefs
prefs:addCheckbox(prefs.SECTIONS_HEADING + PREFERENCES_PRIORITY,
{
label = i18n("showAdminTools"),
onchange = function(_, params)
sectionEnabled(params.checked)
end,
checked = sectionEnabled,
}
)
return shortcuts
end
return plugin
| mit |
zaczh/indigo | scripts/AViewController.lua | 1 | 6081 | --local AView = require "AView"
local BViewController = require "BViewController"
local HeartViewController = require "HeartViewController"
class("AViewController", "UIViewController", {"UITableViewDataSource", "UITableViewDelegate", "UIScrollViewDelegate"})
property{name="source", type="@"}
property{name="tableView", type="@"}
function AViewController:initWithNibName_bundle_(nibNameOrNil, nibBundleOrNil)
print("initWithNibName:bundle called");
self = self.super.initWithNibName_bundle_(nibNameOrNil, nibBundleOrNil)
local provincesFilePath = objcClass("NSBundle").mainBundle.pathForResource_ofType_("china_provinces", "json")
local provincesData = objcClass("NSData").dataWithContentsOfFile_(provincesFilePath)
local provincesDict = objcClass("NSJSONSerialization").JSONObjectWithData_options_error_(provincesData, 0, nil)
self.source = provincesDict
return self
end
function AViewController:dealloc()
print("AViewController dealloc called")
self.super.dealloc()
end
function AViewController.class:foo()
print("This is a class method")
end
function AViewController:viewDidLoad()
self.super.viewDidLoad()
--self.source = objcClass("NSArray"):arrayWithObject_("a")
--self:view().backgroundColor = objcClass("UIColor"):colorWithRed_green_blue_alpha_(213/255.0, 135/255.0, 149/255, 1.0)
--self:view():setNeedsLayout()
self.title = "China"
local v = objcClass("UITableView").initWithFrame_(self.view.bounds)
--v.backgroundColor = objcClass("UIColor"):greenColor()
v.DataSource = self
v.Delegate = self
self.view.addSubview_(v)
self.tableView = v
local rightItem = objcClass("UIBarButtonItem").initWithTitle_style_target_action_("Click!!!❤️", 0, self, "onRightButtonClick_")
self.navigationItem.rightBarButtonItem = rightItem
end
function AViewController:onRightButtonClick_(sender)
print("onRightButtonClick_", sender)
local heartViewController = HeartViewController.init()
self.navigationController.pushViewController_animated_(heartViewController, true)
end
function AViewController:viewWillAppear_(animated)
self.super.viewWillAppear_(animated)
local indexPath = self.tableView.indexPathForSelectedRow
if indexPath ~= nil then
self.tableView.deselectRowAtIndexPath_animated_(indexPath, true)
end
end
function AViewController:viewWillLayoutSubviews()
self.super.viewWillLayoutSubviews()
self.tableView.frame = self.view.bounds
end
function AViewController:viewDidAppear_(animated)
self.super.viewDidAppear_(animated)
print("AViewController:viewDidAppear_")
local arr = objcClass("NSArray").arrayWithObjects_(3,5,7,4,2,1,8,9,6,0)
local sortedArr = arr.sortedArrayUsingComparator_(
function (num1, num2)
print("comparing num1: ", num1.asObject.integerValue, " and num2: ", num2.asObject.integerValue)
return num1.asObject.integerValue>num2.asObject.integerValue
end
)
local dict = objcClass("NSDictionary").dictionaryWithObjectsAndKeys_(3,5,7,4,2,1,8,9,6,0)
probe(dict)
--local heartVC = objcClass("HeartViewController").init()
arr.enumerateObjectsUsingBlock_(
function(obj, index, stop)
--print("viewController is ", heartVC)
--NOTE: block parameters need to be converted explicitly
if index.asInt == 3 then
stop.asInoutBool = true
end
print("enumerateObjectsUsingBlock_ obj: ", obj.asObject, " index: ", index.asInt, " stop: ", stop.asInoutBool)
end
)
-- objcClass("UIView").animateWithDuration_animations_completion_(2.0,
-- function()
-- self.view.backgroundColor = objcClass("UIColor").colorWithRed_green_blue_alpha_(213/255.0, 135/255.0, 149/255, 1.0)
-- end,
-- function(finish)
-- --test block capture and release
-- print("animation finished: ", finish.asBool, heartVC)
-- end
-- )
-- dispatch_async(dispatch_get_main_queue(), function()
-- print("dispatch_async on main queue")
-- end)
-- dispatch_async(dispatch_get_global_queue(0, 0), function()
-- print("viewController is ", viewController)
-- print("dispatch_async on global queue ", objcClass("NSThread").currentThread)
-- end)
--when call functions with no arguments, you can use `.` to index the function
-- self.foo() --same as self:foo()
--
self.class.classFoo_(89)
end
-- DataSource
-------------
function AViewController:numberOfSectionsInTableView_(tableView)
return 1
end
function AViewController:tableView_numberOfRowsInSection_(tableView, section)
--print("tableView_numberOfRowsInSection_")
return self.source.count
end
function AViewController:tableView_cellForRowAtIndexPath_(tableView, indexPath)
local identifier = "cell"
local cell = tableView.dequeueReusableCellWithIdentifier_(identifier)
if cell == nil then
cell = objcClass("UITableViewCell").initWithStyle_reuseIdentifier_(0, identifier)
end
--local data = self.source[indexPath.row + 1]
cell.textLabel.text = self.source.allKeys.objectAtIndex_(indexPath.row)
cell.accessoryType = 1
return cell
end
-- Delegate
-----------
function AViewController:tableView_didSelectRowAtIndexPath_(tableView, indexPath)
local viewController = objcClass("BViewController").initWithInfo_header_(self.source.allValues.objectAtIndex_(indexPath.row), self.source.allKeys.objectAtIndex_(indexPath.row))
self.navigationController.pushViewController_animated_(viewController, true)
end
function AViewController:scrollViewDidScroll_(scrollView)
print("scrollViewDidScroll_")
end
function AViewController:scrollViewWillEndDragging_withVelocity_targetContentOffset_(scrollView, velocity, targetContentOffset)
print("scrollViewWillEndDragging_withVelocity_targetContentOffset_")
probe(velocity)
print("velocity.y: ", velocity.y)
--NOTE: set inout parameters
--targetContentOffset.y = 60
--call class methods
self.class.classFoo_(89)
end
finish()
| mit |
EliHar/Pattern_recognition | torch1/install/share/lua/5.1/pl/stringio.lua | 28 | 3821 | --- Reading and writing strings using file-like objects. <br>
--
-- f = stringio.open(text)
-- l1 = f:read() -- read first line
-- n,m = f:read ('*n','*n') -- read two numbers
-- for line in f:lines() do print(line) end -- iterate over all lines
-- f = stringio.create()
-- f:write('hello')
-- f:write('dolly')
-- assert(f:value(),'hellodolly')
--
-- See @{03-strings.md.File_style_I_O_on_Strings|the Guide}.
-- @module pl.stringio
local unpack = rawget(_G,'unpack') or rawget(table,'unpack')
local getmetatable,tostring,tonumber = getmetatable,tostring,tonumber
local concat,append = table.concat,table.insert
local stringio = {}
-- Writer class
local SW = {}
SW.__index = SW
local function xwrite(self,...)
local args = {...} --arguments may not be nil!
for i = 1, #args do
append(self.tbl,args[i])
end
end
function SW:write(arg1,arg2,...)
if arg2 then
xwrite(self,arg1,arg2,...)
else
append(self.tbl,arg1)
end
end
function SW:writef(fmt,...)
self:write(fmt:format(...))
end
function SW:value()
return concat(self.tbl)
end
function SW:__tostring()
return self:value()
end
function SW:close() -- for compatibility only
end
function SW:seek()
end
-- Reader class
local SR = {}
SR.__index = SR
function SR:_read(fmt)
local i,str = self.i,self.str
local sz = #str
if i > sz then return nil end
local res
if fmt == '*l' or fmt == '*L' then
local idx = str:find('\n',i) or (sz+1)
res = str:sub(i,fmt == '*l' and idx-1 or idx)
self.i = idx+1
elseif fmt == '*a' then
res = str:sub(i)
self.i = sz
elseif fmt == '*n' then
local _,i2,i2,idx
_,idx = str:find ('%s*%d+',i)
_,i2 = str:find ('^%.%d+',idx+1)
if i2 then idx = i2 end
_,i2 = str:find ('^[eE][%+%-]*%d+',idx+1)
if i2 then idx = i2 end
local val = str:sub(i,idx)
res = tonumber(val)
self.i = idx+1
elseif type(fmt) == 'number' then
res = str:sub(i,i+fmt-1)
self.i = i + fmt
else
error("bad read format",2)
end
return res
end
function SR:read(...)
if select('#',...) == 0 then
return self:_read('*l')
else
local res, fmts = {},{...}
for i = 1, #fmts do
res[i] = self:_read(fmts[i])
end
return unpack(res)
end
end
function SR:seek(whence,offset)
local base
whence = whence or 'cur'
offset = offset or 0
if whence == 'set' then
base = 1
elseif whence == 'cur' then
base = self.i
elseif whence == 'end' then
base = #self.str
end
self.i = base + offset
return self.i
end
function SR:lines(...)
local n, args = select('#',...)
if n > 0 then
args = {...}
end
return function()
if n == 0 then
return self:_read '*l'
else
return self:read(unpack(args))
end
end
end
function SR:close() -- for compatibility only
end
--- create a file-like object which can be used to construct a string.
-- The resulting object has an extra `value()` method for
-- retrieving the string value. Implements `file:write`, `file:seek`, `file:lines`,
-- plus an extra `writef` method which works like `utils.printf`.
-- @usage f = create(); f:write('hello, dolly\n'); print(f:value())
function stringio.create()
return setmetatable({tbl={}},SW)
end
--- create a file-like object for reading from a given string.
-- Implements `file:read`.
-- @string s The input string.
-- @usage fs = open '20 10'; x,y = f:read ('*n','*n'); assert(x == 20 and y == 10)
function stringio.open(s)
return setmetatable({str=s,i=1},SR)
end
function stringio.lines(s,...)
return stringio.open(s):lines(...)
end
return stringio
| mit |
rlcevg/Zero-K | LuaUI/Widgets/snd_text_to_speech.lua | 6 | 1510 |
function widget:GetInfo()
return {
name = "Text To Speech Control",
desc = "Enables or disables text to speech through Zero-K lobby",
author = "Licho",
date = "10.6.2011",
license = "GNU GPL, v2 or later",
layer = math.huge,
enabled = true, -- loaded by default?
alwaysStart = true
}
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local function SetupTTS(enable)
if (enable and not Spring.GetSpectatingState()) then
Spring.Echo(Spring.GetPlayerInfo(Spring.GetMyPlayerID()) .. " ENABLE TTS")
else
Spring.Echo(Spring.GetPlayerInfo(Spring.GetMyPlayerID()) .. " DISABLE TTS")
end
end
options_path = 'Settings/Audio'
options_order = {'enable'}
options = {
enable ={
name = "Text-To-Speech (with Zero-K lobby only)",
type = 'bool', value = true,
OnChange = function(self)
SetupTTS(self.value)
WG.textToSpeechCtrl = {ttsEnable = self.value,}
end,
},
}
function widget:Initialize()
SetupTTS(options.enable.value)
WG.textToSpeechCtrl = {ttsEnable = options.enable.value,} --allow other widget to get value from this widget. ie: gui_chili_rejoin_progress.lua. We didn't declare it at outside because we doesn't want "WG.textToSpeechCtrl" to be initialize first without widget being enabled first.
end
function widget:Shutdown()
Spring.Echo(Spring.GetPlayerInfo(Spring.GetMyPlayerID()) .. " DISABLE TTS")
WG.textToSpeechCtrl = nil
end
| gpl-2.0 |
Unrepentant-Atheist/mame | scripts/src/osd/sdl.lua | 1 | 12463 | -- license:BSD-3-Clause
-- copyright-holders:MAMEdev Team
---------------------------------------------------------------------------
--
-- sdl.lua
--
-- Rules for the building with SDL
--
---------------------------------------------------------------------------
dofile("modules.lua")
function maintargetosdoptions(_target,_subtarget)
osdmodulestargetconf()
if _OPTIONS["USE_DISPATCH_GL"]~="1" and _OPTIONS["MESA_INSTALL_ROOT"] then
libdirs {
path.join(_OPTIONS["MESA_INSTALL_ROOT"],"lib"),
}
linkoptions {
"-Wl,-rpath=" .. path.join(_OPTIONS["MESA_INSTALL_ROOT"],"lib"),
}
end
if _OPTIONS["NO_X11"]~="1" then
links {
"X11",
"Xinerama",
}
end
if _OPTIONS["NO_USE_XINPUT"]~="1" then
links {
"Xext",
"Xi",
}
end
if BASE_TARGETOS=="unix" and _OPTIONS["targetos"]~="macosx" and _OPTIONS["targetos"]~="android" then
links {
"SDL2_ttf",
}
local str = backtick("pkg-config --libs fontconfig")
addlibfromstring(str)
addoptionsfromstring(str)
end
if _OPTIONS["targetos"]=="windows" then
if _OPTIONS["with-bundled-sdl2"]~=nil then
configuration { "mingw*"}
links {
"SDL2",
"Imm32",
"Version",
"Ole32",
"OleAut32",
}
configuration { "vs*" }
links {
"SDL2",
"Imm32",
"Version",
}
configuration { }
else
if _OPTIONS["USE_LIBSDL"]~="1" then
configuration { "mingw*"}
links {
"SDL2.dll",
}
configuration { "vs*" }
links {
"SDL2",
"Imm32",
"Version",
}
configuration { }
else
local str = backtick(sdlconfigcmd() .. " --libs | sed 's/ -lSDLmain//'")
addlibfromstring(str)
addoptionsfromstring(str)
end
configuration { "x32", "vs*" }
libdirs {
path.join(_OPTIONS["SDL_INSTALL_ROOT"],"lib","x86")
}
configuration { "x64", "vs*" }
libdirs {
path.join(_OPTIONS["SDL_INSTALL_ROOT"],"lib","x64")
}
end
links {
"psapi",
}
configuration { "mingw*" }
linkoptions{
"-municode",
}
configuration { "vs*" }
flags {
"Unicode",
}
configuration {}
elseif _OPTIONS["targetos"]=="haiku" then
links {
"network",
"bsd",
}
end
configuration { "mingw*" or "vs*" }
targetprefix "sdl"
links {
"psapi"
}
configuration { }
if _OPTIONS["targetos"]=="macosx" then
if _OPTIONS["with-bundled-sdl2"]~=nil then
links {
"SDL2",
}
end
end
end
function sdlconfigcmd()
if _OPTIONS["targetos"]=="asmjs" then
return "sdl2-config"
elseif not _OPTIONS["SDL_INSTALL_ROOT"] then
return _OPTIONS['TOOLCHAIN'] .. "pkg-config sdl2"
else
return path.join(_OPTIONS["SDL_INSTALL_ROOT"],"bin","sdl2") .. "-config"
end
end
newoption {
trigger = "MESA_INSTALL_ROOT",
description = "link against specific GL-Library - also adds rpath to executable (overridden by USE_DISPATCH_GL)",
}
newoption {
trigger = "SDL_INI_PATH",
description = "Default search path for .ini files",
}
newoption {
trigger = "NO_X11",
description = "Disable use of X11",
allowed = {
{ "0", "Enable X11" },
{ "1", "Disable X11" },
},
}
if not _OPTIONS["NO_X11"] then
if _OPTIONS["targetos"]=="windows" or _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="haiku" or _OPTIONS["targetos"]=="asmjs" then
_OPTIONS["NO_X11"] = "1"
else
_OPTIONS["NO_X11"] = "0"
end
end
newoption {
trigger = "NO_USE_XINPUT",
description = "Disable use of Xinput",
allowed = {
{ "0", "Enable Xinput" },
{ "1", "Disable Xinput" },
},
}
if not _OPTIONS["NO_USE_XINPUT"] then
_OPTIONS["NO_USE_XINPUT"] = "1"
end
newoption {
trigger = "SDL2_MULTIAPI",
description = "Use couriersud's multi-keyboard patch for SDL 2.1? (this API was removed prior to the 2.0 release)",
allowed = {
{ "0", "Use single-keyboard API" },
{ "1", "Use multi-keyboard API" },
},
}
if not _OPTIONS["SDL2_MULTIAPI"] then
_OPTIONS["SDL2_MULTIAPI"] = "0"
end
newoption {
trigger = "SDL_INSTALL_ROOT",
description = "Equivalent to the ./configure --prefix=<path>",
}
newoption {
trigger = "SDL_FRAMEWORK_PATH",
description = "Location of SDL framework for custom OS X installations",
}
if not _OPTIONS["SDL_FRAMEWORK_PATH"] then
_OPTIONS["SDL_FRAMEWORK_PATH"] = "/Library/Frameworks/"
end
newoption {
trigger = "USE_LIBSDL",
description = "Use SDL library on OS (rather than framework/dll)",
allowed = {
{ "0", "Use framework/dll" },
{ "1", "Use library" },
},
}
if not _OPTIONS["USE_LIBSDL"] then
_OPTIONS["USE_LIBSDL"] = "0"
end
BASE_TARGETOS = "unix"
SDLOS_TARGETOS = "unix"
SDL_NETWORK = ""
if _OPTIONS["targetos"]=="linux" then
SDL_NETWORK = "taptun"
elseif _OPTIONS["targetos"]=="openbsd" then
elseif _OPTIONS["targetos"]=="netbsd" then
SDL_NETWORK = "pcap"
elseif _OPTIONS["targetos"]=="haiku" then
elseif _OPTIONS["targetos"]=="asmjs" then
elseif _OPTIONS["targetos"]=="windows" then
BASE_TARGETOS = "win32"
SDLOS_TARGETOS = "win32"
SDL_NETWORK = "pcap"
elseif _OPTIONS["targetos"]=="macosx" then
SDLOS_TARGETOS = "macosx"
SDL_NETWORK = "pcap"
end
if _OPTIONS["with-bundled-sdl2"]~=nil then
includedirs {
GEN_DIR .. "includes",
}
end
if BASE_TARGETOS=="unix" then
if _OPTIONS["targetos"]=="macosx" then
local os_version = str_to_version(backtick("sw_vers -productVersion"))
links {
"Cocoa.framework",
}
linkoptions {
"-framework QuartzCore",
"-framework OpenGL",
}
if os_version>=101100 then
linkoptions {
"-weak_framework Metal",
}
end
if _OPTIONS["with-bundled-sdl2"]~=nil then
linkoptions {
"-framework AudioUnit",
"-framework CoreAudio",
"-framework Carbon",
"-framework ForceFeedback",
"-framework IOKit",
"-framework CoreVideo",
}
else
if _OPTIONS["USE_LIBSDL"]~="1" then
linkoptions {
"-F" .. _OPTIONS["SDL_FRAMEWORK_PATH"],
}
links {
"SDL2.framework",
}
else
local str = backtick(sdlconfigcmd() .. " --libs --static | sed 's/-lSDLmain//'")
addlibfromstring(str)
addoptionsfromstring(str)
end
end
else
if _OPTIONS["NO_X11"]=="1" then
_OPTIONS["USE_QTDEBUG"] = "0"
else
libdirs {
"/usr/X11/lib",
"/usr/X11R6/lib",
"/usr/openwin/lib",
}
end
if _OPTIONS["with-bundled-sdl2"]~=nil then
if _OPTIONS["targetos"]~="android" then
links {
"SDL2",
}
end
else
local str = backtick(sdlconfigcmd() .. " --libs")
addlibfromstring(str)
addoptionsfromstring(str)
end
if _OPTIONS["targetos"]~="haiku" and _OPTIONS["targetos"]~="android" then
links {
"m",
"pthread",
}
if _OPTIONS["targetos"]=="solaris" then
links {
"socket",
"nsl",
}
else
links {
"util",
}
end
end
end
end
project ("qtdbg_" .. _OPTIONS["osd"])
uuid (os.uuid("qtdbg_" .. _OPTIONS["osd"]))
kind (LIBTYPE)
dofile("sdl_cfg.lua")
includedirs {
MAME_DIR .. "src/emu",
MAME_DIR .. "src/devices", -- accessing imagedev from debugger
MAME_DIR .. "src/osd",
MAME_DIR .. "src/lib",
MAME_DIR .. "src/lib/util",
MAME_DIR .. "src/osd/modules/render",
MAME_DIR .. "3rdparty",
}
configuration { "linux-*" }
buildoptions {
"-fPIC",
}
configuration { }
qtdebuggerbuild()
project ("osd_" .. _OPTIONS["osd"])
targetsubdir(_OPTIONS["target"] .."_" .._OPTIONS["subtarget"])
uuid (os.uuid("osd_" .. _OPTIONS["osd"]))
kind (LIBTYPE)
dofile("sdl_cfg.lua")
osdmodulesbuild()
includedirs {
MAME_DIR .. "src/emu",
MAME_DIR .. "src/devices", -- accessing imagedev from debugger
MAME_DIR .. "src/osd",
MAME_DIR .. "src/lib",
MAME_DIR .. "src/lib/util",
MAME_DIR .. "src/osd/modules/file",
MAME_DIR .. "src/osd/modules/render",
MAME_DIR .. "3rdparty",
MAME_DIR .. "src/osd/sdl",
}
if _OPTIONS["targetos"]=="windows" then
files {
MAME_DIR .. "src/osd/windows/main.cpp",
}
end
if _OPTIONS["targetos"]=="macosx" then
files {
MAME_DIR .. "src/osd/modules/debugger/debugosx.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/breakpointsview.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/breakpointsview.h",
MAME_DIR .. "src/osd/modules/debugger/osx/consoleview.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/consoleview.h",
MAME_DIR .. "src/osd/modules/debugger/osx/debugcommandhistory.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/debugcommandhistory.h",
MAME_DIR .. "src/osd/modules/debugger/osx/debugconsole.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/debugconsole.h",
MAME_DIR .. "src/osd/modules/debugger/osx/debugview.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/debugview.h",
MAME_DIR .. "src/osd/modules/debugger/osx/debugwindowhandler.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/debugwindowhandler.h",
MAME_DIR .. "src/osd/modules/debugger/osx/deviceinfoviewer.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/deviceinfoviewer.h",
MAME_DIR .. "src/osd/modules/debugger/osx/devicesviewer.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/devicesviewer.h",
MAME_DIR .. "src/osd/modules/debugger/osx/disassemblyview.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/disassemblyviewer.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/disassemblyviewer.h",
MAME_DIR .. "src/osd/modules/debugger/osx/errorlogview.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/errorlogview.h",
MAME_DIR .. "src/osd/modules/debugger/osx/disassemblyview.h",
MAME_DIR .. "src/osd/modules/debugger/osx/errorlogviewer.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/errorlogviewer.h",
MAME_DIR .. "src/osd/modules/debugger/osx/memoryview.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/memoryview.h",
MAME_DIR .. "src/osd/modules/debugger/osx/memoryviewer.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/memoryviewer.h",
MAME_DIR .. "src/osd/modules/debugger/osx/pointsviewer.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/pointsviewer.h",
MAME_DIR .. "src/osd/modules/debugger/osx/registersview.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/registersview.h",
MAME_DIR .. "src/osd/modules/debugger/osx/watchpointsview.mm",
MAME_DIR .. "src/osd/modules/debugger/osx/watchpointsview.h",
MAME_DIR .. "src/osd/modules/debugger/osx/debugosx.h",
}
end
files {
MAME_DIR .. "src/osd/sdl/osdsdl.h",
MAME_DIR .. "src/osd/sdl/sdlinc.h",
MAME_DIR .. "src/osd/sdl/sdlprefix.h",
MAME_DIR .. "src/osd/sdl/sdlmain.cpp",
MAME_DIR .. "src/osd/osdepend.h",
MAME_DIR .. "src/osd/sdl/video.cpp",
MAME_DIR .. "src/osd/sdl/video.h",
MAME_DIR .. "src/osd/sdl/window.cpp",
MAME_DIR .. "src/osd/sdl/window.h",
MAME_DIR .. "src/osd/modules/osdwindow.cpp",
MAME_DIR .. "src/osd/modules/osdwindow.h",
MAME_DIR .. "src/osd/modules/render/drawsdl.cpp",
}
files {
MAME_DIR .. "src/osd/modules/render/draw13.cpp",
MAME_DIR .. "src/osd/modules/render/blit13.h",
}
project ("ocore_" .. _OPTIONS["osd"])
targetsubdir(_OPTIONS["target"] .."_" .. _OPTIONS["subtarget"])
uuid (os.uuid("ocore_" .. _OPTIONS["osd"]))
kind (LIBTYPE)
removeflags {
"SingleOutputDir",
}
dofile("sdl_cfg.lua")
includedirs {
MAME_DIR .. "src/emu",
MAME_DIR .. "src/osd",
MAME_DIR .. "src/lib",
MAME_DIR .. "src/lib/util",
MAME_DIR .. "src/osd/sdl",
}
files {
MAME_DIR .. "src/osd/osdcore.cpp",
MAME_DIR .. "src/osd/osdcore.h",
MAME_DIR .. "src/osd/strconv.cpp",
MAME_DIR .. "src/osd/strconv.h",
MAME_DIR .. "src/osd/osdsync.cpp",
MAME_DIR .. "src/osd/osdsync.h",
MAME_DIR .. "src/osd/sdl/sdldir.cpp",
MAME_DIR .. "src/osd/modules/osdmodule.cpp",
MAME_DIR .. "src/osd/modules/osdmodule.h",
MAME_DIR .. "src/osd/modules/lib/osdlib_" .. SDLOS_TARGETOS .. ".cpp",
MAME_DIR .. "src/osd/modules/lib/osdlib.h",
}
if BASE_TARGETOS=="unix" then
files {
MAME_DIR .. "src/osd/modules/file/posixfile.cpp",
MAME_DIR .. "src/osd/modules/file/posixfile.h",
MAME_DIR .. "src/osd/modules/file/posixptty.cpp",
MAME_DIR .. "src/osd/modules/file/posixsocket.cpp",
}
elseif BASE_TARGETOS=="win32" then
includedirs {
MAME_DIR .. "src/osd/windows",
}
files {
MAME_DIR .. "src/osd/modules/file/winfile.cpp",
MAME_DIR .. "src/osd/modules/file/winfile.h",
MAME_DIR .. "src/osd/modules/file/winptty.cpp",
MAME_DIR .. "src/osd/modules/file/winsocket.cpp",
MAME_DIR .. "src/osd/windows/winutil.cpp", -- FIXME put the necessary functions somewhere more appropriate
}
else
files {
MAME_DIR .. "src/osd/modules/file/stdfile.cpp",
}
end
| gpl-2.0 |
cloudkick/ck-agent | extern/lunit/lunit.lua | 21 | 17500 |
--[[--------------------------------------------------------------------------
This file is part of lunit 0.5.
For Details about lunit look at: http://www.mroth.net/lunit/
Author: Michael Roth <mroth@nessie.de>
Copyright (c) 2004, 2006-2009 Michael Roth <mroth@nessie.de>
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 orig_assert = assert
local pairs = pairs
local ipairs = ipairs
local next = next
local type = type
local error = error
local tostring = tostring
local string_sub = string.sub
local string_format = string.format
module("lunit", package.seeall) -- FIXME: Remove package.seeall
local lunit = _M
local __failure__ = {} -- Type tag for failed assertions
local typenames = { "nil", "boolean", "number", "string", "table", "function", "thread", "userdata" }
local traceback_hide -- Traceback function which hides lunit internals
local mypcall -- Protected call to a function with own traceback
do
local _tb_hide = setmetatable( {}, {__mode="k"} )
function traceback_hide(func)
_tb_hide[func] = true
end
local function my_traceback(errobj)
if is_table(errobj) and errobj.type == __failure__ then
local info = debug.getinfo(5, "Sl") -- FIXME: Hardcoded integers are bad...
errobj.where = string_format( "%s:%d", info.short_src, info.currentline)
else
errobj = { msg = tostring(errobj) }
errobj.tb = {}
local i = 2
while true do
local info = debug.getinfo(i, "Snlf")
if not is_table(info) then
break
end
if not _tb_hide[info.func] then
local line = {} -- Ripped from ldblib.c...
line[#line+1] = string_format("%s:", info.short_src)
if info.currentline > 0 then
line[#line+1] = string_format("%d:", info.currentline)
end
if info.namewhat ~= "" then
line[#line+1] = string_format(" in function '%s'", info.name)
else
if info.what == "main" then
line[#line+1] = " in main chunk"
elseif info.what == "C" or info.what == "tail" then
line[#line+1] = " ?"
else
line[#line+1] = string_format(" in function <%s:%d>", info.short_src, info.linedefined)
end
end
errobj.tb[#errobj.tb+1] = table.concat(line)
end
i = i + 1
end
end
return errobj
end
function mypcall(func)
orig_assert( is_function(func) )
local ok, errobj = xpcall(func, my_traceback)
if not ok then
return errobj
end
end
traceback_hide(mypcall)
end
-- Type check functions
for _, typename in ipairs(typenames) do
lunit["is_"..typename] = function(x)
return type(x) == typename
end
end
local is_nil = is_nil
local is_boolean = is_boolean
local is_number = is_number
local is_string = is_string
local is_table = is_table
local is_function = is_function
local is_thread = is_thread
local is_userdata = is_userdata
local function failure(name, usermsg, defaultmsg, ...)
local errobj = {
type = __failure__,
name = name,
msg = string_format(defaultmsg,...),
usermsg = usermsg
}
error(errobj, 0)
end
traceback_hide( failure )
local function format_arg(arg)
local argtype = type(arg)
if argtype == "string" then
return "'"..arg.."'"
elseif argtype == "number" or argtype == "boolean" or argtype == "nil" then
return tostring(arg)
else
return "["..tostring(arg).."]"
end
end
function fail(msg)
stats.assertions = stats.assertions + 1
failure( "fail", msg, "failure" )
end
traceback_hide( fail )
function assert(assertion, msg)
stats.assertions = stats.assertions + 1
if not assertion then
failure( "assert", msg, "assertion failed" )
end
return assertion
end
traceback_hide( assert )
function assert_true(actual, msg)
stats.assertions = stats.assertions + 1
local actualtype = type(actual)
if actualtype ~= "boolean" then
failure( "assert_true", msg, "true expected but was a "..actualtype )
end
if actual ~= true then
failure( "assert_true", msg, "true expected but was false" )
end
return actual
end
traceback_hide( assert_true )
function assert_false(actual, msg)
stats.assertions = stats.assertions + 1
local actualtype = type(actual)
if actualtype ~= "boolean" then
failure( "assert_false", msg, "false expected but was a "..actualtype )
end
if actual ~= false then
failure( "assert_false", msg, "false expected but was true" )
end
return actual
end
traceback_hide( assert_false )
function assert_equal(expected, actual, msg)
stats.assertions = stats.assertions + 1
if expected ~= actual then
failure( "assert_equal", msg, "expected %s but was %s", format_arg(expected), format_arg(actual) )
end
return actual
end
traceback_hide( assert_equal )
function assert_not_equal(unexpected, actual, msg)
stats.assertions = stats.assertions + 1
if unexpected == actual then
failure( "assert_not_equal", msg, "%s not expected but was one", format_arg(unexpected) )
end
return actual
end
traceback_hide( assert_not_equal )
function assert_match(pattern, actual, msg)
stats.assertions = stats.assertions + 1
local patterntype = type(pattern)
if patterntype ~= "string" then
failure( "assert_match", msg, "expected the pattern as a string but was a "..patterntype )
end
local actualtype = type(actual)
if actualtype ~= "string" then
failure( "assert_match", msg, "expected a string to match pattern '%s' but was a %s", pattern, actualtype )
end
if not string.find(actual, pattern) then
failure( "assert_match", msg, "expected '%s' to match pattern '%s' but doesn't", actual, pattern )
end
return actual
end
traceback_hide( assert_match )
function assert_not_match(pattern, actual, msg)
stats.assertions = stats.assertions + 1
local patterntype = type(pattern)
if patterntype ~= "string" then
failure( "assert_not_match", msg, "expected the pattern as a string but was a "..patterntype )
end
local actualtype = type(actual)
if actualtype ~= "string" then
failure( "assert_not_match", msg, "expected a string to not match pattern '%s' but was a %s", pattern, actualtype )
end
if string.find(actual, pattern) then
failure( "assert_not_match", msg, "expected '%s' to not match pattern '%s' but it does", actual, pattern )
end
return actual
end
traceback_hide( assert_not_match )
function assert_error(msg, func)
stats.assertions = stats.assertions + 1
if func == nil then
func, msg = msg, nil
end
local functype = type(func)
if functype ~= "function" then
failure( "assert_error", msg, "expected a function as last argument but was a "..functype )
end
local ok, errmsg = pcall(func)
if ok then
failure( "assert_error", msg, "error expected but no error occurred" )
end
end
traceback_hide( assert_error )
function assert_error_match(msg, pattern, func)
stats.assertions = stats.assertions + 1
if func == nil then
msg, pattern, func = nil, msg, pattern
end
local patterntype = type(pattern)
if patterntype ~= "string" then
failure( "assert_error_match", msg, "expected the pattern as a string but was a "..patterntype )
end
local functype = type(func)
if functype ~= "function" then
failure( "assert_error_match", msg, "expected a function as last argument but was a "..functype )
end
local ok, errmsg = pcall(func)
if ok then
failure( "assert_error_match", msg, "error expected but no error occurred" )
end
local errmsgtype = type(errmsg)
if errmsgtype ~= "string" then
failure( "assert_error_match", msg, "error as string expected but was a "..errmsgtype )
end
if not string.find(errmsg, pattern) then
failure( "assert_error_match", msg, "expected error '%s' to match pattern '%s' but doesn't", errmsg, pattern )
end
end
traceback_hide( assert_error_match )
function assert_pass(msg, func)
stats.assertions = stats.assertions + 1
if func == nil then
func, msg = msg, nil
end
local functype = type(func)
if functype ~= "function" then
failure( "assert_pass", msg, "expected a function as last argument but was a %s", functype )
end
local ok, errmsg = pcall(func)
if not ok then
failure( "assert_pass", msg, "no error expected but error was: '%s'", errmsg )
end
end
traceback_hide( assert_pass )
-- lunit.assert_typename functions
for _, typename in ipairs(typenames) do
local assert_typename = "assert_"..typename
lunit[assert_typename] = function(actual, msg)
stats.assertions = stats.assertions + 1
local actualtype = type(actual)
if actualtype ~= typename then
failure( assert_typename, msg, typename.." expected but was a "..actualtype )
end
return actual
end
traceback_hide( lunit[assert_typename] )
end
-- lunit.assert_not_typename functions
for _, typename in ipairs(typenames) do
local assert_not_typename = "assert_not_"..typename
lunit[assert_not_typename] = function(actual, msg)
stats.assertions = stats.assertions + 1
if type(actual) == typename then
failure( assert_not_typename, msg, typename.." not expected but was one" )
end
end
traceback_hide( lunit[assert_not_typename] )
end
function lunit.clearstats()
stats = {
assertions = 0;
passed = 0;
failed = 0;
errors = 0;
}
end
local report, reporterrobj
do
local testrunner
function lunit.setrunner(newrunner)
if not ( is_table(newrunner) or is_nil(newrunner) ) then
return error("lunit.setrunner: Invalid argument", 0)
end
local oldrunner = testrunner
testrunner = newrunner
return oldrunner
end
function lunit.loadrunner(name)
if not is_string(name) then
return error("lunit.loadrunner: Invalid argument", 0)
end
local ok, runner = pcall( require, name )
if not ok then
return error("lunit.loadrunner: Can't load test runner: "..runner, 0)
end
return setrunner(runner)
end
function report(event, ...)
local f = testrunner and testrunner[event]
if is_function(f) then
pcall(f, ...)
end
end
function reporterrobj(context, tcname, testname, errobj)
local fullname = tcname .. "." .. testname
if context == "setup" then
fullname = fullname .. ":" .. setupname(tcname, testname)
elseif context == "teardown" then
fullname = fullname .. ":" .. teardownname(tcname, testname)
end
if errobj.type == __failure__ then
stats.failed = stats.failed + 1
report("fail", fullname, errobj.where, errobj.msg, errobj.usermsg)
else
stats.errors = stats.errors + 1
report("err", fullname, errobj.msg, errobj.tb)
end
end
end
local function key_iter(t, k)
return (next(t,k))
end
local testcase
do
-- Array with all registered testcases
local _testcases = {}
-- Marks a module as a testcase.
-- Applied over a module from module("xyz", lunit.testcase).
function lunit.testcase(m)
orig_assert( is_table(m) )
--orig_assert( m._M == m )
orig_assert( is_string(m._NAME) )
--orig_assert( is_string(m._PACKAGE) )
-- Register the module as a testcase
_testcases[m._NAME] = m
-- Import lunit, fail, assert* and is_* function to the module/testcase
m.lunit = lunit
m.fail = lunit.fail
for funcname, func in pairs(lunit) do
if "assert" == string_sub(funcname, 1, 6) or "is_" == string_sub(funcname, 1, 3) then
m[funcname] = func
end
end
end
-- Iterator (testcasename) over all Testcases
function lunit.testcases()
-- Make a copy of testcases to prevent confusing the iterator when
-- new testcase are defined
local _testcases2 = {}
for k,v in pairs(_testcases) do
_testcases2[k] = true
end
return key_iter, _testcases2, nil
end
function testcase(tcname)
return _testcases[tcname]
end
end
do
-- Finds a function in a testcase case insensitive
local function findfuncname(tcname, name)
for key, value in pairs(testcase(tcname)) do
if is_string(key) and is_function(value) and string.lower(key) == name then
return key
end
end
end
function lunit.setupname(tcname)
return findfuncname(tcname, "setup")
end
function lunit.teardownname(tcname)
return findfuncname(tcname, "teardown")
end
-- Iterator over all test names in a testcase.
-- Have to collect the names first in case one of the test
-- functions creates a new global and throws off the iteration.
function lunit.tests(tcname)
local testnames = {}
for key, value in pairs(testcase(tcname)) do
if is_string(key) and is_function(value) then
local lfn = string.lower(key)
if string.sub(lfn, 1, 4) == "test" or string.sub(lfn, -4) == "test" then
testnames[key] = true
end
end
end
return key_iter, testnames, nil
end
end
function lunit.runtest(tcname, testname)
orig_assert( is_string(tcname) )
orig_assert( is_string(testname) )
local function callit(context, func)
if func then
local err = mypcall(func)
if err then
reporterrobj(context, tcname, testname, err)
return false
end
end
return true
end
traceback_hide(callit)
report("run", tcname, testname)
local tc = testcase(tcname)
local setup = tc[setupname(tcname)]
local test = tc[testname]
local teardown = tc[teardownname(tcname)]
local setup_ok = callit( "setup", setup )
local test_ok = setup_ok and callit( "test", test )
local teardown_ok = setup_ok and callit( "teardown", teardown )
if setup_ok and test_ok and teardown_ok then
stats.passed = stats.passed + 1
report("pass", tcname, testname)
end
end
traceback_hide(runtest)
function lunit.run()
clearstats()
report("begin")
for testcasename in lunit.testcases() do
-- Run tests in the testcases
for testname in lunit.tests(testcasename) do
runtest(testcasename, testname)
end
end
report("done")
return stats
end
traceback_hide(run)
function lunit.loadonly()
clearstats()
report("begin")
report("done")
return stats
end
local lunitpat2luapat
do
local conv = {
["^"] = "%^",
["$"] = "%$",
["("] = "%(",
[")"] = "%)",
["%"] = "%%",
["."] = "%.",
["["] = "%[",
["]"] = "%]",
["+"] = "%+",
["-"] = "%-",
["?"] = ".",
["*"] = ".*"
}
function lunitpat2luapat(str)
return "^" .. string.gsub(str, "%W", conv) .. "$"
end
end
local function in_patternmap(map, name)
if map[name] == true then
return true
else
for _, pat in ipairs(map) do
if string.find(name, pat) then
return true
end
end
end
return false
end
-- Called from 'lunit' shell script.
function main(argv)
argv = argv or {}
-- FIXME: Error handling and error messages aren't nice.
local function checkarg(optname, arg)
if not is_string(arg) then
return error("lunit.main: option "..optname..": argument missing.", 0)
end
end
local function loadtestcase(filename)
if not is_string(filename) then
return error("lunit.main: invalid argument")
end
local chunk, err = loadfile(filename)
if err then
return error(err)
else
chunk()
end
end
local testpatterns = nil
local doloadonly = false
local runner = nil
local i = 0
while i < #argv do
i = i + 1
local arg = argv[i]
if arg == "--loadonly" then
doloadonly = true
elseif arg == "--runner" or arg == "-r" then
local optname = arg; i = i + 1; arg = argv[i]
checkarg(optname, arg)
runner = arg
elseif arg == "--test" or arg == "-t" then
local optname = arg; i = i + 1; arg = argv[i]
checkarg(optname, arg)
testpatterns = testpatterns or {}
testpatterns[#testpatterns+1] = arg
elseif arg == "--" then
while i < #argv do
i = i + 1; arg = argv[i]
loadtestcase(arg)
end
else
loadtestcase(arg)
end
end
loadrunner(runner or "lunit-console")
if doloadonly then
return loadonly()
else
return run(testpatterns)
end
end
clearstats()
| apache-2.0 |
rlcevg/Zero-K | LuaUI/Widgets/map_edge_extension.lua | 1 | 14022 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Map Edge Extension",
version = "v0.5",
desc = "Draws a mirrored map next to the edges of the real map",
author = "Pako",
date = "2010.10.27 - 2011.10.29", --YYYY.MM.DD, created - updated
license = "GPL",
layer = 3,
enabled = true,
--detailsDefault = 3
}
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
if VFS.FileExists("nomapedgewidget.txt") then
return
end
local spGetGroundHeight = Spring.GetGroundHeight
local spTraceScreenRay = Spring.TraceScreenRay
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local gridTex = "LuaUI/Images/vr_grid_large.dds"
--local gridTex = "bitmaps/PD/shield3hex.png"
local realTex = '$grass'
local dList
local mirrorShader
local umirrorX
local umirrorZ
local ulengthX
local ulengthZ
local uup
local uleft
local ugrid
local ubrightness
local island = nil -- Later it will be checked and set to true of false
local drawingEnabled = true
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local function ResetWidget()
if dList and not drawingEnabled then
gl.DeleteList(dList)
end
if mirrorShader and not drawingEnabled then
gl.DeleteShader(mirrorShader)
end
widget:Initialize()
end
options_path = 'Settings/Graphics/Map Exterior'
options_order = {'mapBorderStyle', 'drawForIslands', 'gridSize', 'fogEffect', 'curvature', 'textureBrightness', 'useShader'}
options = {
--when using shader the map is stored once in a DL and drawn 8 times with vertex mirroring and bending
--when not, the map is drawn mirrored 8 times into a display list
mapBorderStyle = {
type='radioButton',
name='Exterior Effect',
items = {
{name = 'Texture', key = 'texture', desc = "Mirror the heightmap and texture.", hotkey=nil},
{name = 'Grid', key = 'grid', desc = "Mirror the heightmap with grid texture.", hotkey=nil},
{name = 'Cutaway', key = 'cutaway', desc = "Draw the edge of the map with a cutaway effect", hotkey=nil},
{name = 'Disable', key = 'disable', desc = "Draw no edge extension", hotkey=nil},
},
value = 'grid', --default at start of widget is to be disabled!
OnChange = function(self)
Spring.SendCommands("mapborder " .. ((self.value == 'cutaway') and "1" or "0"))
drawingEnabled = (self.value == "texture") or (self.value == "grid")
ResetWidget()
end,
},
drawForIslands = {
name = "Draw for islands",
type = 'bool',
value = true,
desc = "Draws mirror map when map is an island",
},
useShader = {
name = "Use shader",
type = 'bool',
value = true,
advanced = true,
desc = 'Use a shader when mirroring the map',
OnChange = ResetWidget,
},
gridSize = {
name = "Heightmap tile size",
type = 'number',
min = 32,
max = 512,
step = 32,
value = 32,
desc = '',
OnChange = ResetWidget,
},
textureBrightness = {
name = "Texture Brightness",
advanced = true,
type = 'number',
min = 0,
max = 1,
step = 0.01,
value = 0.27,
desc = 'Sets the brightness of the realistic texture (doesn\'t affect the grid)',
OnChange = ResetWidget,
},
fogEffect = {
name = "Edge Fog Effect",
type = 'bool',
value = false,
desc = 'Blurs the edges of the map slightly to distinguish it from the extension.',
OnChange = ResetWidget,
},
curvature = {
name = "Curvature Effect",
type = 'bool',
value = false,
desc = 'Add a curvature to the extension.',
OnChange = ResetWidget,
},
}
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
local shaderTable
local function SetupShaderTable()
shaderTable = {
uniform = {
mirrorX = 0,
mirrorZ = 0,
lengthX = 0,
lengthZ = 0,
tex0 = 0,
up = 0,
left = 0,
grid = 0,
brightness = 1.0,
},
vertex = (options.curvature.value and "#define curvature \n" or '')
.. (options.fogEffect.value and "#define edgeFog \n" or '')
.. [[
// Application to vertex shader
uniform float mirrorX;
uniform float mirrorZ;
uniform float lengthX;
uniform float lengthZ;
uniform float left;
uniform float up;
uniform float brightness;
varying vec4 vertex;
varying vec4 color;
void main()
{
gl_TexCoord[0]= gl_TextureMatrix[0]*gl_MultiTexCoord0;
gl_Vertex.x = abs(mirrorX-gl_Vertex.x);
gl_Vertex.z = abs(mirrorZ-gl_Vertex.z);
float alpha = 1.0;
#ifdef curvature
if(mirrorX)gl_Vertex.y -= pow(abs(gl_Vertex.x-left*mirrorX)/150.0, 2.0);
if(mirrorZ)gl_Vertex.y -= pow(abs(gl_Vertex.z-up*mirrorZ)/150.0, 2.0);
alpha = 0.0;
if(mirrorX) alpha -= pow(abs(gl_Vertex.x-left*mirrorX)/lengthX, 2.0);
if(mirrorZ) alpha -= pow(abs(gl_Vertex.z-up*mirrorZ)/lengthZ, 2.0);
alpha = 1.0 + (6.0 * (alpha + 0.18));
#endif
float ff = 20000.0;
if((mirrorZ && mirrorX))
ff=ff/(pow(abs(gl_Vertex.z-up*mirrorZ)/150.0, 2.0)+pow(abs(gl_Vertex.x-left*mirrorX)/150.0, 2.0)+2.0);
else if(mirrorX)
ff=ff/(pow(abs(gl_Vertex.x-left*mirrorX)/150.0, 2.0)+2.0);
else if(mirrorZ)
ff=ff/(pow(abs(gl_Vertex.z-up*mirrorZ)/150.0, 2.0)+2.0);
gl_Position = gl_ModelViewProjectionMatrix*gl_Vertex;
//gl_Position.z+ff;
#ifdef edgeFog
gl_FogFragCoord = length((gl_ModelViewMatrix * gl_Vertex).xyz)+ff; //see how Spring shaders do the fog and copy from there to fix this
#endif
gl_FrontColor = vec4(brightness * gl_Color.rgb, alpha);
color = gl_FrontColor;
vertex = gl_Vertex;
}
]],
-- fragment = [[
-- uniform float mirrorX;
-- uniform float mirrorZ;
-- uniform float lengthX;
-- uniform float lengthZ;
-- uniform float left;
-- uniform float up;
-- uniform int grid;
-- uniform sampler2D tex0;
-- varying vec4 vertex;
-- varying vec4 color;
-- void main()
-- {
-- float alpha = 0.0;
-- if(mirrorX) alpha -= pow(abs(vertex.x-left*mirrorX)/lengthX, 2);
-- if(mirrorZ) alpha -= pow(abs(vertex.z-up*mirrorZ)/lengthZ, 2);
-- alpha = 1.0 + (4.0 * (alpha + 0.28));
-- gl_FragColor = vec4(mix(gl_Fog.color, color.rgb, clamp((gl_Fog.end - gl_FogFragCoord) * gl_Fog.scale, 0.0, 1.0)), clamp(alpha, 0.0, 1.0)) * texture2D(tex0, gl_TexCoord[0].xy);
-- }
-- ]],
}
end
local function GetGroundHeight(x, z)
return spGetGroundHeight(x,z)
end
local function IsIsland()
local sampleDist = 512
for i=1,Game.mapSizeX,sampleDist do
-- top edge
if GetGroundHeight(i, 0) > 0 then
return false
end
-- bottom edge
if GetGroundHeight(i, Game.mapSizeZ) > 0 then
return false
end
end
for i=1,Game.mapSizeZ,sampleDist do
-- left edge
if GetGroundHeight(0, i) > 0 then
return false
end
-- right edge
if GetGroundHeight(Game.mapSizeX, i) > 0 then
return false
end
end
return true
end
local function DrawMapVertices(useMirrorShader)
local floor = math.floor
local ceil = math.ceil
local abs = math.abs
gl.Color(1,1,1,1)
local function doMap(dx,dz,sx,sz)
local Scale = options.gridSize.value
local sggh = Spring.GetGroundHeight
local Vertex = gl.Vertex
local glColor = gl.Color
local TexCoord = gl.TexCoord
local Normal = gl.Normal
local GetGroundNormal = Spring.GetGroundNormal
local mapSizeX, mapSizeZ = Game.mapSizeX, Game.mapSizeZ
local sten = {0, floor(Game.mapSizeZ/Scale)*Scale, 0}--do every other strip reverse
local xm0, xm1 = 0, 0
local xv0, xv1 = 0,math.abs(dx)+sx
local ind = 0
local zv
local h
if not useMirrorShader then
gl.TexCoord(0, sten[2]/Game.mapSizeZ)
Vertex(xv1, sggh(0,sten[2]),abs(dz+sten[2])+sz)--start and end with a double vertex
end
for x=0,Game.mapSizeX-Scale,Scale do
xv0, xv1 = xv1, abs(dx+x+Scale)+sx
xm0, xm1 = xm1, xm1+Scale
ind = (ind+1)%2
for z=sten[ind+1], sten[ind+2], (1+(-ind*2))*Scale do
zv = abs(dz+z)+sz
TexCoord(xm0/mapSizeX, z/mapSizeZ)
-- Normal(GetGroundNormal(xm0,z))
h = sggh(xm0,z)
Vertex(xv0,h,zv)
TexCoord(xm1/mapSizeX, z/mapSizeZ)
--Normal(GetGroundNormal(xm1,z))
h = sggh(xm1,z)
Vertex(xv1,h,zv)
end
end
if not useMirrorShader then
Vertex(xv1,h,zv)
end
end
if useMirrorShader then
doMap(0,0,0,0)
else
doMap(-Game.mapSizeX,-Game.mapSizeZ,-Game.mapSizeX,-Game.mapSizeZ)
doMap(0,-Game.mapSizeZ,0,-Game.mapSizeZ)
doMap(-Game.mapSizeX,-Game.mapSizeZ,Game.mapSizeX,-Game.mapSizeZ)
doMap(-Game.mapSizeX,0,-Game.mapSizeX,0)
doMap(-Game.mapSizeX,0,Game.mapSizeX,0)
doMap(-Game.mapSizeX,-Game.mapSizeZ,-Game.mapSizeX,Game.mapSizeZ)
doMap(0,-Game.mapSizeZ,0,Game.mapSizeZ)
doMap(-Game.mapSizeX,-Game.mapSizeZ,Game.mapSizeX,Game.mapSizeZ)
end
end
local function DrawOMap(useMirrorShader)
gl.Blending(GL.SRC_ALPHA,GL.ONE_MINUS_SRC_ALPHA)
gl.DepthTest(GL.LEQUAL)
if options.mapBorderStyle.value == "texture" then
gl.Texture(realTex)
else
gl.Texture(gridTex)
end
gl.BeginEnd(GL.TRIANGLE_STRIP,DrawMapVertices, useMirrorShader)
gl.DepthTest(false)
gl.Color(1,1,1,1)
gl.Blending(GL.SRC_ALPHA,GL.ONE_MINUS_SRC_ALPHA)
----draw map compass text
gl.PushAttrib(GL.ALL_ATTRIB_BITS)
gl.Texture(false)
gl.DepthMask(false)
gl.DepthTest(false)
gl.Color(1,1,1,1)
gl.PopAttrib()
----
end
function widget:Initialize()
if not drawingEnabled then
return
end
Spring.SendCommands("mapborder " .. ((options and (options.mapBorderStyle.value == 'cutaway')) and "1" or "0"))
if island == nil then
island = IsIsland()
end
SetupShaderTable()
Spring.SendCommands("luaui disablewidget External VR Grid")
if gl.CreateShader and options.useShader.value then
mirrorShader = gl.CreateShader(shaderTable)
if (mirrorShader == nil) then
Spring.Log(widget:GetInfo().name, LOG.ERROR, "Map Edge Extension widget: mirror shader error: "..gl.GetShaderLog())
end
end
if not mirrorShader then
widget.DrawWorldPreUnit = function()
if (not island) or options.drawForIslands.value then
gl.DepthMask(true)
--gl.Texture(tex)
gl.CallList(dList)
gl.Texture(false)
end
end
else
umirrorX = gl.GetUniformLocation(mirrorShader,"mirrorX")
umirrorZ = gl.GetUniformLocation(mirrorShader,"mirrorZ")
ulengthX = gl.GetUniformLocation(mirrorShader,"lengthX")
ulengthZ = gl.GetUniformLocation(mirrorShader,"lengthZ")
uup = gl.GetUniformLocation(mirrorShader,"up")
uleft = gl.GetUniformLocation(mirrorShader,"left")
ugrid = gl.GetUniformLocation(mirrorShader,"grid")
ubrightness = gl.GetUniformLocation(mirrorShader,"brightness")
end
dList = gl.CreateList(DrawOMap, mirrorShader)
--Spring.SetDrawGround(false)
end
function widget:Shutdown()
--Spring.SetDrawGround(true)
gl.DeleteList(dList)
if mirrorShader then
gl.DeleteShader(mirrorShader)
end
end
local function DrawWorldFunc() --is overwritten when not using the shader
if (not island) or options.drawForIslands.value then
local glTranslate = gl.Translate
local glUniform = gl.Uniform
local GamemapSizeZ, GamemapSizeX = Game.mapSizeZ,Game.mapSizeX
gl.Fog(true)
gl.FogCoord(1)
gl.UseShader(mirrorShader)
gl.PushMatrix()
gl.DepthMask(true)
if options.mapBorderStyle.value == "texture" then
gl.Texture(realTex)
glUniform(ubrightness, options.textureBrightness.value)
glUniform(ugrid, 0)
else
gl.Texture(gridTex)
glUniform(ubrightness, 1.0)
glUniform(ugrid, 1)
end
if wiremap then
gl.PolygonMode(GL.FRONT_AND_BACK, GL.LINE)
end
glUniform(umirrorX, GamemapSizeX)
glUniform(umirrorZ, GamemapSizeZ)
glUniform(ulengthX, GamemapSizeX)
glUniform(ulengthZ, GamemapSizeZ)
glUniform(uleft, 1)
glUniform(uup, 1)
glTranslate(-GamemapSizeX,0,-GamemapSizeZ)
gl.CallList(dList)
glUniform(uleft , 0)
glTranslate(GamemapSizeX*2,0,0)
gl.CallList(dList)
gl.Uniform(uup, 0)
glTranslate(0,0,GamemapSizeZ*2)
gl.CallList(dList)
glUniform(uleft, 1)
glTranslate(-GamemapSizeX*2,0,0)
gl.CallList(dList)
glUniform(umirrorX, 0)
glTranslate(GamemapSizeX,0,0)
gl.CallList(dList)
glUniform(uleft, 0)
glUniform(uup, 1)
glTranslate(0,0,-GamemapSizeZ*2)
gl.CallList(dList)
glUniform(uup, 0)
glUniform(umirrorZ, 0)
glUniform(umirrorX, GamemapSizeX)
glTranslate(GamemapSizeX,0,GamemapSizeZ)
gl.CallList(dList)
glUniform(uleft, 1)
glTranslate(-GamemapSizeX*2,0,0)
gl.CallList(dList)
if wiremap then
gl.PolygonMode(GL.FRONT_AND_BACK, GL.FILL)
end
gl.DepthMask(false)
gl.Texture(false)
gl.PopMatrix()
gl.UseShader(0)
gl.Fog(false)
end
end
function widget:DrawWorldPreUnit()
if drawingEnabled then
DrawWorldFunc()
end
end
function widget:DrawWorldRefraction()
if drawingEnabled then
DrawWorldFunc()
end
end
function widget:MousePress(x, y, button)
local _, mpos = spTraceScreenRay(x, y, true) --//convert UI coordinate into ground coordinate.
if mpos==nil then --//activate epic menu if mouse position is outside the map
local _, _, meta, _ = Spring.GetModKeyState()
if meta then --//show epicMenu when user also press the Spacebar
WG.crude.OpenPath(options_path) --click + space will shortcut to option-menu
WG.crude.ShowMenu() --make epic Chili menu appear.
return false
end
end
end | gpl-2.0 |
Mehranhpr/spam | plugins/gnuplot.lua | 622 | 1813 | --[[
* Gnuplot plugin by psykomantis
* dependencies:
* - gnuplot 5.00
* - libgd2-xpm-dev (on Debian distr) for more info visit: https://libgd.github.io/pages/faq.html
*
]]
-- Gnuplot needs absolute path for the plot, so i run some commands to find where we are
local outputFile = io.popen("pwd","r")
io.input(outputFile)
local _pwd = io.read("*line")
io.close(outputFile)
local _absolutePlotPath = _pwd .. "/data/plot.png"
local _scriptPath = "./data/gnuplotScript.gpl"
do
local function gnuplot(msg, fun)
local receiver = get_receiver(msg)
-- We generate the plot commands
local formattedString = [[
set grid
set terminal png
set output "]] .. _absolutePlotPath .. [["
plot ]] .. fun
local file = io.open(_scriptPath,"w");
file:write(formattedString)
file:close()
os.execute("gnuplot " .. _scriptPath)
os.remove (_scriptPath)
return _send_photo(receiver, _absolutePlotPath)
end
-- Check all dependencies before executing
local function checkDependencies()
local status = os.execute("gnuplot -h")
if(status==true) then
status = os.execute("gnuplot -e 'set terminal png'")
if(status == true) then
return 0 -- OK ready to go!
else
return 1 -- missing libgd2-xpm-dev
end
else
return 2 -- missing gnuplot
end
end
local function run(msg, matches)
local status = checkDependencies()
if(status == 0) then
return gnuplot(msg,matches[1])
elseif(status == 1) then
return "It seems that this bot miss a dependency :/"
else
return "It seems that this bot doesn't have gnuplot :/"
end
end
return {
description = "use gnuplot through telegram, only plot single variable function",
usage = "!gnuplot [single variable function]",
patterns = {"^!gnuplot (.+)$"},
run = run
}
end
| gpl-2.0 |
rlcevg/Zero-K | scripts/armsptk.lua | 11 | 4999 | include "constants.lua"
include "spider_walking.lua"
--------------------------------------------------------------------------------
-- pieces
--------------------------------------------------------------------------------
local base = piece 'base'
local turret = piece 'turret'
local box = piece 'box'
local leg1 = piece 'leg1' -- back right
local leg2 = piece 'leg2' -- middle right
local leg3 = piece 'leg3' -- front right
local leg4 = piece 'leg4' -- back left
local leg5 = piece 'leg5' -- middle left
local leg6 = piece 'leg6' -- front left
local flares = { piece('missile1', 'missile2', 'missile3') }
local smokePiece = {base, turret}
--------------------------------------------------------------------------------
-- constants
--------------------------------------------------------------------------------
-- Signal definitions
local SIG_WALK = 1
local SIG_AIM = 2
local SIG_MISSILEANIM = {4, 8, 16}
local PERIOD = 0.2
local sleepTime = PERIOD*1000
local legRaiseAngle = math.rad(30)
local legRaiseSpeed = legRaiseAngle/PERIOD
local legLowerSpeed = legRaiseAngle/PERIOD
local legForwardAngle = math.rad(20)
local legForwardTheta = math.rad(45)
local legForwardOffset = 0
local legForwardSpeed = legForwardAngle/PERIOD
local legMiddleAngle = math.rad(20)
local legMiddleTheta = 0
local legMiddleOffset = 0
local legMiddleSpeed = legMiddleAngle/PERIOD
local legBackwardAngle = math.rad(20)
local legBackwardTheta = -math.rad(45)
local legBackwardOffset = 0
local legBackwardSpeed = legBackwardAngle/PERIOD
local restore_delay = 4000
--------------------------------------------------------------------------------
-- variables
--------------------------------------------------------------------------------
local gun_1 = 1
-- four-stroke hexapedal walkscript
local function Walk()
Signal(SIG_WALK)
SetSignalMask(SIG_WALK)
while true do
walk(leg1, leg2, leg3, leg4, leg5, leg6,
legRaiseAngle, legRaiseSpeed, legLowerSpeed,
legForwardAngle, legForwardOffset, legForwardSpeed, legForwardTheta,
legMiddleAngle, legMiddleOffset, legMiddleSpeed, legMiddleTheta,
legBackwardAngle, legBackwardOffset, legBackwardSpeed, legBackwardTheta,
sleepTime)
end
end
local function RestoreLegs()
Signal(SIG_WALK)
SetSignalMask(SIG_WALK)
restoreLegs(leg1, leg2, leg3, leg4, leg5, leg6,
legRaiseSpeed, legForwardSpeed, legMiddleSpeed,legBackwardSpeed)
end
function script.Create()
StartThread(SmokeUnit, smokePiece)
end
function script.StartMoving()
StartThread(Walk)
end
function script.StopMoving()
StartThread(RestoreLegs)
end
local function RestoreAfterDelay()
Sleep(restore_delay)
Turn(turret, y_axis, 0, math.rad(45))
Turn(box, x_axis, 0, math.rad(45))
end
function script.AimWeapon(num, heading, pitch)
Signal(SIG_AIM)
SetSignalMask(SIG_AIM)
Turn(turret, y_axis, heading, math.rad(240))
Turn(box, x_axis, -pitch, math.rad(90))
WaitForTurn(turret, y_axis)
WaitForTurn(box, x_axis)
StartThread(RestoreAfterDelay)
return true
end
function script.AimFromWeapon(num)
return box
end
function script.QueryWeapon(num)
return flares[gun_1]
end
local function HideMissile(num)
Signal(SIG_MISSILEANIM[num])
SetSignalMask(SIG_MISSILEANIM[num])
Hide(flares[num])
Sleep(3000)
Show(flares[num])
end
function script.Shot(num)
gun_1 = gun_1 + 1
if gun_1 > 3 then gun_1 = 1 end
StartThread(HideMissile, gun_1)
end
function script.Killed(recentDamage, maxHealth)
local severity = recentDamage/maxHealth
if severity <= .25 then
Explode(box, sfxNone)
Explode(base, sfxNone)
Explode(leg1, sfxNone)
Explode(leg2, sfxNone)
Explode(leg3, sfxNone)
Explode(leg4, sfxNone)
Explode(leg5, sfxNone)
Explode(leg6, sfxNone)
Explode(turret, sfxNone)
return 1
elseif severity <= .50 then
Explode(box, sfxFall)
Explode(base, sfxNone)
Explode(leg1, sfxFall)
Explode(leg2, sfxFall)
Explode(leg3, sfxFall)
Explode(leg4, sfxFall)
Explode(leg5, sfxFall)
Explode(leg6, sfxFall)
Explode(turret, sfxShatter)
return 1
elseif severity <= .99 then
Explode(box, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(base, sfxNone)
Explode(leg1, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(leg2, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(leg3, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(leg4, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(leg5, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(leg6, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(turret, sfxShatter)
return 2
else
Explode(box, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(base, sfxNone)
Explode(leg1, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(leg2, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(leg3, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(leg4, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(leg5, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(leg6, sfxFall + sfxSmoke + sfxFire + sfxExplode)
Explode(turret, sfxShatter)
return 2
end
end | gpl-2.0 |
milanlenco/vpp | src/vpp-api/lua/examples/example-classifier.lua | 2 | 1362 | --[[
/*
* Copyright (c) 2016 Cisco and/or its affiliates.
* 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 vpp = require "vpp-lapi"
local bit = require("bit")
root_dir = "/home/ubuntu/vpp"
pneum_path = root_dir .. "/build-root/install-vpp_debug-native/vpp-api/lib64/libpneum.so"
vpp:init({ pneum_path = pneum_path })
vpp:json_api(root_dir .. "/build-root/install-vpp_debug-native/vpp/vpp-api/vpe.api.json")
vpp:connect("aytest")
-- api calls
print("Calling API to add a new classifier table")
reply = vpp:api_call("classify_add_del_table", {
context = 43,
memory_size = bit.lshift(2, 20),
client_index = 42,
is_add = 1,
nbuckets = 32,
skip_n_vectors = 0,
match_n_vectors = 1,
mask = "\255\255\255\255\255\255\255\255" .. "\255\255\255\255\255\255\255\255"
})
print(vpp.dump(reply))
print("---")
vpp:disconnect()
| apache-2.0 |
medialab-prado/Interactivos-15-Ego | minetest-ego/games/minetest_game/mods/default/nodes.lua | 1 | 46639 | -- mods/default/nodes.lua
--[[ Node name convention:
Although many node names are in combined-word form, the required form for new
node names is words separated by underscores. If both forms are used in written
language (for example pinewood and pine wood) the underscore form should be used.
--]]
--[[ Index:
Stone
-----
(1. Material 2. Cobble variant 3. Brick variant [4. Modified forms])
default:stone
default:cobble
default:stonebrick
default:mossycobble
default:desert_stone
default:desert_cobble
default:desert_stonebrick
default:sandstone
default:sandstonebrick
default:obsidian
default:obsidianbrick
Soft / Non-Stone
----------------
(1. Material [2. Modified forms])
default:dirt
default:dirt_with_grass
default:dirt_with_grass_footsteps
default:dirt_with_dry_grass
default:dirt_with_snow
default:sand
default:desert_sand
default:gravel
default:clay
default:snow
default:snowblock
default:ice
Trees
-----
(1. Trunk 2. Fabricated trunk 3. Leaves 4. Sapling [5. Fruits])
default:tree
default:wood
default:leaves
default:sapling
default:apple
default:jungletree
default:junglewood
default:jungleleaves
default:junglesapling
default:pine_tree
default:pine_wood
default:pine_needles
default:pine_sapling
default:acacia_tree
default:acacia_wood
default:acacia_leaves
default:acacia_sapling
Ores
----
(1. In stone 2. Block)
default:stone_with_coal
default:coalblock
default:stone_with_iron
default:steelblock
default:stone_with_copper
default:copperblock
default:bronzeblock
default:stone_with_gold
default:goldblock
default:stone_with_mese
default:mese
default:stone_with_diamond
default:diamondblock
Plantlife (non-cubic)
---------------------
default:cactus
default:papyrus
default:dry_shrub
default:junglegrass
default:grass_1
default:grass_2
default:grass_3
default:grass_4
default:grass_5
default:dry_grass_1
default:dry_grass_2
default:dry_grass_3
default:dry_grass_4
default:dry_grass_5
Liquids
-------
(1. Source 2. Flowing)
default:water_source
default:water_flowing
default:river_water_source
default:river_water_flowing
default:lava_source
default:lava_flowing
Tools / "Advanced" crafting / Non-"natural"
-------------------------------------------
default:torch
default:chest
default:chest_locked
default:bookshelf
default:sign_wall
default:ladder
default:fence_wood
default:glass
default:obsidian_glass
default:rail
default:brick
default:meselamp
Misc
----
default:cloud
default:nyancat
default:nyancat_rainbow
--]]
--
-- Stone
--
minetest.register_node("default:stone", {
description = "Stone",
tiles = {"default_stone.png"},
groups = {cracky = 3, stone = 1},
drop = 'default:cobble',
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:cobble", {
description = "Cobblestone",
tiles = {"default_cobble.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stonebrick", {
description = "Stone Brick",
tiles = {"default_stone_brick.png"},
is_ground_content = false,
groups = {cracky = 2, stone = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:mossycobble", {
description = "Mossy Cobblestone",
tiles = {"default_mossycobble.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:desert_stone", {
description = "Desert Stone",
tiles = {"default_desert_stone.png"},
groups = {cracky = 3, stone = 1},
drop = 'default:desert_cobble',
legacy_mineral = true,
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:desert_cobble", {
description = "Desert Cobblestone",
tiles = {"default_desert_cobble.png"},
is_ground_content = false,
groups = {cracky = 3, stone = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:desert_stonebrick", {
description = "Desert Stone Brick",
tiles = {"default_desert_stone_brick.png"},
is_ground_content = false,
groups = {cracky = 2, stone = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:sandstone", {
description = "Sandstone",
tiles = {"default_sandstone.png"},
groups = {crumbly = 2, cracky = 3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:sandstonebrick", {
description = "Sandstone Brick",
tiles = {"default_sandstone_brick.png"},
is_ground_content = false,
groups = {cracky = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:obsidian", {
description = "Obsidian",
tiles = {"default_obsidian.png"},
sounds = default.node_sound_stone_defaults(),
groups = {cracky = 1, level = 2},
})
minetest.register_node("default:obsidianbrick", {
description = "Obsidian Brick",
tiles = {"default_obsidian_brick.png"},
is_ground_content = false,
sounds = default.node_sound_stone_defaults(),
groups = {cracky = 1, level = 2},
})
--
-- Soft / Non-Stone
--
minetest.register_node("default:dirt", {
description = "Dirt",
tiles = {"default_dirt.png"},
groups = {crumbly = 3, soil = 1},
sounds = default.node_sound_dirt_defaults(),
})
minetest.register_node("default:dirt_with_grass", {
description = "Dirt with Grass",
tiles = {"default_grass.png", "default_dirt.png",
{name = "default_dirt.png^default_grass_side.png",
tileable_vertical = false}},
groups = {crumbly = 3, soil = 1},
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25},
}),
})
minetest.register_node("default:dirt_with_grass_footsteps", {
description = "Dirt with Grass and Footsteps",
tiles = {"default_grass.png^default_footprint.png", "default_dirt.png",
{name = "default_dirt.png^default_grass_side.png",
tileable_vertical = false}},
groups = {crumbly = 3, soil = 1, not_in_creative_inventory = 1},
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.25},
}),
})
minetest.register_node("default:dirt_with_dry_grass", {
description = "Dirt with Dry Grass",
tiles = {"default_dry_grass.png",
"default_dirt.png",
{name = "default_dirt.png^default_dry_grass_side.png",
tileable_vertical = false}},
groups = {crumbly = 3, soil = 1},
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_grass_footstep", gain = 0.4},
}),
})
minetest.register_node("default:dirt_with_snow", {
description = "Dirt with Snow",
tiles = {"default_snow.png", "default_dirt.png",
{name = "default_dirt.png^default_snow_side.png",
tileable_vertical = false}},
groups = {crumbly = 3, soil = 1},
drop = 'default:dirt',
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_snow_footstep", gain = 0.25},
}),
})
minetest.register_node("default:sand", {
description = "Sand",
tiles = {"default_sand.png"},
groups = {crumbly = 3, falling_node = 1, sand = 1},
sounds = default.node_sound_sand_defaults(),
})
minetest.register_node("default:desert_sand", {
description = "Desert Sand",
tiles = {"default_desert_sand.png"},
groups = {crumbly = 3, falling_node = 1, sand = 1},
sounds = default.node_sound_sand_defaults(),
})
minetest.register_node("default:gravel", {
description = "Gravel",
tiles = {"default_gravel.png"},
groups = {crumbly = 2, falling_node = 1},
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_gravel_footstep", gain = 0.5},
dug = {name = "default_gravel_footstep", gain = 1.0},
}),
})
minetest.register_node("default:clay", {
description = "Clay",
tiles = {"default_clay.png"},
groups = {crumbly = 3},
drop = 'default:clay_lump 4',
sounds = default.node_sound_dirt_defaults(),
})
minetest.register_node("default:snow", {
description = "Snow",
tiles = {"default_snow.png"},
inventory_image = "default_snowball.png",
wield_image = "default_snowball.png",
paramtype = "light",
buildable_to = true,
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.25, 0.5},
},
},
groups = {crumbly = 3, falling_node = 1, puts_out_fire = 1},
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_snow_footstep", gain = 0.25},
dug = {name = "default_snow_footstep", gain = 0.75},
}),
on_construct = function(pos)
pos.y = pos.y - 1
if minetest.get_node(pos).name == "default:dirt_with_grass" then
minetest.set_node(pos, {name = "default:dirt_with_snow"})
end
end,
})
minetest.register_node("default:snowblock", {
description = "Snow Block",
tiles = {"default_snow.png"},
groups = {crumbly = 3, puts_out_fire = 1},
sounds = default.node_sound_dirt_defaults({
footstep = {name = "default_snow_footstep", gain = 0.25},
dug = {name = "default_snow_footstep", gain = 0.75},
}),
})
minetest.register_node("default:ice", {
description = "Ice",
tiles = {"default_ice.png"},
is_ground_content = false,
paramtype = "light",
groups = {cracky = 3, puts_out_fire = 1},
sounds = default.node_sound_glass_defaults(),
})
--
-- Trees
--
minetest.register_node("default:tree", {
description = "Tree",
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("default:wood", {
description = "Wooden Planks",
tiles = {"default_wood.png"},
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("default:sapling", {
description = "Sapling",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"default_sapling.png"},
inventory_image = "default_sapling.png",
wield_image = "default_sapling.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
},
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
attached_node = 1, sapling = 1},
sounds = default.node_sound_leaves_defaults(),
})
minetest.register_node("default:leaves", {
description = "Leaves",
drawtype = "allfaces_optional",
waving = 1,
visual_scale = 1.3,
tiles = {"default_leaves.png"},
special_tiles = {"default_leaves_simple.png"},
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
drop = {
max_items = 1,
items = {
{
-- player will get sapling with 1/20 chance
items = {'default:sapling'},
rarity = 20,
},
{
-- player will get leaves only if he get no saplings,
-- this is because max_items is 1
items = {'default:leaves'},
}
}
},
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
})
minetest.register_node("default:apple", {
description = "Apple",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"default_apple.png"},
inventory_image = "default_apple.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-0.2, -0.5, -0.2, 0.2, 0, 0.2}
},
groups = {fleshy = 3, dig_immediate = 3, flammable = 2,
leafdecay = 3, leafdecay_drop = 1},
on_use = minetest.item_eat(2),
sounds = default.node_sound_leaves_defaults(),
after_place_node = function(pos, placer, itemstack)
if placer:is_player() then
minetest.set_node(pos, {name = "default:apple", param2 = 1})
end
end,
})
minetest.register_node("default:jungletree", {
description = "Jungle Tree",
tiles = {"default_jungletree_top.png", "default_jungletree_top.png",
"default_jungletree.png"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("default:junglewood", {
description = "Junglewood Planks",
tiles = {"default_junglewood.png"},
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("default:jungleleaves", {
description = "Jungle Leaves",
drawtype = "allfaces_optional",
waving = 1,
visual_scale = 1.3,
tiles = {"default_jungleleaves.png"},
special_tiles = {"default_jungleleaves_simple.png"},
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
drop = {
max_items = 1,
items = {
{items = {'default:junglesapling'}, rarity = 20},
{items = {'default:jungleleaves'}}
}
},
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
})
minetest.register_node("default:junglesapling", {
description = "Jungle Sapling",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"default_junglesapling.png"},
inventory_image = "default_junglesapling.png",
wield_image = "default_junglesapling.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
},
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
attached_node = 1, sapling = 1},
sounds = default.node_sound_leaves_defaults(),
})
minetest.register_node("default:pine_tree", {
description = "Pine Tree",
tiles = {"default_pine_tree_top.png", "default_pine_tree_top.png",
"default_pine_tree.png"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("default:pine_wood", {
description = "Pine Wood Planks",
tiles = {"default_pine_wood.png"},
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("default:pine_needles",{
description = "Pine Needles",
drawtype = "allfaces_optional",
visual_scale = 1.3,
tiles = {"default_pine_needles.png"},
waving = 1,
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
drop = {
max_items = 1,
items = {
{items = {"default:pine_sapling"}, rarity = 20},
{items = {"default:pine_needles"}}
}
},
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
})
minetest.register_node("default:pine_sapling", {
description = "Pine Sapling",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"default_pine_sapling.png"},
inventory_image = "default_pine_sapling.png",
wield_image = "default_pine_sapling.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
},
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
attached_node = 1, sapling = 1},
sounds = default.node_sound_leaves_defaults(),
})
minetest.register_node("default:acacia_tree", {
description = "Acacia Tree",
tiles = {"default_acacia_tree_top.png", "default_acacia_tree_top.png",
"default_acacia_tree.png"},
paramtype2 = "facedir",
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node
})
minetest.register_node("default:acacia_wood", {
description = "Acacia Wood Planks",
tiles = {"default_acacia_wood.png"},
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("default:acacia_leaves", {
description = "Acacia Leaves",
drawtype = "allfaces_optional",
visual_scale = 1.3,
tiles = {"default_acacia_leaves.png"},
waving = 1,
paramtype = "light",
is_ground_content = false,
groups = {snappy = 3, leafdecay = 3, flammable = 2, leaves = 1},
drop = {
max_items = 1,
items = {
{items = {"default:acacia_sapling"}, rarity = 20},
{items = {"default:acacia_leaves"}}
}
},
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
})
minetest.register_node("default:acacia_sapling", {
description = "Acacia Tree Sapling",
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"default_acacia_sapling.png"},
inventory_image = "default_acacia_sapling.png",
wield_image = "default_acacia_sapling.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
},
groups = {snappy = 2, dig_immediate = 3, flammable = 2,
attached_node = 1, sapling = 1},
sounds = default.node_sound_leaves_defaults(),
})
--
-- Ores
--
minetest.register_node("default:stone_with_coal", {
description = "Coal Ore",
tiles = {"default_stone.png^default_mineral_coal.png"},
groups = {cracky = 3},
drop = 'default:coal_lump',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:coalblock", {
description = "Coal Block",
tiles = {"default_coal_block.png"},
is_ground_content = false,
groups = {cracky = 3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stone_with_iron", {
description = "Iron Ore",
tiles = {"default_stone.png^default_mineral_iron.png"},
groups = {cracky = 2},
drop = 'default:iron_lump',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:steelblock", {
description = "Steel Block",
tiles = {"default_steel_block.png"},
is_ground_content = false,
groups = {cracky = 1, level = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stone_with_copper", {
description = "Copper Ore",
tiles = {"default_stone.png^default_mineral_copper.png"},
groups = {cracky = 2},
drop = 'default:copper_lump',
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:copperblock", {
description = "Copper Block",
tiles = {"default_copper_block.png"},
is_ground_content = false,
groups = {cracky = 1, level = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:bronzeblock", {
description = "Bronze Block",
tiles = {"default_bronze_block.png"},
is_ground_content = false,
groups = {cracky = 1, level = 2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stone_with_mese", {
description = "Mese Ore",
tiles = {"default_stone.png^default_mineral_mese.png"},
groups = {cracky = 1},
drop = "default:mese_crystal",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:mese", {
description = "Mese Block",
tiles = {"default_mese_block.png"},
paramtype = "light",
groups = {cracky = 1, level = 2},
sounds = default.node_sound_stone_defaults(),
light_source = 3,
})
minetest.register_node("default:stone_with_gold", {
description = "Gold Ore",
tiles = {"default_stone.png^default_mineral_gold.png"},
groups = {cracky = 2},
drop = "default:gold_lump",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:goldblock", {
description = "Gold Block",
tiles = {"default_gold_block.png"},
is_ground_content = false,
groups = {cracky = 1},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:stone_with_diamond", {
description = "Diamond Ore",
tiles = {"default_stone.png^default_mineral_diamond.png"},
groups = {cracky = 1},
drop = "default:diamond",
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:diamondblock", {
description = "Diamond Block",
tiles = {"default_diamond_block.png"},
is_ground_content = false,
groups = {cracky = 1, level = 3},
sounds = default.node_sound_stone_defaults(),
})
--
-- Plantlife (non-cubic)
--
minetest.register_node("default:cactus", {
description = "Cactus",
tiles = {"default_cactus_top.png", "default_cactus_top.png",
"default_cactus_side.png"},
paramtype2 = "facedir",
groups = {snappy = 1, choppy = 3, flammable = 2},
sounds = default.node_sound_wood_defaults(),
on_place = minetest.rotate_node,
after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger)
end,
})
minetest.register_node("default:papyrus", {
description = "Papyrus",
drawtype = "plantlike",
tiles = {"default_papyrus.png"},
inventory_image = "default_papyrus.png",
wield_image = "default_papyrus.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
selection_box = {
type = "fixed",
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
},
groups = {snappy = 3, flammable = 2},
sounds = default.node_sound_leaves_defaults(),
after_dig_node = function(pos, node, metadata, digger)
default.dig_up(pos, node, digger)
end,
})
minetest.register_node("default:dry_shrub", {
description = "Dry Shrub",
drawtype = "plantlike",
waving = 1,
visual_scale = 1.0,
tiles = {"default_dry_shrub.png"},
inventory_image = "default_dry_shrub.png",
wield_image = "default_dry_shrub.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {snappy = 3, flammable = 3, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
})
minetest.register_node("default:junglegrass", {
description = "Jungle Grass",
drawtype = "plantlike",
waving = 1,
visual_scale = 1.3,
tiles = {"default_junglegrass.png"},
inventory_image = "default_junglegrass.png",
wield_image = "default_junglegrass.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {snappy = 3, flammable = 2, flora = 1, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
})
minetest.register_node("default:grass_1", {
description = "Grass",
drawtype = "plantlike",
waving = 1,
tiles = {"default_grass_1.png"},
-- Use texture of a taller grass stage in inventory
inventory_image = "default_grass_3.png",
wield_image = "default_grass_3.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
on_place = function(itemstack, placer, pointed_thing)
-- place a random grass node
local stack = ItemStack("default:grass_" .. math.random(1,5))
local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("default:grass_1 " ..
itemstack:get_count() - (1 - ret:get_count()))
end,
})
for i = 2, 5 do
minetest.register_node("default:grass_" .. i, {
description = "Grass",
drawtype = "plantlike",
waving = 1,
tiles = {"default_grass_" .. i .. ".png"},
inventory_image = "default_grass_" .. i .. ".png",
wield_image = "default_grass_" .. i .. ".png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
drop = "default:grass_1",
groups = {snappy = 3, flammable = 3, flora = 1,
attached_node = 1, not_in_creative_inventory = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
})
end
minetest.register_node("default:dry_grass_1", {
description = "Dry Grass",
drawtype = "plantlike",
waving = 1,
tiles = {"default_dry_grass_1.png"},
inventory_image = "default_dry_grass_3.png",
wield_image = "default_dry_grass_3.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {snappy = 3, flammable = 3, flora = 1, attached_node = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
on_place = function(itemstack, placer, pointed_thing)
-- place a random dry grass node
local stack = ItemStack("default:dry_grass_" .. math.random(1, 5))
local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("default:dry_grass_1 " ..
itemstack:get_count() - (1 - ret:get_count()))
end,
})
for i = 2, 5 do
minetest.register_node("default:dry_grass_" .. i, {
description = "Dry Grass",
drawtype = "plantlike",
waving = 1,
tiles = {"default_dry_grass_" .. i .. ".png"},
inventory_image = "default_dry_grass_" .. i .. ".png",
wield_image = "default_dry_grass_" .. i .. ".png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
groups = {snappy = 3, flammable = 3, flora = 1,
attached_node = 1, not_in_creative_inventory=1},
drop = "default:dry_grass_1",
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
},
})
end
--
-- Liquids
--
minetest.register_node("default:water_source", {
description = "Water Source",
inventory_image = minetest.inventorycube("default_water.png"),
drawtype = "liquid",
tiles = {
{
name = "default_water_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
},
special_tiles = {
-- New-style water source material (mostly unused)
{
name = "default_water_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
backface_culling = false,
},
},
alpha = 160,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "default:water_flowing",
liquid_alternative_source = "default:water_source",
liquid_viscosity = 1,
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1},
})
minetest.register_node("default:water_flowing", {
description = "Flowing Water",
inventory_image = minetest.inventorycube("default_water.png"),
drawtype = "flowingliquid",
tiles = {"default_water.png"},
special_tiles = {
{
name = "default_water_flowing_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
{
name = "default_water_flowing_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
},
alpha = 160,
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "flowing",
liquid_alternative_flowing = "default:water_flowing",
liquid_alternative_source = "default:water_source",
liquid_viscosity = 1,
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1,
not_in_creative_inventory = 1},
})
minetest.register_node("default:river_water_source", {
description = "River Water Source",
inventory_image = minetest.inventorycube("default_river_water.png"),
drawtype = "liquid",
tiles = {
{
name = "default_river_water_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
},
special_tiles = {
{
name = "default_river_water_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
backface_culling = false,
},
},
alpha = 160,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "default:river_water_flowing",
liquid_alternative_source = "default:river_water_source",
liquid_viscosity = 1,
liquid_renewable = false,
liquid_range = 2,
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1},
})
minetest.register_node("default:river_water_flowing", {
description = "Flowing River Water",
inventory_image = minetest.inventorycube("default_river_water.png"),
drawtype = "flowingliquid",
tiles = {"default_river_water.png"},
special_tiles = {
{
name = "default_river_water_flowing_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
{
name = "default_river_water_flowing_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
},
alpha = 160,
paramtype = "light",
paramtype2 = "flowingliquid",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "flowing",
liquid_alternative_flowing = "default:river_water_flowing",
liquid_alternative_source = "default:river_water_source",
liquid_viscosity = 1,
liquid_renewable = false,
liquid_range = 2,
post_effect_color = {a = 103, r = 30, g = 76, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1,
not_in_creative_inventory = 1},
})
minetest.register_node("default:lava_source", {
description = "Lava Source",
inventory_image = minetest.inventorycube("default_lava.png"),
drawtype = "liquid",
tiles = {
{
name = "default_lava_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.0,
},
},
},
special_tiles = {
-- New-style lava source material (mostly unused)
{
name = "default_lava_source_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.0,
},
backface_culling = false,
},
},
paramtype = "light",
light_source = default.LIGHT_MAX - 1,
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "default:lava_flowing",
liquid_alternative_source = "default:lava_source",
liquid_viscosity = 7,
liquid_renewable = false,
damage_per_second = 4 * 2,
post_effect_color = {a = 191, r = 255, g = 64, b = 0},
groups = {lava = 3, liquid = 2, hot = 3, igniter = 1},
})
minetest.register_node("default:lava_flowing", {
description = "Flowing Lava",
inventory_image = minetest.inventorycube("default_lava.png"),
drawtype = "flowingliquid",
tiles = {"default_lava.png"},
special_tiles = {
{
name = "default_lava_flowing_animated.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.3,
},
},
{
name = "default_lava_flowing_animated.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.3,
},
},
},
paramtype = "light",
paramtype2 = "flowingliquid",
light_source = default.LIGHT_MAX - 1,
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
is_ground_content = false,
drop = "",
drowning = 1,
liquidtype = "flowing",
liquid_alternative_flowing = "default:lava_flowing",
liquid_alternative_source = "default:lava_source",
liquid_viscosity = 7,
liquid_renewable = false,
damage_per_second = 4 * 2,
post_effect_color = {a = 191, r = 255, g = 64, b = 0},
groups = {lava = 3, liquid = 2, hot = 3, igniter = 1,
not_in_creative_inventory = 1},
})
--
-- Tools / "Advanced" crafting / Non-"natural"
--
minetest.register_node("default:torch", {
description = "Torch",
drawtype = "torchlike",
tiles = {
{
name = "default_torch_on_floor_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.0
},
},
{
name="default_torch_on_ceiling_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.0
},
},
{
name="default_torch_animated.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 3.0
},
},
},
inventory_image = "default_torch_on_floor.png",
wield_image = "default_torch_on_floor.png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
is_ground_content = false,
walkable = false,
light_source = default.LIGHT_MAX - 1,
selection_box = {
type = "wallmounted",
wall_top = {-0.1, 0.5 - 0.6, -0.1, 0.1, 0.5, 0.1},
wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5 + 0.6, 0.1},
wall_side = {-0.5, -0.3, -0.1, -0.5 + 0.3, 0.3, 0.1},
},
groups = {choppy = 2, dig_immediate = 3, flammable = 1, attached_node = 1},
legacy_wallmounted = true,
sounds = default.node_sound_defaults(),
})
local chest_formspec =
"size[8,9]" ..
default.gui_bg ..
default.gui_bg_img ..
default.gui_slots ..
"list[current_name;main;0,0.3;8,4;]" ..
"list[current_player;main;0,4.85;8,1;]" ..
"list[current_player;main;0,6.08;8,3;8]" ..
"listring[current_name;main]" ..
"listring[current_player;main]" ..
default.get_hotbar_bg(0,4.85)
local function get_locked_chest_formspec(pos)
local spos = pos.x .. "," .. pos.y .. "," .. pos.z
local formspec =
"size[8,9]" ..
default.gui_bg ..
default.gui_bg_img ..
default.gui_slots ..
"list[nodemeta:" .. spos .. ";main;0,0.3;8,4;]" ..
"list[current_player;main;0,4.85;8,1;]" ..
"list[current_player;main;0,6.08;8,3;8]" ..
"listring[nodemeta:" .. spos .. ";main]" ..
"listring[current_player;main]" ..
default.get_hotbar_bg(0,4.85)
return formspec
end
local function has_locked_chest_privilege(meta, player)
if player:get_player_name() ~= meta:get_string("owner") then
return false
end
return true
end
minetest.register_node("default:chest", {
description = "Chest",
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
paramtype2 = "facedir",
groups = {choppy = 2, oddly_breakable_by_hand = 2},
legacy_facedir_simple = true,
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", chest_formspec)
meta:set_string("infotext", "Chest")
local inv = meta:get_inventory()
inv:set_size("main", 8*4)
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
return inv:is_empty("main")
end,
on_metadata_inventory_move = function(pos, from_list, from_index,
to_list, to_index, count, player)
minetest.log("action", player:get_player_name() ..
" moves stuff in chest at " .. minetest.pos_to_string(pos))
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
minetest.log("action", player:get_player_name() ..
" moves stuff to chest at " .. minetest.pos_to_string(pos))
end,
on_metadata_inventory_take = function(pos, listname, index, stack, player)
minetest.log("action", player:get_player_name() ..
" takes stuff from chest at " .. minetest.pos_to_string(pos))
end,
})
minetest.register_node("default:chest_locked", {
description = "Locked Chest",
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_lock.png"},
paramtype2 = "facedir",
groups = {choppy = 2, oddly_breakable_by_hand = 2},
legacy_facedir_simple = true,
is_ground_content = false,
sounds = default.node_sound_wood_defaults(),
after_place_node = function(pos, placer)
local meta = minetest.get_meta(pos)
meta:set_string("owner", placer:get_player_name() or "")
meta:set_string("infotext", "Locked Chest (owned by " ..
meta:get_string("owner") .. ")")
end,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("infotext", "Locked Chest")
meta:set_string("owner", "")
local inv = meta:get_inventory()
inv:set_size("main", 8 * 4)
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
return inv:is_empty("main") and has_locked_chest_privilege(meta, player)
end,
allow_metadata_inventory_move = function(pos, from_list, from_index,
to_list, to_index, count, player)
local meta = minetest.get_meta(pos)
if not has_locked_chest_privilege(meta, player) then
return 0
end
return count
end,
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if not has_locked_chest_privilege(meta, player) then
return 0
end
return stack:get_count()
end,
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
if not has_locked_chest_privilege(meta, player) then
return 0
end
return stack:get_count()
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
minetest.log("action", player:get_player_name() ..
" moves stuff to locked chest at " .. minetest.pos_to_string(pos))
end,
on_metadata_inventory_take = function(pos, listname, index, stack, player)
minetest.log("action", player:get_player_name() ..
" takes stuff from locked chest at " .. minetest.pos_to_string(pos))
end,
on_rightclick = function(pos, node, clicker)
local meta = minetest.get_meta(pos)
if has_locked_chest_privilege(meta, clicker) then
minetest.show_formspec(
clicker:get_player_name(),
"default:chest_locked",
get_locked_chest_formspec(pos)
)
end
end,
on_blast = function() end,
})
local bookshelf_formspec =
"size[8,7;]" ..
default.gui_bg ..
default.gui_bg_img ..
default.gui_slots ..
"list[context;books;0,0.3;8,2;]" ..
"list[current_player;main;0,2.85;8,1;]" ..
"list[current_player;main;0,4.08;8,3;8]" ..
"listring[context;books]" ..
"listring[current_player;main]" ..
default.get_hotbar_bg(0,2.85)
minetest.register_node("default:bookshelf", {
description = "Bookshelf",
tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
is_ground_content = false,
groups = {choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
sounds = default.node_sound_wood_defaults(),
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", bookshelf_formspec)
local inv = meta:get_inventory()
inv:set_size("books", 8 * 2)
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
return inv:is_empty("books")
end,
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
local to_stack = inv:get_stack(listname, index)
if listname == "books" then
if minetest.get_item_group(stack:get_name(), "book") ~= 0
and to_stack:is_empty() then
return 1
else
return 0
end
end
end,
allow_metadata_inventory_move = function(pos, from_list, from_index,
to_list, to_index, count, player)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
local stack = inv:get_stack(from_list, from_index)
local to_stack = inv:get_stack(to_list, to_index)
if to_list == "books" then
if minetest.get_item_group(stack:get_name(), "book") ~= 0
and to_stack:is_empty() then
return 1
else
return 0
end
end
end,
on_metadata_inventory_move = function(pos, from_list, from_index,
to_list, to_index, count, player)
minetest.log("action", player:get_player_name() ..
" moves stuff in bookshelf at " .. minetest.pos_to_string(pos))
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
minetest.log("action", player:get_player_name() ..
" moves stuff to bookshelf at " .. minetest.pos_to_string(pos))
end,
on_metadata_inventory_take = function(pos, listname, index, stack, player)
minetest.log("action", player:get_player_name() ..
" takes stuff from bookshelf at " .. minetest.pos_to_string(pos))
end,
})
minetest.register_node("default:sign_wall", {
description = "Sign",
drawtype = "nodebox",
tiles = {"default_sign.png"},
inventory_image = "default_sign_wall.png",
wield_image = "default_sign_wall.png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
is_ground_content = false,
walkable = false,
node_box = {
type = "wallmounted",
wall_top = {-0.4375, 0.4375, -0.3125, 0.4375, 0.5, 0.3125},
wall_bottom = {-0.4375, -0.5, -0.3125, 0.4375, -0.4375, 0.3125},
wall_side = {-0.5, -0.3125, -0.4375, -0.4375, 0.3125, 0.4375},
},
groups = {choppy = 2, dig_immediate = 2, attached_node = 1},
legacy_wallmounted = true,
sounds = default.node_sound_defaults(),
on_construct = function(pos)
--local n = minetest.get_node(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec", "field[text;;${text}]")
meta:set_string("infotext", "\"\"")
end,
on_receive_fields = function(pos, formname, fields, sender)
--print("Sign at "..minetest.pos_to_string(pos).." got "..dump(fields))
if minetest.is_protected(pos, sender:get_player_name()) then
minetest.record_protection_violation(pos, sender:get_player_name())
return
end
local meta = minetest.get_meta(pos)
if not fields.text then return end
minetest.log("action", (sender:get_player_name() or "") .. " wrote \"" ..
fields.text .. "\" to sign at " .. minetest.pos_to_string(pos))
meta:set_string("text", fields.text)
meta:set_string("infotext", '"' .. fields.text .. '"')
end,
})
minetest.register_node("default:ladder", {
description = "Ladder",
drawtype = "signlike",
tiles = {"default_ladder.png"},
inventory_image = "default_ladder.png",
wield_image = "default_ladder.png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
climbable = true,
is_ground_content = false,
selection_box = {
type = "wallmounted",
--wall_top = = <default>
--wall_bottom = = <default>
--wall_side = = <default>
},
groups = {choppy = 2, oddly_breakable_by_hand = 3, flammable = 2},
legacy_wallmounted = true,
sounds = default.node_sound_wood_defaults(),
})
local fence_texture =
"default_fence_overlay.png^default_wood.png^default_fence_overlay.png^[makealpha:255,126,126"
minetest.register_node("default:fence_wood", {
description = "Wooden Fence",
drawtype = "fencelike",
tiles = {"default_wood.png"},
inventory_image = fence_texture,
wield_image = fence_texture,
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
},
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node("default:glass", {
description = "Glass",
drawtype = "glasslike_framed_optional",
tiles = {"default_glass.png", "default_glass_detail.png"},
inventory_image = minetest.inventorycube("default_glass.png"),
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {cracky = 3, oddly_breakable_by_hand = 3},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_node("default:obsidian_glass", {
description = "Obsidian Glass",
drawtype = "glasslike_framed_optional",
tiles = {"default_obsidian_glass.png", "default_obsidian_glass_detail.png"},
inventory_image = minetest.inventorycube("default_obsidian_glass.png"),
paramtype = "light",
is_ground_content = false,
sunlight_propagates = true,
sounds = default.node_sound_glass_defaults(),
groups = {cracky = 3, oddly_breakable_by_hand = 3},
})
minetest.register_node("default:rail", {
description = "Rail",
drawtype = "raillike",
tiles = {"default_rail.png", "default_rail_curved.png",
"default_rail_t_junction.png", "default_rail_crossing.png"},
inventory_image = "default_rail.png",
wield_image = "default_rail.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
is_ground_content = false,
selection_box = {
type = "fixed",
-- but how to specify the dimensions for curved and sideways rails?
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
},
groups = {bendy = 2, dig_immediate = 2, attached_node = 1,
connect_to_raillike = minetest.raillike_group("rail")},
})
minetest.register_node("default:brick", {
description = "Brick Block",
tiles = {"default_brick.png"},
is_ground_content = false,
groups = {cracky = 3},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node("default:meselamp", {
description = "Mese Lamp",
drawtype = "glasslike",
tiles = {"default_meselamp.png"},
paramtype = "light",
sunlight_propagates = true,
is_ground_content = false,
groups = {cracky = 3, oddly_breakable_by_hand = 3},
sounds = default.node_sound_glass_defaults(),
light_source = default.LIGHT_MAX,
})
--
-- Misc
--
minetest.register_node("default:cloud", {
description = "Cloud",
tiles = {"default_cloud.png"},
is_ground_content = false,
sounds = default.node_sound_defaults(),
groups = {not_in_creative_inventory = 1},
})
minetest.register_node("default:nyancat", {
description = "Nyan Cat",
tiles = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png",
"default_nc_side.png", "default_nc_back.png", "default_nc_front.png"},
paramtype2 = "facedir",
groups = {cracky = 2},
is_ground_content = false,
legacy_facedir_simple = true,
sounds = default.node_sound_defaults(),
})
minetest.register_node("default:nyancat_rainbow", {
description = "Nyan Cat Rainbow",
tiles = {
"default_nc_rb.png^[transformR90", "default_nc_rb.png^[transformR90",
"default_nc_rb.png", "default_nc_rb.png"
},
paramtype2 = "facedir",
groups = {cracky = 2},
is_ground_content = false,
sounds = default.node_sound_defaults(),
})
| mit |
cailyoung/CommandPost | src/plugins/core/commands/actions.lua | 1 | 6225 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- C O M M A N D A C T I O N --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--- === plugins.core.commands.actions ===
---
--- An `action` which will execute a command with matching group/id values.
--- Registers itself with the `core.action.manager`.
--------------------------------------------------------------------------------
--
-- EXTENSIONS:
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- CommandPost Extensions:
--------------------------------------------------------------------------------
local dialog = require("cp.dialog")
--------------------------------------------------------------------------------
--
-- THE MODULE:
--
--------------------------------------------------------------------------------
local mod = {}
local ID = "cmds"
local GROUP = "global"
local format = string.format
--- plugins.core.commands.actions.init(actionmanager, cmds) -> none
--- Function
--- Initialises the module.
---
--- Parameters:
--- * `actionmanager` - The Action Manager Plugin
--- * `cmds` - The Commands Plugin.
---
--- Returns:
--- * None
function mod.init(actionmanager, cmds)
mod._cmds = cmds
mod._manager = actionmanager
mod._handler = actionmanager.addHandler(GROUP .. "_" .. ID, GROUP)
:onChoices(mod.onChoices)
:onExecute(mod.onExecute)
:onActionId(mod.getId)
-- watch for any aditional commands added after this point...
cmds:watch({
add = function() mod._handler:reset() end
})
end
--- plugins.core.commands.actions.onChoices(choices) -> none
--- Function
--- Adds available choices to the selection.
---
--- Parameters:
--- * `choices` - The `cp.choices` to add choices to.
---
--- Returns:
--- * None
function mod.onChoices(choices)
for _,cmd in pairs(mod._cmds:getAll()) do
local title = cmd:getTitle()
if title then
local group = cmd:getSubtitle()
if not group and cmd:getGroup() then
group = i18n(cmd:getGroup().."_group")
end
group = group or ""
local action = {
id = cmd:id(),
}
choices:add(title)
:subText(i18n("commandChoiceSubText", {group = group}))
:params(action)
:id(mod.getId(action))
end
end
end
--- plugins.core.commands.actions.getId(action) -> string
--- Function
--- Gets an ID from an action table
---
--- Parameters:
--- * `action` - The action table.
---
--- Returns:
--- * The ID as a string.
function mod.getId(action)
return format("%s:%s", ID, action.id)
end
--- plugins.core.commands.actions.execute(action) -> boolean
--- Function
--- Executes the action with the provided parameters.
---
--- Parameters:
--- * `action` - A table representing the action, matching the following:
--- * `id` - The specific Command ID within the group.
---
--- Returns:
--- * `true` if the action was executed successfully.
function mod.onExecute(action)
local group = mod._cmds
if group then
local cmdId = action.id
if cmdId == nil or cmdId == "" then
--------------------------------------------------------------------------------
-- No command ID provided:
--------------------------------------------------------------------------------
dialog.displayMessage(i18n("cmdIdMissingError"))
return false
end
local cmd = group:get(cmdId)
if cmd == nil then
--------------------------------------------------------------------------------
-- No matching command:
--------------------------------------------------------------------------------
dialog.displayMessage(i18n("cmdDoesNotExistError"), {id = cmdId})
return false
end
--------------------------------------------------------------------------------
-- Ensure the command group is active:
--------------------------------------------------------------------------------
group:activate(
function() cmd:activated() end,
function() dialog.displayMessage(i18n("cmdGroupNotActivated"), {id = group.id}) end
)
return true
end
return false
end
--- plugins.core.commands.actions.reset() -> nothing
--- Function
--- Resets the set of choices.
---
--- Parameters:
--- * None
---
--- Returns:
--- * Nothing
function mod.reset()
mod._handler:reset()
end
--------------------------------------------------------------------------------
--
-- THE PLUGIN:
--
--------------------------------------------------------------------------------
local plugin = {
id = "core.commands.actions",
group = "core",
dependencies = {
["core.action.manager"] = "actionmanager",
["core.commands.global"] = "cmds",
}
}
--------------------------------------------------------------------------------
-- INITIALISE PLUGIN:
--------------------------------------------------------------------------------
function plugin.init(deps)
return mod
end
--------------------------------------------------------------------------------
-- POST INITIALISE PLUGIN:
--------------------------------------------------------------------------------
function plugin.postInit(deps)
--------------------------------------------------------------------------------
-- TODO: Moving `mod.init()` from `plugin.init()` to `plugin.postInit()`
-- is just a temporary fix until David comes up with a better fix in
-- issue #897.
--------------------------------------------------------------------------------
mod.init(deps.actionmanager, deps.cmds)
return mod
end
return plugin | mit |
medialab-prado/Interactivos-15-Ego | minetest-ego/games/minetest_game/mods/beds/beds.lua | 3 | 2393 | -- fancy shaped bed
beds.register_bed("beds:fancy_bed", {
description = "Fancy Bed",
inventory_image = "beds_bed_fancy.png",
wield_image = "beds_bed_fancy.png",
tiles = {
bottom = {
"beds_bed_top1.png",
"default_wood.png",
"beds_bed_side1.png",
"beds_bed_side1.png^[transformFX",
"default_wood.png",
"beds_bed_foot.png",
},
top = {
"beds_bed_top2.png",
"default_wood.png",
"beds_bed_side2.png",
"beds_bed_side2.png^[transformFX",
"beds_bed_head.png",
"default_wood.png",
}
},
nodebox = {
bottom = {
{-0.5, -0.5, -0.5, -0.375, -0.065, -0.4375},
{0.375, -0.5, -0.5, 0.5, -0.065, -0.4375},
{-0.5, -0.375, -0.5, 0.5, -0.125, -0.4375},
{-0.5, -0.375, -0.5, -0.4375, -0.125, 0.5},
{0.4375, -0.375, -0.5, 0.5, -0.125, 0.5},
{-0.4375, -0.3125, -0.4375, 0.4375, -0.0625, 0.5},
},
top = {
{-0.5, -0.5, 0.4375, -0.375, 0.1875, 0.5},
{0.375, -0.5, 0.4375, 0.5, 0.1875, 0.5},
{-0.5, 0, 0.4375, 0.5, 0.125, 0.5},
{-0.5, -0.375, 0.4375, 0.5, -0.125, 0.5},
{-0.5, -0.375, -0.5, -0.4375, -0.125, 0.5},
{0.4375, -0.375, -0.5, 0.5, -0.125, 0.5},
{-0.4375, -0.3125, -0.5, 0.4375, -0.0625, 0.4375},
}
},
selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5},
recipe = {
{"", "", "group:stick"},
{"wool:red", "wool:red", "wool:white"},
{"group:wood", "group:wood", "group:wood"},
},
})
-- simple shaped bed
beds.register_bed("beds:bed", {
description = "Simple Bed",
inventory_image = "beds_bed.png",
wield_image = "beds_bed.png",
tiles = {
bottom = {
"beds_bed_top_bottom.png^[transformR90",
"default_wood.png",
"beds_bed_side_bottom_r.png",
"beds_bed_side_bottom_r.png^[transformfx",
"beds_transparent.png",
"beds_bed_side_bottom.png"
},
top = {
"beds_bed_top_top.png^[transformR90",
"default_wood.png",
"beds_bed_side_top_r.png",
"beds_bed_side_top_r.png^[transformfx",
"beds_bed_side_top.png",
"beds_transparent.png",
}
},
nodebox = {
bottom = {-0.5, -0.5, -0.5, 0.5, 0.06, 0.5},
top = {-0.5, -0.5, -0.5, 0.5, 0.06, 0.5},
},
selectionbox = {-0.5, -0.5, -0.5, 0.5, 0.06, 1.5},
recipe = {
{"wool:red", "wool:red", "wool:white"},
{"group:wood", "group:wood", "group:wood"}
},
})
-- aliases for PA's beds mod
minetest.register_alias("beds:bed_bottom_red", "beds:bed_bottom")
minetest.register_alias("beds:bed_top_red", "beds:bed_top")
| mit |
EliHar/Pattern_recognition | openface1/training/torch-TripletEmbedding/xmp/recycle-embedding.lua | 3 | 1751 | --------------------------------------------------------------------------------
-- Recycling embedding training example
--------------------------------------------------------------------------------
-- Alfredo Canziani, Apr 15
--------------------------------------------------------------------------------
package.path = "../?.lua;" .. package.path
require 'nn'
require 'TripletEmbedding'
colour = require 'trepl.colorize'
local b = colour.blue
torch.manualSeed(0)
batch = 5
embeddingSize = 3
imgSize = 20
-- Ancore training samples/images
aImgs = torch.rand(batch, 3, imgSize, imgSize)
-- Positive embedding batch
p = torch.rand(batch, embeddingSize)
-- Negativep embedding batch
n = torch.rand(batch, embeddingSize)
-- Network definition
convNet = nn.Sequential()
convNet:add(nn.SpatialConvolution(3, 8, 5, 5))
convNet:add(nn.SpatialMaxPooling(2, 2, 2, 2))
convNet:add(nn.ReLU())
convNet:add(nn.SpatialConvolution(8, 8, 5, 5))
convNet:add(nn.SpatialMaxPooling(2, 2, 2, 2))
convNet:add(nn.ReLU())
convNet:add(nn.View(8*2*2))
convNet:add(nn.Linear(8*2*2, embeddingSize))
convNet:add(nn.BatchNormalization(0))
-- Parallel container
parallel = nn.ParallelTable()
parallel:add(convNet)
parallel:add(nn.Identity())
parallel:add(nn.Identity())
print(b('Recycling-previous-epoch-embeddings network:')); print(parallel)
-- Cost function
loss = nn.TripletEmbeddingCriterion()
for i = 1, 4 do
print(colour.green('Epoch ' .. i))
predict = parallel:forward({aImgs, p, n})
err = loss:forward(predict)
errGrad = loss:backward(predict)
parallel:zeroGradParameters()
parallel:backward({aImgs, p, n}, errGrad)
parallel:updateParameters(0.01)
print(colour.red('loss: '), err)
print(b('gradInput[1]:')); print(errGrad[1])
end
| mit |
ViolyS/RayUI_VS | Interface/AddOns/RayUI/mini/TooltipItemIcon/TooltipItemIcon.lua | 2 | 33251 | -- TooltipItemIcon
-- Author: brykrys
-- Previous Authors: Alason, Freddy, Amavana
-- See end of file for global exports
-- Documentation can be found in commands.txt and developer.txt
local version = 1.59
-- release
--------------------------------------------------------------------------------
-- VARIABLES
--------------------------------------------------------------------------------
local IconDataTable = {}
local LocationTable = {
lefttop = {"TOPRIGHT", "TOPLEFT", 0, -3},
righttop = {"TOPLEFT", "TOPRIGHT", 0, -3},
topleft = {"BOTTOMLEFT", "TOPLEFT", 3, 0},
topright = {"BOTTOMRIGHT", "TOPRIGHT", -3, 0},
topcenter = {"BOTTOM", "TOP", 0, 0},
bottomleft = {"TOPLEFT", "BOTTOMLEFT", 3, 0},
bottomright = {"TOPRIGHT", "BOTTOMRIGHT", -3, 0},
bottomcenter = {"TOP", "BOTTOM", 0, 0},
}
local DisplayIconTable = {}
local HideIconTable = {}
local SetFunctionTable = {}
-- locals to hold subtables or settings, for access speed
local saved, options, texticonsize
local DisplayIconCurrent = function() end -- temp dummy function; overloaded when TTII fully loaded
local HideIconCurrent = DisplayIconCurrent
-- local references to global functions
local _G = _G
local tonumber = tonumber
local strmatch = strmatch
local strfind = strfind
local strsub = strsub
local next = next
local GetItemIcon = GetItemIcon
local GetSpellInfo = GetSpellInfo
local GetAchievementInfo = GetAchievementInfo
--------------------------------------------------------------------------------
-- VARIABLE HANDLING FUNCTIONS
--------------------------------------------------------------------------------
local function DefaultSavedVariables()
return {
version = version,
mode = "inside",
options = {
item = true,
spell = true,
achievement = true,
},
tooltips = {
compare = true,
},
frame = {
size = 39,
alpha = 1,
},
inside = {size = 26},
background = {
alpha = .9,
tintr = .4,
tintg = .4,
tintb = .4,
},
title = {size = 24},
exact = {},
template = {},
}
end
local function SetLocalVariables()
-- Sync locals with SavedVariables
saved = TooltipItemIcon_Saved
DisplayIconCurrent = DisplayIconTable[saved.mode]
HideIconCurrent = HideIconTable[saved.mode]
options = saved.options
if saved.mode == "inside" then
texticonsize = saved.inside.size
elseif saved.mode == "title" then
texticonsize = saved.title.size
else
texticonsize = nil
end
end
--------------------------------------------------------------------------------
-- UTILITY FUNCTIONS
--------------------------------------------------------------------------------
local function Print(msg, ...)
DEFAULT_CHAT_FRAME:AddMessage("TTII: "..format(msg, ...), .9, .9, .9)
end
--------------------------------------------------------------------------------
-- CORE FUNCTIONS
--------------------------------------------------------------------------------
-- dispatch to the appropriate show or hide function for current mode
-- NO other function should call DisplayIconCurrent or HideIconCurrent
-- NO other function should _change_ data.shown (though they may read it)
-- this is the key function that everything else revolves around!
local function DisplayIconDispatch(data, iconpath)
if iconpath then
data.shown = DisplayIconCurrent(data, iconpath)
elseif data.shown then
data.shown = false
HideIconCurrent(data)
end
end
-- get internal data table for this parent tooltip
-- most other functions will use this data table
local function GetTooltipData(parent, location, compare)
-- get data for this parent frame
local data = IconDataTable[parent]
if not data then -- new frame: create data and do all first-time processing
data = {}
data.parent = parent
IconDataTable[parent] = data
if compare then
data.compare = true
if not saved.tooltips.compare then
data.disable = true
end
end
data.defaultlocation = LocationTable[location]
local name, savedtable
name = parent:GetName()
savedtable = saved.exact[name]
if savedtable then
-- code to clean out empty tables
if next(savedtable) == nil then
savedtable = nil
saved.exact[name] = nil
end
else
name = strmatch(name, "^(%D+)")
savedtable = saved.template[name]
if savedtable and next(savedtable) == nil then
savedtable = nil
saved.template[name] = nil
end
end
if savedtable then
data.location = LocationTable[savedtable.location]
if savedtable.disable then
data.disable = true
data.saveddisable = true
end
end
end
return data
end
--------------------------------------------------------------------------------
-- GENERAL SUPPORT FUNCTIONS
--------------------------------------------------------------------------------
-- function to set location of icon frame relative to parent
-- NO other function should relocate the icon frame
local function SetFrameLocation(data)
local frame = data.frame
if not frame then
return
end
local parent = data.parent
local location = data.location or data.defaultlocation or LocationTable.lefttop
frame:ClearAllPoints()
frame:SetPoint(location[1], parent, location[2], location[3], location[4])
data.location = nil -- no longer needed
-- data.defaultlocation is preserved in case we need it again
end
-- function which takes a 'link' string and tries to find a texture from it
local function GetTextureFromLink(link)
local iconpath
if not link then return end
iconpath = GetItemIcon(link)
if iconpath then
if options.item then
return iconpath
else
return
end
end
if options.spell then
local extract = tonumber(strmatch(link, "spell:(%-?%d+)") or strmatch(link, "enchant:(%-?%d+)"))
if extract then
local _,_,tpath = GetSpellInfo(extract)
iconpath = tpath
end
end
if not iconpath and options.achievement then
local extract = tonumber(strmatch(link, "achievement:(%-?%d+)"))
if extract then
local _,_,_,_,_,_,_,_,_,tpath = GetAchievementInfo(extract)
iconpath = tpath
end
end
if not iconpath then
-- Test for raw texture
-- For now, only checks that it appears to be a file path, i.e. starts with "Interface/" or "Interface\"
-- May add validation later, by checking the return value from texture:SetTexture (on a test texture)
if strfind(link, "^Interface[/\\]") then
--Print ("Debug: raw texture detected "..link)
iconpath = link
end
end
return iconpath
end
--------------------------------------------------------------------------------
-- MODE-SELECTED FUNCTIONS
--------------------------------------------------------------------------------
HideIconTable.frame = function(data)
if data.frame then
data.frame:Hide()
end
end
HideIconTable.background = function(data)
local icon = data.backgroundicon
if icon and icon:IsShown() then
icon:Hide()
end
if data.background_oldr then
data.parent:SetBackdropColor(data.background_oldr, data.background_oldg, data.background_oldb, data.background_olda)
data.background_oldr, data.background_oldg, data.background_oldb, data.background_olda = false, false, false, false
end
end
HideIconTable.inside = function(data)
local icon = data.insideicon
if icon and icon:IsShown() then
icon:Hide()
end
if data.insideresetheight then
data.titlefield:SetHeight(0) -- height 0 removes explicit height setting
data.insideresetheight = nil
end
data.insideoldtext = nil
end
HideIconTable.title = function(data)
local icon = data.titlefield
local old = data.titleoldtext
if icon and old and icon:IsVisible() then
local check = icon:GetText()
if check and check ~= "" then
icon:SetText(old)
end
end
data.titleoldtext = nil
end
DisplayIconTable.frame = function(data, iconpath)
local iconframe = data.frame
-- check/create icon frame
if not iconframe then
-- create new icon frame
iconframe = CreateFrame("Frame", nil, data.parent)
iconframe:SetWidth(saved.frame.size)
iconframe:SetHeight(saved.frame.size)
data.frame = iconframe
-- create texture and attach to frame
data.frameicon = iconframe:CreateTexture(nil, "ARTWORK")
data.frameicon:SetAllPoints(iconframe)
data.frameicon:SetAlpha(saved.frame.alpha)
-- set anchor position
SetFrameLocation(data)
end
-- show the icon
data.frameicon:SetTexture(iconpath)
data.frameicon:SetTexCoord(0.08, 0.92, 0.08, 0.92)
iconframe:Show()
return iconpath
end
DisplayIconTable.background = function(data, iconpath)
local icon = data.backgroundicon
local parent = data.parent
-- check/create background texture
if not icon then
icon = data.parent:CreateTexture(nil, "BACKGROUND", nil, 7)
local sb = saved.background
icon:SetAlpha(sb.alpha)
icon:SetVertexColor(sb.tintr, sb.tintg, sb.tintb)
icon:SetAllPoints(parent)
data.backgroundicon = icon
end
-- adjust backdrop
data.background_oldr, data.background_oldg, data.background_oldb, data.background_olda = parent:GetBackdropColor()
parent:SetBackdropColor(0, 0, 0, 0)
-- show the icon
icon:SetTexture (iconpath)
icon:SetTexCoord(0.08, 0.92, 0.08, 0.92)
icon:Show()
return iconpath
end
DisplayIconTable.inside = function(data, iconpath)
local icon = data.insideicon
local control = data.titlefield
-- Find the text field
if not icon then
icon = _G[data.parent:GetName().."TextRight1"]
data.insideicon = icon
end
if not control then
control = _G[data.parent:GetName().."TextLeft1"]
data.titlefield = control
end
data.parent:Show() -- required for ShoppingTooltips
local oldtext = icon:GetText() or ""
data.insideoldtext = oldtext
-- show the icon
icon:SetFormattedText("%s |T%s:%d:%d:0:0:64:64:5:59:5:59|t", oldtext, iconpath, texticonsize, texticonsize)
icon:Show()
-- adjust height of title if icon size is large - this controls height of whole top line
local cheight, iheight = control:GetHeight(), icon:GetHeight() * .8 -- adjustment factor found by trial and error
if cheight < iheight then
control:SetHeight(iheight)
data.insideresetheight = cheight
end
data.parent:Show() -- required to reformat layout correctly
return iconpath
end
DisplayIconTable.title = function(data, iconpath)
local icon = data.titlefield
-- Find the text field
if not icon then
icon = _G[data.parent:GetName().."TextLeft1"]
data.titlefield = icon
end
--data.parent:Show() -- required for ShoppingTooltips -- todo: test if needed here
local oldtext = icon:GetText() or ""
data.titleoldtext = oldtext
-- show the icon
icon:SetFormattedText("|T%s:%d:%d:0:0:64:64:5:59:5:59|t %s", iconpath, texticonsize, texticonsize, oldtext)
icon:Show()
data.parent:Show() -- required to reformat layout correctly
return iconpath
end
--------------------------------------------------------------------------------
-- HOOKING FUNCTIONS
--------------------------------------------------------------------------------
-- Multipurpose hook
-- Takes extra parameters to initialize default location and compare status
-- Does NOT check if the icon is already shown, i.e. forces icon based on whatever link is passed
local function HookMultiplex(parent, link, location, compare)
local data = GetTooltipData(parent, location, compare)
if not data.disable then
DisplayIconDispatch(data, GetTextureFromLink (link))
end
end
-- Indirect multipurpose hook, for when we want to trim any extra parameters from the caller
-- (Currently only LinkWrangler hook)
local function HookLink(frame, link)
return HookMultiplex(frame, link)
end
-- Indirect hook, plus passes compare=true
-- (Currently only LinkWrangler Compare tooltips hook)
local function HookLinkComp(frame, link)
return HookMultiplex(frame, link, nil, true)
end
-- Hook for when we know the frame contains an item
-- (OnTooltipSetItem)
local function HookItem(frame)
if not options.item then
return
end
local data = GetTooltipData(frame)
if data.disable or data.shown then
return
end
local _,text = frame:GetItem()
if text then
text = GetItemIcon (text)
if text then
DisplayIconDispatch(data, text)
end
end
end
-- Hook for when we know the frame contains a spell
-- (OnTooltipSetSpell)
local function HookSpell(frame)
if not options.spell then
return
end
local data = GetTooltipData(frame)
if data.disable or data.shown then
return
end
local name, rank, spellID = frame:GetSpell()
if name then
local _, _, text = GetSpellInfo(spellID)
if text then
DisplayIconDispatch(data, text)
end
end
end
-- Hook for frame:SetHyperlink
local function HookHyperlink(frame, link)
if not frame:IsVisible() then -- check if SetHyperlink caused the frame to close
return
end
local data = GetTooltipData(frame)
if data.disable or data.shown then
return
end
DisplayIconDispatch(data, GetTextureFromLink(link))
end
--Hook for OnTooltipCleared - this gets called when the tooltip is hidden OR
--when another link is posted into the tooltip.
--Hides the icon by passing a nil texture
local function HookHide (frame)
local data = GetTooltipData (frame)
if data.disable then
return
end
DisplayIconDispatch(data)
end
--------------------------------------------------------------------------------
-- SLASH COMMAND HELPER FUNCTIONS
--------------------------------------------------------------------------------
-- saves configuration values specific to individual tooltips/frames
-- key is the name of the variable being saved; if key is nil all saved variables for this frame will be deleted
-- value is the value of the variable being saved; if value is nil then that variable will be deleted
local function SetSavedValue(frame, key, value)
local exactname, templatename
exactname = frame:GetName()
templatename = strmatch(exactname, "^(%D+)")
if exactname == templatename or not templatename then -- decide where to store this frame
if not key then
saved.exact[exactname] = nil
return
end
if not saved.exact[exactname] then
saved.exact[exactname] = {}
end
saved.exact[exactname][key] = value
else
if not key then
saved.template[templatename] = nil
return
end
if not saved.template[templatename] then
saved.template[templatename] = {}
end
saved.template[templatename][key] = value
end
end
-- called when global compare setting is changed
-- to recalculate the new disable setting for all tooltips
local function SyncDisableStatus ()
local globalcomp = not saved.tooltips.compare
for _, data in pairs (IconDataTable) do
data.disable = data.saveddisable or (data.compare and globalcomp)
if data.disable then
DisplayIconDispatch (data)
end
end
end
-- called when mode has been changed, either from explicit mode change
-- or from resetting saved variables
-- local variables should not have been reset yet
local function SyncModeChange ()
for _, data in pairs (IconDataTable) do
data.wasshown = data.shown
DisplayIconDispatch (data) -- hide icon in old mode
end
SetLocalVariables () -- completes the mode change
for _, data in pairs (IconDataTable) do
if data.wasshown then -- decide whether to show icon in new mode
DisplayIconDispatch (data, data.wasshown)
data.wasshown = nil
end
end
end
-- Called when the save data from all tooltips is purged
-- wipes all user-saved locations or disables
local function SyncTooltipPurge ()
for _, data in pairs (IconDataTable) do
data.saveddisable = nil
data.disable = data.compare and not saved.tooltips.compare
data.location = nil
SetFrameLocation (data)
end
end
SetFunctionTable.on = function (frame, data)
data.saveddisable = nil
data.disable = data.compare and not saved.tooltips.compare
SetSavedValue (frame, "disable", nil)
end
SetFunctionTable.off = function (frame, data)
data.disable = true
data.saveddisable = true
DisplayIconDispatch (data)
SetSavedValue (frame, "disable", true)
end
-- changes location of frame-mode icon to the location specified
-- todo: consider reducing number of params as newpos can be generated from poscode
SetFunctionTable.location = function (frame, data, newpos, poscode)
data.location = newpos
SetFrameLocation (data)
SetSavedValue (frame, "location", poscode)
end
-- clears saved location
-- moves frame-mode icon to default location (if applicable)
SetFunctionTable.default = function (frame, data)
data.location = nil
SetFrameLocation (data)
SetSavedValue (frame, "location", nil)
end
-- clears all saved values for this frame
-- combination of 'default' and 'on'
SetFunctionTable.reset = function (frame, data)
data.location = nil
SetFrameLocation (data)
data.saveddisable = nil
data.disable = data.compare and not saved.tooltips.compare
SetSavedValue (frame, nil)
end
--------------------------------------------------------------------------------
-- SLASH COMMAND FUNCTIONS
--------------------------------------------------------------------------------
-- Settings or other actions perfomed on one or more tooltips
-- name = code representing multiple tooltips OR name of tooltip (possibly preceded by ':')
local function SlashTooltipActions (name, action)
-- decode action first:
local value1, value2, setfunc
value1 = LocationTable[action]
if value1 then
if saved.mode ~= "frame" then
Print "Error: command not valid in this mode"
return
end
value2 = action
action = "location"
end
setfunc = SetFunctionTable[action]
if not setfunc then
return true -- error
end
-- decode name
if name == "all" then
Print ("Applying %s action to %s", action, "all tooltips")
if action == "reset" then
-- special case: clean out saved tables for all tooltips
saved.exact = {}
saved.template = {}
SyncTooltipPurge ()
return
end
for key, value in pairs (IconDataTable) do
setfunc (key, value, value1, value2)
end
return
elseif name == "screen" then
Print ("Applying %s action to %s", action, "visible tooltips")
for key, value in pairs (IconDataTable) do
if key:IsVisible() then
setfunc (key, value, value1, value2)
end
end
return
elseif name == "compare" then
-- works differently to the others
-- 'on' and 'off' should not be saved for individual tooltips
-- instead they set the global 'compare' option
if action == "on" then
saved.tooltips.compare = true
SyncDisableStatus ()
Print ("Compare tooltips %s", "enabled")
elseif action == "off" then
saved.tooltips.compare = false
SyncDisableStatus ()
Print ("Compare tooltips %s", "disabled")
else -- actions other than 'on' or 'off'
Print ("Applying %s action to %s", action, "comparison tooltips")
for key, value in pairs (IconDataTable) do
if value.compare then
setfunc (key, value, value1, value2)
end
end
end
return
end
-- explicit tooltip name marked by a starting ':' symbol; strip it out
if strsub(name, 1, 1) == ":" then
name = strsub(name, 2) or ""
end
if name == "" then
return true
end
Print("Applying %s action to %s", action, name)
-- look for a frame whose name matches the user-input string
-- note the string will be in lower case
local err = true
for frame, data in pairs(IconDataTable) do
local exactname, templatename
exactname = strlower(frame:GetName())
templatename = strmatch(exactname, "^(%D+)")
if name == exactname or name == templatename then
setfunc(frame, data, value1, value2)
err = nil
end
end
-- todo: search saved tables for frame name, in case we have seen it in a previous session
return err
end
local function SlashGlobalActions (command, extra)
if command == "reset" then
TooltipItemIcon_Saved = DefaultSavedVariables()
SyncTooltipPurge ()
SyncModeChange ()
Print "Saved variables reset to default values"
elseif command == "size" then
local extranumber = tonumber (extra)
if not extranumber or extranumber < 1 or extranumber > 999 then
Print "Error: number is out of range"
elseif saved.mode == "frame" then
saved.frame.size = extranumber
for _,data in pairs (IconDataTable) do
if data.frame then
data.frame:SetWidth (extranumber)
data.frame:SetHeight (extranumber)
end
end
Print ("Icon size set to %d", extranumber)
elseif saved.mode == "inside" then
saved.inside.size = extranumber
SetLocalVariables ()
Print ("Icon size set to %d", extranumber)
elseif saved.mode == "title" then
saved.title.size = extranumber
SetLocalVariables ()
Print ("Icon size set to %d", extranumber)
else
Print "Error: command not valid in this mode"
end
elseif command == "fade" then
local extranumber = tonumber (extra)
if not extranumber or extranumber < 0 or extranumber > 1 then
Print ("Error: number is out of range")
elseif saved.mode == "background" then
saved.background.tintr, saved.background.tintg, saved.background.tintb = extranumber, extranumber, extranumber
for _,data in pairs (IconDataTable) do
if data.backgroundicon then
data.backgroundicon:SetVertexColor(extranumber, extranumber, extranumber)
end
end
Print ("Background fade set to %g", extranumber)
else
Print "Error: command not valid in this mode"
end
elseif command == "alpha" then
local extranumber = tonumber (extra)
if not extranumber or extranumber < 0 or extranumber > 1 then
Print ("Error: number is out of range")
elseif saved.mode == "background" then
saved.background.alpha = extranumber
for _,data in pairs (IconDataTable) do
if data.backgroundicon then
data.backgroundicon:SetAlpha (extranumber)
end
end
Print ("Background alpha set to %g", extranumber)
elseif saved.mode == "frame" then
saved.frame.alpha = extranumber
for _,data in pairs (IconDataTable) do
if data.frameicon then
data.frameicon:SetAlpha (extranumber)
end
end
Print ("Frame alpha set to %g", extranumber)
else
Print "Error: command not valid in this mode"
end
elseif DisplayIconTable[command] then
saved.mode = command
SyncModeChange ()
Print ("Changing to %s mode", command)
elseif type (options[command]) == "boolean" then
if extra == "on" then
options[command] = true
elseif extra == "off" then
options[command] = false
else
-- ignore erroneous extra text for now
end
Print ("Option %s is now %s", command, options[command] and "enabled" or "disabled")
else
return true -- signal that further processing is required
end
end
local function SlashCommand (cmd)
-- extract data from command string
cmd = strlower (cmd)
local _, pos, command, extra
_,pos,command = strfind (cmd, "(%S+)")
if pos then
_,_,extra = strfind (cmd, "%s+(.+)", pos+1)
else
Print ("TooltipItemIcon version %g. Mode %s", version, saved.mode)
return
end
extra = extra or ""
-- call the slash processing functions to do the work
-- note: each function returns true if it did not recognize the command, i.e. further processing is required
if SlashGlobalActions (command, extra) and SlashTooltipActions (command, extra) then
Print "Error: unrecognised TooltipItemIcon command"
end
end
--------------------------------------------------------------------------------
-- STARTUP FUNCTIONS
--------------------------------------------------------------------------------
-- function called at startup, then deleted
local function CheckSavedVariables ()
local oldtable = TooltipItemIcon_Saved
if type (oldtable) ~= "table" then -- ensure it's a table
TooltipItemIcon_Saved = DefaultSavedVariables ()
return
end
local oldversion = oldtable.version
if oldversion == version then -- only check once when a new version is installed
return
end
Print "New version detected; checking saved variables"
-- Create a new default table to use as our saved variables
-- then copy over keys from the old table that match the types of keys in the default table
-- this eliminates any obsolete or corrupted keys
local newtable = DefaultSavedVariables ()
-- options: always boolean
if type(oldtable.options) == "table" then
for key, _ in pairs (newtable.options) do
if type(oldtable.options[key]) == "boolean" then
newtable.options[key] = oldtable.options[key]
end
end
end
-- Conversion: options.compare -> tooltips.compare
if oldtable.options and type(oldtable.options.compare) == "boolean" then
newtable.tooltips.compare = oldtable.options.compare
end
-- tooltips settings
if type(oldtable.tooltips) == "table" then
for key, value in pairs (newtable.tooltips) do
if type(oldtable.tooltips[key]) == type(value) then
newtable.tooltips[key] = oldtable.tooltips[key]
end
end
end
-- mode
if oldtable.mode == "frame" or oldtable.mode == "inside" or oldtable.mode == "background" or oldtable.mode == "title" then
newtable.mode = oldtable.mode
end
-- inside settings
if type(oldtable.inside) == "table" and type(oldtable.inside.size) == "number" then
newtable.inside.size = oldtable.inside.size
end
if type(oldtable.title) == "table" and type(oldtable.title.size) == "number" then
newtable.title.size = oldtable.title.size
end
-- background settings
if type (oldtable.background) == "table" and type (oldtable.background.alpha) == "number" then
newtable.background.alpha = oldtable.background.alpha
end
-- conversion: old background alpha -> new tint setting
if oldversion < 1.535 then
-- old-style alpha setting will have been copied over
local fade = newtable.background.alpha * (.4/.45)
newtable.background.alpha = .9
newtable.background.tintr, newtable.background.tintg, newtable.background.tintb = fade, fade, fade
end
-- frame settings
if type (oldtable.frame) == "table" then
if type (oldtable.frame.size) == "number" then
newtable.frame.size = oldtable.frame.size
end
if type (oldtable.frame.alpha) == "number" then
newtable.frame.alpha = oldtable.frame.alpha
end
end
-- settings for individual tooltips
-- exact name matches
if type(oldtable.exact) == "table" then
for key, value in pairs(oldtable.exact) do
if type(value) == "table" then
local flag
local tooltiptable = {}
if value.disable == true then
tooltiptable.disable = true
flag = true
end
if LocationTable[value.location] then
tooltiptable.location = value.location
flag = true
end
if flag then
newtable.exact[key] = tooltiptable
end
end
end
end
-- template name matches
if type(oldtable.template) == "table" then
for key, value in pairs(oldtable.template) do
if type(value) == "table" then
local flag
local tooltiptable = {}
if value.disable == true then
tooltiptable.disable = true
flag = true
end
if LocationTable[value.location] then
tooltiptable.location = value.location
flag = true
end
if flag then
newtable.template[key] = tooltiptable
end
end
end
end
TooltipItemIcon_Saved = newtable
end
local function OnEvent(frame) -- only event is VARIABLES_LOADED
-- saved Variables
CheckSavedVariables()
SetLocalVariables()
-- Blizzard tooltips
TooltipItemIcon_HookFrame(GameTooltip, "topleft")
TooltipItemIcon_HookFrame(ShoppingTooltip1, "topleft", true)
TooltipItemIcon_HookFrame(ShoppingTooltip2, "topleft", true)
TooltipItemIcon_HookFrame(ShoppingTooltip3, "topleft", true)
TooltipItemIcon_HookFrame(ItemRefTooltip, "topleft")
TooltipItemIcon_HookFrame(ItemRefShoppingTooltip1, "topleft", true)
TooltipItemIcon_HookFrame(ItemRefShoppingTooltip2, "topleft", true)
TooltipItemIcon_HookFrame(ItemRefShoppingTooltip3, "topleft", true)
-- LinkWrangler hooks
if LinkWrangler then
LinkWrangler.RegisterCallback("TooltipItemIcon", HookLink, "refresh")
LinkWrangler.RegisterCallback("TooltipItemIcon", HookHide, "minimize", "hide", "hidecomp")
LinkWrangler.RegisterCallback("TooltipItemIcon", HookLinkComp, "refreshcomp")
end
-- EquipCompare hooks
if ComparisonTooltip1 then
TooltipItemIcon_HookFrame(ComparisonTooltip1, "topleft", true)
end
if ComparisonTooltip2 then
TooltipItemIcon_HookFrame(ComparisonTooltip2, "topleft", true)
end
-- AtlasLoot
if AtlasLootTooltip then
TooltipItemIcon_HookFrame(AtlasLootTooltip)
end
-- slash commands
_G.SLASH_TOOLTIPITEMICON1 = "/tooltipitemicon"
_G.SLASH_TOOLTIPITEMICON2 = "/ttii"
SlashCmdList["TOOLTIPITEMICON"] = SlashCommand
-- unregister unneeded functions to free up memory
frame:UnregisterEvent("VARIABLES_LOADED")
frame:SetScript("OnEvent", nil)
end
local eventframe = CreateFrame("Frame")
eventframe:SetScript("OnEvent", OnEvent)
eventframe:RegisterEvent("VARIABLES_LOADED")
--------------------------------------------------------------------------------
-- EXPORTS
--------------------------------------------------------------------------------
--Refer to developer.txt for documentation
-- TooltipItemIcon_DisplayIcon (ParentFrame, [Link, [Location, [Compare]]])
-- Multi-purpose function used to explicitly attach an icon to your frame
-- Will work in more cases than TooltipItemIcon_HookFrame,
-- but requires the other AddOn to do more work
TooltipItemIcon_DisplayIcon = HookMultiplex
--Alternative hooking Export:
--TooltipItemIcon_HookFrame (frame, location, compare)
--call this function to automatically hook TTII to your frame
function TooltipItemIcon_HookFrame(frame, location, compare)
if type(frame) == "table" and frame.IsObjectType and frame:IsObjectType("GameTooltip") then
frame:HookScript("OnTooltipSetItem", HookItem)
frame:HookScript("OnTooltipSetSpell", HookSpell)
frame:HookScript("OnTooltipCleared", HookHide)
hooksecurefunc(frame, "SetHyperlink", HookHyperlink)
GetTooltipData(frame, location, compare) -- save location/compare settings
end
end
| mit |
rlcevg/Zero-K | effects/debris.lua | 25 | 2772 | -- debris1
return {
["debris1"] = {
dirt = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.97,
colormap = [[0.72 0.61 0.41 1 0 0 0 0.01]],
directional = false,
emitrot = 0,
emitrotspread = 90,
emitvector = [[0, 1, 0]],
gravity = [[0, -0.5, 0]],
numparticles = 20,
particlelife = 70,
particlelifespread = 10,
particlesize = 10,
particlesizespread = 10,
particlespeed = 15,
particlespeedspread = 5,
pos = [[0, 2, 0]],
sizegrowth = 0,
sizemod = 1.0,
texture = [[randdots]],
},
},
rocks = {
air = true,
class = [[CSimpleParticleSystem]],
count = 10,
ground = true,
water = true,
properties = {
airdrag = 0.97,
colormap = [[0.72 0.61 0.41 1 0.72 0.61 0.41 1]],
directional = false,
emitrot = 0,
emitrotspread = 90,
emitvector = [[0, 1, 0]],
gravity = [[0, -0.5, 0]],
numparticles = 1,
particlelife = 70,
particlelifespread = 0,
particlesize = 5,
particlesizespread = 10,
particlespeed = 10,
particlespeedspread = 10,
pos = [[0, 1, 0]],
sizegrowth = 0,
sizemod = 1.0,
texture = [[debris]],
},
},
smallrocks = {
air = true,
class = [[CSimpleParticleSystem]],
count = 10,
ground = true,
water = true,
properties = {
airdrag = 0.97,
colormap = [[0.72 0.61 0.41 1 0.72 0.61 0.41 1]],
directional = false,
emitrot = 0,
emitrotspread = 90,
emitvector = [[0, 1, 0]],
gravity = [[0, -0.5, 0]],
numparticles = 1,
particlelife = 70,
particlelifespread = 0,
particlesize = 5,
particlesizespread = 10,
particlespeed = 10,
particlespeedspread = 10,
pos = [[0, 1, 0]],
sizegrowth = 0,
sizemod = 1.0,
texture = [[debris2]],
},
},
},
}
| gpl-2.0 |
Jennal/cocos2dx-3.2-qt | cocos/scripting/lua-bindings/auto/api/ControlButton.lua | 6 | 8151 |
--------------------------------
-- @module ControlButton
-- @extend Control
-- @parent_module cc
--------------------------------
-- @function [parent=#ControlButton] isPushed
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#ControlButton] setSelected
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#ControlButton] setTitleLabelForState
-- @param self
-- @param #cc.Node node
-- @param #int state
--------------------------------
-- @function [parent=#ControlButton] setAdjustBackgroundImage
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#ControlButton] setHighlighted
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#ControlButton] setZoomOnTouchDown
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#ControlButton] setTitleForState
-- @param self
-- @param #string str
-- @param #int state
--------------------------------
-- @function [parent=#ControlButton] setLabelAnchorPoint
-- @param self
-- @param #vec2_table vec2
--------------------------------
-- @function [parent=#ControlButton] getLabelAnchorPoint
-- @param self
-- @return vec2_table#vec2_table ret (return value: vec2_table)
--------------------------------
-- @function [parent=#ControlButton] getTitleTTFSizeForState
-- @param self
-- @param #int state
-- @return float#float ret (return value: float)
--------------------------------
-- @function [parent=#ControlButton] setTitleTTFForState
-- @param self
-- @param #string str
-- @param #int state
--------------------------------
-- @function [parent=#ControlButton] setTitleTTFSizeForState
-- @param self
-- @param #float float
-- @param #int state
--------------------------------
-- @function [parent=#ControlButton] setTitleLabel
-- @param self
-- @param #cc.Node node
--------------------------------
-- @function [parent=#ControlButton] setPreferredSize
-- @param self
-- @param #size_table size
--------------------------------
-- @function [parent=#ControlButton] getCurrentTitleColor
-- @param self
-- @return color3b_table#color3b_table ret (return value: color3b_table)
--------------------------------
-- @function [parent=#ControlButton] setEnabled
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#ControlButton] getBackgroundSpriteForState
-- @param self
-- @param #int state
-- @return Scale9Sprite#Scale9Sprite ret (return value: cc.Scale9Sprite)
--------------------------------
-- @function [parent=#ControlButton] getHorizontalOrigin
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- @function [parent=#ControlButton] needsLayout
-- @param self
--------------------------------
-- @overload self
-- @overload self
-- @function [parent=#ControlButton] getCurrentTitle
-- @param self
-- @return string#string ret (retunr value: string)
--------------------------------
-- @function [parent=#ControlButton] getScaleRatio
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @function [parent=#ControlButton] getTitleTTFForState
-- @param self
-- @param #int state
-- @return string#string ret (return value: string)
--------------------------------
-- @function [parent=#ControlButton] getBackgroundSprite
-- @param self
-- @return Scale9Sprite#Scale9Sprite ret (return value: cc.Scale9Sprite)
--------------------------------
-- @function [parent=#ControlButton] getTitleColorForState
-- @param self
-- @param #int state
-- @return color3b_table#color3b_table ret (return value: color3b_table)
--------------------------------
-- @function [parent=#ControlButton] setTitleColorForState
-- @param self
-- @param #color3b_table color3b
-- @param #int state
--------------------------------
-- @function [parent=#ControlButton] doesAdjustBackgroundImage
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#ControlButton] setBackgroundSpriteFrameForState
-- @param self
-- @param #cc.SpriteFrame spriteframe
-- @param #int state
--------------------------------
-- @function [parent=#ControlButton] setBackgroundSpriteForState
-- @param self
-- @param #cc.Scale9Sprite scale9sprite
-- @param #int state
--------------------------------
-- @function [parent=#ControlButton] setScaleRatio
-- @param self
-- @param #float float
--------------------------------
-- @function [parent=#ControlButton] setBackgroundSprite
-- @param self
-- @param #cc.Scale9Sprite scale9sprite
--------------------------------
-- @function [parent=#ControlButton] getTitleLabel
-- @param self
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
-- @function [parent=#ControlButton] getPreferredSize
-- @param self
-- @return size_table#size_table ret (return value: size_table)
--------------------------------
-- @function [parent=#ControlButton] getVerticalMargin
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- @function [parent=#ControlButton] getTitleLabelForState
-- @param self
-- @param #int state
-- @return Node#Node ret (return value: cc.Node)
--------------------------------
-- @function [parent=#ControlButton] setMargins
-- @param self
-- @param #int int
-- @param #int int
--------------------------------
-- @function [parent=#ControlButton] setTitleBMFontForState
-- @param self
-- @param #string str
-- @param #int state
--------------------------------
-- @function [parent=#ControlButton] getTitleBMFontForState
-- @param self
-- @param #int state
-- @return string#string ret (return value: string)
--------------------------------
-- @function [parent=#ControlButton] getZoomOnTouchDown
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#ControlButton] getTitleForState
-- @param self
-- @param #int state
-- @return string#string ret (return value: string)
--------------------------------
-- @overload self, cc.Scale9Sprite
-- @overload self
-- @overload self, cc.Node, cc.Scale9Sprite
-- @overload self, string, string, float
-- @function [parent=#ControlButton] create
-- @param self
-- @param #string str
-- @param #string str
-- @param #float float
-- @return ControlButton#ControlButton ret (retunr value: cc.ControlButton)
--------------------------------
-- @function [parent=#ControlButton] onTouchMoved
-- @param self
-- @param #cc.Touch touch
-- @param #cc.Event event
--------------------------------
-- @function [parent=#ControlButton] onTouchEnded
-- @param self
-- @param #cc.Touch touch
-- @param #cc.Event event
--------------------------------
-- @function [parent=#ControlButton] setColor
-- @param self
-- @param #color3b_table color3b
--------------------------------
-- @function [parent=#ControlButton] onTouchCancelled
-- @param self
-- @param #cc.Touch touch
-- @param #cc.Event event
--------------------------------
-- @function [parent=#ControlButton] setOpacity
-- @param self
-- @param #unsigned char char
--------------------------------
-- @function [parent=#ControlButton] updateDisplayedOpacity
-- @param self
-- @param #unsigned char char
--------------------------------
-- @function [parent=#ControlButton] updateDisplayedColor
-- @param self
-- @param #color3b_table color3b
--------------------------------
-- @function [parent=#ControlButton] onTouchBegan
-- @param self
-- @param #cc.Touch touch
-- @param #cc.Event event
-- @return bool#bool ret (return value: bool)
return nil
| mit |
Zariel/oUF_Grid | oUF/elements/health.lua | 2 | 5978 | --[[ Element: Health Bar
Handles updating of `self.Health` based on the units health.
Widget
Health - A StatusBar used to represent current unit health.
Sub-Widgets
.bg - A Texture which functions as a background. It will inherit the color of
the main StatusBar.
Notes
The default StatusBar texture will be applied if the UI widget doesn't have a
status bar texture or color defined.
Options
The following options are listed by priority. The first check that returns
true decides the color of the bar.
.colorTapping - Use `self.colors.tapping` to color the bar if the unit
isn't tapped by the player.
.colorDisconnected - Use `self.colors.disconnected` to color the bar if the
unit is offline.
.colorClass - Use `self.colors.class[class]` to color the bar based on
unit class. `class` is defined by the second return of
[UnitClass](http://wowprogramming.com/docs/api/UnitClass).
.colorClassNPC - Use `self.colors.class[class]` to color the bar if the
unit is a NPC.
.colorClassPet - Use `self.colors.class[class]` to color the bar if the
unit is player controlled, but not a player.
.colorReaction - Use `self.colors.reaction[reaction]` to color the bar
based on the player's reaction towards the unit.
`reaction` is defined by the return value of
[UnitReaction](http://wowprogramming.com/docs/api/UnitReaction).
.colorSmooth - Use `self.colors.smooth` to color the bar with a smooth
gradient based on the player's current health percentage.
.colorHealth - Use `self.colors.health` to color the bar. This flag is
used to reset the bar color back to default if none of the
above conditions are met.
Sub-Widgets Options
.multiplier - Defines a multiplier, which is used to tint the background based
on the main widgets R, G and B values. Defaults to 1 if not
present.
Examples
-- Position and size
local Health = CreateFrame("StatusBar", nil, self)
Health:SetHeight(20)
Health:SetPoint('TOP')
Health:SetPoint('LEFT')
Health:SetPoint('RIGHT')
-- Add a background
local Background = Health:CreateTexture(nil, 'BACKGROUND')
Background:SetAllPoints(Health)
Background:SetTexture(1, 1, 1, .5)
-- Options
Health.frequentUpdates = true
Health.colorTapping = true
Health.colorDisconnected = true
Health.colorClass = true
Health.colorReaction = true
Health.colorHealth = true
-- Make the background darker.
Background.multiplier = .5
-- Register it with oUF
self.Health = Health
self.Health.bg = Background
Hooks
Override(self) - Used to completely override the internal update function.
Removing the table key entry will make the element fall-back
to its internal function again.
]]
local parent, ns = ...
local oUF = ns.oUF
oUF.colors.health = {49/255, 207/255, 37/255}
local Update = function(self, event, unit)
if(self.unit ~= unit) then return end
local health = self.Health
if(health.PreUpdate) then health:PreUpdate(unit) end
local min, max = UnitHealth(unit), UnitHealthMax(unit)
local disconnected = not UnitIsConnected(unit)
health:SetMinMaxValues(0, max)
if(disconnected) then
health:SetValue(max)
else
health:SetValue(min)
end
health.disconnected = disconnected
local r, g, b, t
if(health.colorTapping and not UnitPlayerControlled(unit) and
UnitIsTapped(unit) and not UnitIsTappedByPlayer(unit) and not
UnitIsTappedByAllThreatList(unit)) then
t = self.colors.tapped
elseif(health.colorDisconnected and not UnitIsConnected(unit)) then
t = self.colors.disconnected
elseif(health.colorClass and UnitIsPlayer(unit)) or
(health.colorClassNPC and not UnitIsPlayer(unit)) or
(health.colorClassPet and UnitPlayerControlled(unit) and not UnitIsPlayer(unit)) then
local _, class = UnitClass(unit)
t = self.colors.class[class]
elseif(health.colorReaction and UnitReaction(unit, 'player')) then
t = self.colors.reaction[UnitReaction(unit, "player")]
elseif(health.colorSmooth) then
r, g, b = self.ColorGradient(min, max, unpack(health.smoothGradient or self.colors.smooth))
elseif(health.colorHealth) then
t = self.colors.health
end
if(t) then
r, g, b = t[1], t[2], t[3]
end
if(b) then
health:SetStatusBarColor(r, g, b)
local bg = health.bg
if(bg) then local mu = bg.multiplier or 1
bg:SetVertexColor(r * mu, g * mu, b * mu)
end
end
if(health.PostUpdate) then
return health:PostUpdate(unit, min, max)
end
end
local Path = function(self, ...)
return (self.Health.Override or Update) (self, ...)
end
local ForceUpdate = function(element)
return Path(element.__owner, 'ForceUpdate', element.__owner.unit)
end
local Enable = function(self, unit)
local health = self.Health
if(health) then
health.__owner = self
health.ForceUpdate = ForceUpdate
if(health.frequentUpdates) then
self:RegisterEvent('UNIT_HEALTH_FREQUENT', Path)
else
self:RegisterEvent('UNIT_HEALTH', Path)
end
self:RegisterEvent("UNIT_MAXHEALTH", Path)
self:RegisterEvent('UNIT_CONNECTION', Path)
-- For tapping.
self:RegisterEvent('UNIT_FACTION', Path)
if(health:IsObjectType'StatusBar' and not health:GetStatusBarTexture()) then
health:SetStatusBarTexture[[Interface\TargetingFrame\UI-StatusBar]]
end
return true
end
end
local Disable = function(self)
local health = self.Health
if(health) then
health:Hide()
self:UnregisterEvent('UNIT_HEALTH_FREQUENT', Path)
self:UnregisterEvent('UNIT_HEALTH', Path)
self:UnregisterEvent('UNIT_MAXHEALTH', Path)
self:UnregisterEvent('UNIT_CONNECTION', Path)
self:UnregisterEvent('UNIT_FACTION', Path)
end
end
oUF:AddElement('Health', Path, Enable, Disable)
| bsd-3-clause |
chenxu0113/netcode | work/redis_Chinese_notated_3.0/deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first position
local t=x[l] -- pivot value
m=l
local i=l+1
while i<=u do
-- invariant: x[l+1..m] < t <= x[m+1..i-1]
if f(x[i],t) then
m=m+1
x[m],x[i]=x[i],x[m] -- swap x[i] and x[m]
end
i=i+1
end
x[l],x[m]=x[m],x[l] -- swap pivot to a valid place
-- x[l+1..m-1] < x[m] <= x[m+1..u]
qsort(x,l,m-1,f)
qsort(x,m+1,u,f)
end
end
function selectionsort(x,n,f)
local i=1
while i<=n do
local m,j=i,i+1
while j<=n do
if f(x[j],x[m]) then m=j end
j=j+1
end
x[i],x[m]=x[m],x[i] -- swap x[i] and x[m]
i=i+1
end
end
function show(m,x)
io.write(m,"\n\t")
local i=1
while x[i] do
io.write(x[i])
i=i+1
if x[i] then io.write(",") end
end
io.write("\n")
end
function testsorts(x)
local n=1
while x[n] do n=n+1 end; n=n-1 -- count elements
show("original",x)
qsort(x,1,n,function (x,y) return x<y end)
show("after quicksort",x)
selectionsort(x,n,function (x,y) return x>y end)
show("after reverse selection sort",x)
qsort(x,1,n,function (x,y) return x<y end)
show("after quicksort again",x)
end
-- array to be sorted
x={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}
testsorts(x)
| gpl-2.0 |
zming619/codis | extern/redis-2.8.13/deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first position
local t=x[l] -- pivot value
m=l
local i=l+1
while i<=u do
-- invariant: x[l+1..m] < t <= x[m+1..i-1]
if f(x[i],t) then
m=m+1
x[m],x[i]=x[i],x[m] -- swap x[i] and x[m]
end
i=i+1
end
x[l],x[m]=x[m],x[l] -- swap pivot to a valid place
-- x[l+1..m-1] < x[m] <= x[m+1..u]
qsort(x,l,m-1,f)
qsort(x,m+1,u,f)
end
end
function selectionsort(x,n,f)
local i=1
while i<=n do
local m,j=i,i+1
while j<=n do
if f(x[j],x[m]) then m=j end
j=j+1
end
x[i],x[m]=x[m],x[i] -- swap x[i] and x[m]
i=i+1
end
end
function show(m,x)
io.write(m,"\n\t")
local i=1
while x[i] do
io.write(x[i])
i=i+1
if x[i] then io.write(",") end
end
io.write("\n")
end
function testsorts(x)
local n=1
while x[n] do n=n+1 end; n=n-1 -- count elements
show("original",x)
qsort(x,1,n,function (x,y) return x<y end)
show("after quicksort",x)
selectionsort(x,n,function (x,y) return x>y end)
show("after reverse selection sort",x)
qsort(x,1,n,function (x,y) return x<y end)
show("after quicksort again",x)
end
-- array to be sorted
x={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}
testsorts(x)
| mit |
CrazyJvm/reborn | extern/redis-2.8.21/deps/lua/test/sort.lua | 889 | 1494 | -- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l<u then
local m=math.random(u-(l-1))+l-1 -- choose a random pivot in range l..u
x[l],x[m]=x[m],x[l] -- swap pivot to first position
local t=x[l] -- pivot value
m=l
local i=l+1
while i<=u do
-- invariant: x[l+1..m] < t <= x[m+1..i-1]
if f(x[i],t) then
m=m+1
x[m],x[i]=x[i],x[m] -- swap x[i] and x[m]
end
i=i+1
end
x[l],x[m]=x[m],x[l] -- swap pivot to a valid place
-- x[l+1..m-1] < x[m] <= x[m+1..u]
qsort(x,l,m-1,f)
qsort(x,m+1,u,f)
end
end
function selectionsort(x,n,f)
local i=1
while i<=n do
local m,j=i,i+1
while j<=n do
if f(x[j],x[m]) then m=j end
j=j+1
end
x[i],x[m]=x[m],x[i] -- swap x[i] and x[m]
i=i+1
end
end
function show(m,x)
io.write(m,"\n\t")
local i=1
while x[i] do
io.write(x[i])
i=i+1
if x[i] then io.write(",") end
end
io.write("\n")
end
function testsorts(x)
local n=1
while x[n] do n=n+1 end; n=n-1 -- count elements
show("original",x)
qsort(x,1,n,function (x,y) return x<y end)
show("after quicksort",x)
selectionsort(x,n,function (x,y) return x>y end)
show("after reverse selection sort",x)
qsort(x,1,n,function (x,y) return x<y end)
show("after quicksort again",x)
end
-- array to be sorted
x={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}
testsorts(x)
| mit |
anholt/ValyriaTear | dat/objects/weapons.lua | 1 | 23548 | ------------------------------------------------------------------------------[[
-- Filename: weapons.lua
--
-- Description: This file contains the definitions of all weapons.
-- Each weapon has a unique integer identifier that is used
-- as its key in the weapons table below. Weapon IDs are unique not only among
-- each other, but among other inventory game objects as well (items, armor,
-- etc).
--
-- Object IDs 10,001 through 20,000 are reserved for weapons. Do not break this
-- limit, because other value ranges correspond to other types of inventory objects.
--
-- Weapons IDs do -not- need to be sequential. When you make a new weapon, keep it
-- grouped with similar weapon types (swords with swords, etc.) and keep a buffer of
-- space between group types. This way we won't get a mess of random weapons all over
-- this file.
--
-- All weapon entries need the following data to be defined:
-- {name}: Text that defines the name of the weapon.
-- {description}: A brief description about the weapon.
-- {icon}: The filepath to the image icon representing this weapon.
-- {physical_attack}: The amount of physical damage that the weapon causes.
-- {magical_attack}: The amount of magical damage that the weapon causes.
-- {standard_price}: The standard asking price of this weapon from merchants.
-- {usable_by}: A list of characters which may equip this weapon.
-- {slots}: The number of slots available to equip shards on the weapon.
-- {key_item}: Tells whether the item is a key item, preventing it from being consumed or sold.
------------------------------------------------------------------------------]]
-- All weapon definitions are stored in this table
if (weapons == nil) then
weapons = {}
end
-- -----------------------------------------------------------------------------
-- IDs 10,001 - 10,500 are reserved for swords
-- -----------------------------------------------------------------------------
-- Wood/earth family
-- -----------------
weapons[10001] = {
name = vt_system.Translate("Wooden Sword"),
description = vt_system.Translate("A sword made of wood with a steel hilt, very good for practising."),
icon = "img/icons/weapons/woodensword.png",
physical_attack = 2,
magical_attack = 0,
standard_price = 0,
usable_by = BRONANN + THANIS,
slots = 0,
key_item = true,
battle_animations = {
[BRONANN] = {
idle = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_idle.lua",
run = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_run.lua",
run_after_victory = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_run_after_victory.lua",
attack = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_attack.lua",
dodge = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_dodge.lua",
victory = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_victory.lua",
hurt = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_hurt.lua",
poor = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_kneeling.lua",
dying = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_kneeling.lua",
dead = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_dead.lua",
revive = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_kneeling.lua",
item = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_idle.lua",
magic_prepare = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_magic_prepare.lua",
magic_cast = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_magic_cast.lua",
jump_forward = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_jump_forward.lua",
jump_backward = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_hurt.lua"
}
}
}
weapons[10002] = {
name = vt_system.Translate("Reinforced wooden Sword"),
description = vt_system.Translate("A sword made of wood with a steel hilt, very good for practising."),
icon = "img/icons/weapons/woodensword.png",
physical_attack = 11,
magical_attack = 0,
standard_price = 120,
usable_by = BRONANN + THANIS,
slots = 0,
key_item = true,
trade_conditions = {
[0] = 120, -- price
[10001] = 1, -- 1 wooden sword
[3001] = 3 -- 3 Copper ore
},
battle_animations = {
[BRONANN] = {
idle = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_idle.lua",
run = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_run.lua",
run_after_victory = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_run_after_victory.lua",
attack = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_attack.lua",
dodge = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_dodge.lua",
victory = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_victory.lua",
hurt = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_hurt.lua",
poor = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_kneeling.lua",
dying = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_kneeling.lua",
dead = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_dead.lua",
revive = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_kneeling.lua",
item = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_idle.lua",
magic_prepare = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_magic_prepare.lua",
magic_cast = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_magic_cast.lua",
jump_forward = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_jump_forward.lua",
jump_backward = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_hurt.lua"
}
}
}
weapons[10003] = {
name = vt_system.Translate("Perfect wooden Sword"),
description = vt_system.Translate("A sword made of wood with a steel hilt, very good for practising."),
icon = "img/icons/weapons/woodensword.png",
physical_attack = 20,
magical_attack = 0,
standard_price = 150,
usable_by = BRONANN + THANIS,
slots = 0,
key_item = true,
trade_conditions = {
[0] = 150, -- price
[10002] = 1, -- 1 Reinforced wooden sword
[3001] = 5 -- 5 Copper ore
},
battle_animations = {
[BRONANN] = {
idle = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_idle.lua",
run = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_run.lua",
run_after_victory = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_run_after_victory.lua",
attack = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_attack.lua",
dodge = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_dodge.lua",
victory = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_victory.lua",
hurt = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_hurt.lua",
poor = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_kneeling.lua",
dying = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_kneeling.lua",
dead = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_dead.lua",
revive = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_kneeling.lua",
item = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_idle.lua",
magic_prepare = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_magic_prepare.lua",
magic_cast = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_magic_cast.lua",
jump_forward = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_jump_forward.lua",
jump_backward = "img/sprites/battle/characters/bronann/weapons/wood_bronze/bronann_hurt.lua"
}
}
}
-- Iron/fire family
-- -----------------
weapons[10011] = {
name = vt_system.Translate("Iron Sword"),
description = vt_system.Translate("A sturdy but somewhat dull sword whose blade was forged from a single block of solid iron."),
icon = "img/icons/weapons/iron_sword.png",
physical_attack = 36,
magical_attack = 0,
standard_price = 250,
usable_by = BRONANN + THANIS,
slots = 0,
battle_animations = {
[BRONANN] = {
idle = "img/sprites/battle/characters/bronann/weapons/steel/bronann_idle.lua",
run = "img/sprites/battle/characters/bronann/weapons/steel/bronann_run.lua",
run_after_victory = "img/sprites/battle/characters/bronann/weapons/steel/bronann_run_after_victory.lua",
attack = "img/sprites/battle/characters/bronann/weapons/steel/bronann_attack.lua",
dodge = "img/sprites/battle/characters/bronann/weapons/steel/bronann_dodge.lua",
victory = "img/sprites/battle/characters/bronann/weapons/steel/bronann_victory.lua",
hurt = "img/sprites/battle/characters/bronann/weapons/steel/bronann_hurt.lua",
poor = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
dying = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
dead = "img/sprites/battle/characters/bronann/weapons/steel/bronann_dead.lua",
revive = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
item = "img/sprites/battle/characters/bronann/weapons/steel/bronann_idle.lua",
magic_prepare = "img/sprites/battle/characters/bronann/weapons/steel/bronann_magic_prepare.lua",
magic_cast = "img/sprites/battle/characters/bronann/weapons/steel/bronann_magic_cast.lua",
jump_forward = "img/sprites/battle/characters/bronann/weapons/steel/bronann_jump_forward.lua",
jump_backward = "img/sprites/battle/characters/bronann/weapons/steel/bronann_hurt.lua"
}
}
}
weapons[10012] = {
name = vt_system.Translate("Soldier Sword"),
description = vt_system.Translate("Standard soldier sword. A light weight iron sword suitable for most skirmishes."),
icon = "img/icons/weapons/karlate_sword.png",
physical_attack = 45,
magical_attack = 0,
standard_price = 1150,
usable_by = BRONANN + THANIS,
slots = 0,
trade_conditions = {
[0] = 1150, -- price
[10011] = 1, -- 1 Iron sword
[3001] = 3, -- 3 Copper ore
[3002] = 1 -- 1 Iron ore
},
battle_animations = {
[BRONANN] = {
idle = "img/sprites/battle/characters/bronann/weapons/steel/bronann_idle.lua",
run = "img/sprites/battle/characters/bronann/weapons/steel/bronann_run.lua",
run_after_victory = "img/sprites/battle/characters/bronann/weapons/steel/bronann_run_after_victory.lua",
attack = "img/sprites/battle/characters/bronann/weapons/steel/bronann_attack.lua",
dodge = "img/sprites/battle/characters/bronann/weapons/steel/bronann_dodge.lua",
victory = "img/sprites/battle/characters/bronann/weapons/steel/bronann_victory.lua",
hurt = "img/sprites/battle/characters/bronann/weapons/steel/bronann_hurt.lua",
poor = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
dying = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
dead = "img/sprites/battle/characters/bronann/weapons/steel/bronann_dead.lua",
revive = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
item = "img/sprites/battle/characters/bronann/weapons/steel/bronann_idle.lua",
magic_prepare = "img/sprites/battle/characters/bronann/weapons/steel/bronann_magic_prepare.lua",
magic_cast = "img/sprites/battle/characters/bronann/weapons/steel/bronann_magic_cast.lua",
jump_forward = "img/sprites/battle/characters/bronann/weapons/steel/bronann_jump_forward.lua",
jump_backward = "img/sprites/battle/characters/bronann/weapons/steel/bronann_hurt.lua"
}
}
}
weapons[10013] = {
name = vt_system.Translate("Knight's Blade"),
description = vt_system.Translate("A weapon bestowed to seasoned veterans of the knighthood."),
icon = "img/icons/weapons/knights_blade.png",
physical_attack = 54,
magical_attack = 0,
standard_price = 2180,
usable_by = BRONANN + THANIS,
slots = 1,
trade_conditions = {
[0] = 1150, -- price
[10012] = 1, -- 1 Soldier sword
[3002] = 3, -- 3 Iron ore
--[3002] = 1 -- TODO: Add 1 feather
},
battle_animations = {
[BRONANN] = {
idle = "img/sprites/battle/characters/bronann/weapons/steel/bronann_idle.lua",
run = "img/sprites/battle/characters/bronann/weapons/steel/bronann_run.lua",
run_after_victory = "img/sprites/battle/characters/bronann/weapons/steel/bronann_run_after_victory.lua",
attack = "img/sprites/battle/characters/bronann/weapons/steel/bronann_attack.lua",
dodge = "img/sprites/battle/characters/bronann/weapons/steel/bronann_dodge.lua",
victory = "img/sprites/battle/characters/bronann/weapons/steel/bronann_victory.lua",
hurt = "img/sprites/battle/characters/bronann/weapons/steel/bronann_hurt.lua",
poor = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
dying = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
dead = "img/sprites/battle/characters/bronann/weapons/steel/bronann_dead.lua",
revive = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
item = "img/sprites/battle/characters/bronann/weapons/steel/bronann_idle.lua",
magic_prepare = "img/sprites/battle/characters/bronann/weapons/steel/bronann_magic_prepare.lua",
magic_cast = "img/sprites/battle/characters/bronann/weapons/steel/bronann_magic_cast.lua",
jump_forward = "img/sprites/battle/characters/bronann/weapons/steel/bronann_jump_forward.lua",
jump_backward = "img/sprites/battle/characters/bronann/weapons/steel/bronann_hurt.lua"
}
}
}
weapons[10014] = {
name = vt_system.Translate("Paladin's Sword"),
description = vt_system.Translate("A mythical weapon blessed with a magical fire."),
icon = "img/icons/weapons/paladin-sword.png",
physical_attack = 90,
magical_attack = 30,
standard_price = 4340,
usable_by = BRONANN + THANIS,
slots = 3,
trade_conditions = {
[0] = 4000, -- price
[10013] = 1, -- 1 Knight's blade
[3002] = 5, -- 5 Iron Ore
-- TODO: Add 3 feathers
-- TODO: Add 1 fire salamander
},
status_effects = {
[vt_global.GameGlobal.GLOBAL_STATUS_PROTECTION] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_LESSER,
[vt_global.GameGlobal.GLOBAL_STATUS_VIGOR] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_LESSER,
[vt_global.GameGlobal.GLOBAL_STATUS_LIFE] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_LESSER
},
battle_animations = {
[BRONANN] = {
idle = "img/sprites/battle/characters/bronann/weapons/steel/bronann_idle.lua",
run = "img/sprites/battle/characters/bronann/weapons/steel/bronann_run.lua",
run_after_victory = "img/sprites/battle/characters/bronann/weapons/steel/bronann_run_after_victory.lua",
attack = "img/sprites/battle/characters/bronann/weapons/steel/bronann_attack.lua",
dodge = "img/sprites/battle/characters/bronann/weapons/steel/bronann_dodge.lua",
victory = "img/sprites/battle/characters/bronann/weapons/steel/bronann_victory.lua",
hurt = "img/sprites/battle/characters/bronann/weapons/steel/bronann_hurt.lua",
poor = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
dying = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
dead = "img/sprites/battle/characters/bronann/weapons/steel/bronann_dead.lua",
revive = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
item = "img/sprites/battle/characters/bronann/weapons/steel/bronann_idle.lua",
magic_prepare = "img/sprites/battle/characters/bronann/weapons/steel/bronann_magic_prepare.lua",
magic_cast = "img/sprites/battle/characters/bronann/weapons/steel/bronann_magic_cast.lua",
jump_forward = "img/sprites/battle/characters/bronann/weapons/steel/bronann_jump_forward.lua",
jump_backward = "img/sprites/battle/characters/bronann/weapons/steel/bronann_hurt.lua"
}
}
}
-- NOTE: Test weapon
weapons[10999] = {
name = vt_system.Translate("Omni Sword"),
description = "The ultimate sword, used only for testing...",
icon = "img/icons/weapons/sword-flaming.png",
physical_attack = 9999,
magical_attack = 9999,
standard_price = 9999999,
usable_by = BRONANN + THANIS,
slots = 5,
key_item = true,
-- NOTE: Testing trade conditions,
trade_conditions = {
[0] = 20000, -- price
[1003] = 5, -- 5 Elixirs
[1] = 3, -- 3 minor healing potions
[2] = 2, -- 2 medium healing potions
[3] = 6, -- 6 healing potions
[4] = 5, -- 5 Mega healing potions
[11] = 8 -- 8 Small moon juice
},
status_effects = {
[vt_global.GameGlobal.GLOBAL_STATUS_STRENGTH] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_PROTECTION] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_VIGOR] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_FORTITUDE] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_AGILITY] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_EVADE] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_HP] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_SP] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_FIRE] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_WATER] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_VOLT] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_EARTH] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_LIFE] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_DEATH] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME,
[vt_global.GameGlobal.GLOBAL_STATUS_NEUTRAL] = vt_global.GameGlobal.GLOBAL_INTENSITY_POS_EXTREME
},
-- A max of 5 skills can be earned through a piece of equipment.
equipment_skills = { 10100, 10119, 10101, 10163, 10164 },
battle_animations = {
[BRONANN] = {
idle = "img/sprites/battle/characters/bronann/weapons/steel/bronann_idle.lua",
run = "img/sprites/battle/characters/bronann/weapons/steel/bronann_run.lua",
run_after_victory = "img/sprites/battle/characters/bronann/weapons/steel/bronann_run_after_victory.lua",
attack = "img/sprites/battle/characters/bronann/weapons/steel/bronann_attack.lua",
dodge = "img/sprites/battle/characters/bronann/weapons/steel/bronann_dodge.lua",
victory = "img/sprites/battle/characters/bronann/weapons/steel/bronann_victory.lua",
hurt = "img/sprites/battle/characters/bronann/weapons/steel/bronann_hurt.lua",
poor = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
dying = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
dead = "img/sprites/battle/characters/bronann/weapons/steel/bronann_dead.lua",
revive = "img/sprites/battle/characters/bronann/weapons/steel/bronann_kneeling.lua",
item = "img/sprites/battle/characters/bronann/weapons/steel/bronann_idle.lua",
magic_prepare = "img/sprites/battle/characters/bronann/weapons/steel/bronann_magic_prepare.lua",
magic_cast = "img/sprites/battle/characters/bronann/weapons/steel/bronann_magic_cast.lua",
jump_forward = "img/sprites/battle/characters/bronann/weapons/steel/bronann_jump_forward.lua",
jump_backward = "img/sprites/battle/characters/bronann/weapons/steel/bronann_hurt.lua"
}
}
}
-- -----------------------------------------------------------------------------
-- IDs 11,001 - 11,500 are reserved for arbalests
-- -----------------------------------------------------------------------------
weapons[11001] = {
name = vt_system.Translate("Arbalest"),
description = vt_system.Translate("A standard wooden arbalest."),
icon = "img/icons/weapons/arbalest.png",
-- The image displayed when kalya fires with her arbalest.
battle_ammo_animation_file = "img/sprites/battle/ammo/wood_arrow.lua",
physical_attack = 3,
magical_attack = 0,
standard_price = 50,
usable_by = KALYA,
slots = 0,
key_item = true,
battle_animations = {
[KALYA] = {
idle = "img/sprites/battle/characters/kalya/weapons/steel/kalya_idle.lua",
run = "img/sprites/battle/characters/kalya/weapons/steel/kalya_run.lua",
run_after_victory = "img/sprites/battle/characters/kalya/weapons/steel/kalya_run.lua",
attack = "img/sprites/battle/characters/kalya/weapons/steel/kalya_attack.lua",
dodge = "img/sprites/battle/characters/kalya/weapons/steel/kalya_dodge.lua",
victory = "img/sprites/battle/characters/kalya/weapons/steel/kalya_victory.lua",
hurt = "img/sprites/battle/characters/kalya/weapons/steel/kalya_hurt.lua",
poor = "img/sprites/battle/characters/kalya/weapons/steel/kalya_kneeling.lua",
dying = "img/sprites/battle/characters/kalya/weapons/steel/kalya_kneeling.lua",
dead = "img/sprites/battle/characters/kalya/weapons/steel/kalya_dead.lua",
revive = "img/sprites/battle/characters/kalya/weapons/steel/kalya_kneeling.lua",
item = "img/sprites/battle/characters/kalya/weapons/steel/kalya_idle.lua",
magic_prepare = "img/sprites/battle/characters/kalya/weapons/steel/kalya_magic_prepare.lua",
magic_cast = "img/sprites/battle/characters/kalya/weapons/steel/kalya_magic_cast.lua"
}
}
}
| gpl-2.0 |
exile1920/BolScripts | MrArticunoLaucher.lua | 23 | 3851 | --[[
_____ _____ __ .__
/ \_______ / _ \________/ |_|__| ____ __ __ ____ ____
/ \ / \_ __ \ / /_\ \_ __ \ __\ |/ ___\| | \/ \ / _ \
/ Y \ | \/ / | \ | \/| | | \ \___| | / | ( <_> )
\____|__ /__| \____|__ /__| |__| |__|\___ >____/|___| /\____/
\/ \/ \/ \/
Mechanics Series Laucher
]]
require 'mrLib'
_G.ScriptLoaded = false
_G.LibsChecked = false
local ScriptLink = {
SOW = { filename = "SOW.lua", host = "raw.github.com" , versionLink = "/Hellsing/BoL/master/common/SOW.lua" , isLib = true , forceUpdate = false },
VPrediction = { filename = "VPrediction.lua", host = "raw.github.com" , versionLink = "/Hellsing/BoL/master/common/VPrediction.lua" , isLib = true , forceUpdate = false },
Prodiction = { filename = "Prodiction.lua", host = "bitbucket.org" , versionLink = "/Klokje/public-klokjes-bol-scripts/raw/ec830facccefb3b52212dba5696c08697c3c2854/Test/Prodiction/Prodiction.lua" , isLib = true , forceUpdate = false },
Tristana = { filename = "TristanaMechanics.lua", host = "raw.github.com" , versionLink = "/gmlyra/BolScripts/master/TristanaMechanics.lua" , isLib = false , forceUpdate = true },
Elise = { filename = "EliseMechanics.lua", host = "raw.github.com" , versionLink = "/gmlyra/BolScripts/master/EliseMechanics.lua" , isLib = false , forceUpdate = true },
Lucian = { filename = "LucianMechanics.lua", host = "raw.github.com" , versionLink = "/gmlyra/BolScripts/master/LucianMechanics.lua" , isLib = false , forceUpdate = true },
Jinx = { filename = "JinxMechanics.lua", host = "raw.github.com" , versionLink = "/gmlyra/BolScripts/master/JinxMechanics.lua" , isLib = false , forceUpdate = true },
Gragas = { filename = "GragasMechanics.lua", host = "raw.github.com" , versionLink = "/gmlyra/BolScripts/master/GragasMechanics.lua" , isLib = false , forceUpdate = true },
Viktor = { filename = "ViktorMechanics.lua", host = "raw.github.com" , versionLink = "/gmlyra/BolScripts/master/ViktorMechanics.lua" , isLib = false , forceUpdate = true },
Chogath = { filename = "ChogathMechanics.lua", host = "raw.github.com" , versionLink = "/gmlyra/BolScripts/master/ChogathMechanics.lua" , isLib = false , forceUpdate = true },
Kayle = { filename = "KayleMechanics.lua", host = "raw.github.com" , versionLink = "/gmlyra/BolScripts/master/KayleMechanics.lua" , isLib = false , forceUpdate = true },
Karthus = { filename = "KarthusMechanics.lua", host = "raw.github.com" , versionLink = "/gmlyra/BolScripts/master/KarthusMechanics.lua" , isLib = false , forceUpdate = true },
}
function OnLoad()
if file_exists(LIB_PATH.."mrLib.lua") then
require 'mrLib'
else
print('You must have mrLib.lua to use this laucher')
return
end
checkLibs()
if not _G.ScriptLoaded then
if not ScriptLink[myHero.charName].forceUpdate then
if not file_exists(SCRIPT_PATH..ScriptLink[myHero.charName].filename) then
loadFromWeb(SCRIPT_PATH..ScriptLink[myHero.charName].filename, ScriptLink[myHero.charName].host, ScriptLink[myHero.charName].versionLink, true)
else
loadfile(SCRIPT_PATH..ScriptLink[myHero.charName].filename)()
end
else
loadFromWeb(SCRIPT_PATH..ScriptLink[myHero.charName].filename, ScriptLink[myHero.charName].host, ScriptLink[myHero.charName].versionLink, false)
end
end
end
function checkLibs()
for i,v in ipairs(ScriptLink) do
if ScriptLink[v].isLib then
if not file_exists(LIB_PATH..ScriptLink[v].filename) or ScriptLink[v].forceUpdate then
downloadLib(ScriptLink[v].filename, ScriptLink[v].host, ScriptLink[v].versionLink)
end
end
end
end
local io = require "io"
function file_exists(file)
local f = io.open(file, "rb")
if f then f:close() end
return f ~= nil
end
-- End of Laucher -- | gpl-2.0 |
rlcevg/Zero-K | gamedata/modularcomms/weapons/torpedo.lua | 17 | 1427 | local name = "commweapon_torpedo"
local weaponDef = {
name = [[Torpedo Launcher]],
areaOfEffect = 16,
avoidFriendly = false,
bouncerebound = 0.5,
bounceslip = 0.5,
burnblow = true,
collideFriendly = false,
craterBoost = 0,
craterMult = 0,
customParams = {
badTargetCategory = [[FIXEDWING]],
onlyTargetCategory = [[SWIM FIXEDWING LAND SUB SINK TURRET FLOAT SHIP GUNSHIP HOVER]],
slot = [[5]],
},
damage = {
default = 220,
subs = 220,
},
explosionGenerator = [[custom:TORPEDO_HIT]],
flightTime = 6,
groundbounce = 1,
impactOnly = true,
impulseBoost = 0,
impulseFactor = 0.4,
interceptedByShieldType = 1,
model = [[wep_t_longbolt.s3o]],
numbounce = 4,
noSelfDamage = true,
range = 330,
reloadtime = 3.5,
soundHit = [[explosion/wet/ex_underwater]],
soundStart = [[weapon/torpedo]],
startVelocity = 90,
tracks = true,
turnRate = 10000,
turret = true,
waterWeapon = true,
weaponAcceleration = 25,
weaponType = [[TorpedoLauncher]],
weaponVelocity = 140,
}
return name, weaponDef
| gpl-2.0 |
avataronline/avatarclient | modules/corelib/ui/uisplitter.lua | 10 | 2605 | -- @docclass
UISplitter = extends(UIWidget, "UISplitter")
function UISplitter.create()
local splitter = UISplitter.internalCreate()
splitter:setFocusable(false)
splitter.relativeMargin = 'bottom'
return splitter
end
function UISplitter:onHoverChange(hovered)
-- Check if margin can be changed
local margin = (self.vertical and self:getMarginBottom() or self:getMarginRight())
if hovered and (self:canUpdateMargin(margin + 1) ~= margin or self:canUpdateMargin(margin - 1) ~= margin) then
if g_mouse.isCursorChanged() or g_mouse.isPressed() then return end
if self:getWidth() > self:getHeight() then
self.vertical = true
self.cursortype = 'vertical'
else
self.vertical = false
self.cursortype = 'horizontal'
end
self.hovering = true
g_mouse.pushCursor(self.cursortype)
if not self:isPressed() then
g_effects.fadeIn(self)
end
else
if not self:isPressed() and self.hovering then
g_mouse.popCursor(self.cursortype)
g_effects.fadeOut(self)
self.hovering = false
end
end
end
function UISplitter:onMouseMove(mousePos, mouseMoved)
if self:isPressed() then
--local currentmargin, newmargin, delta
if self.vertical then
local delta = mousePos.y - self:getY() - self:getHeight()/2
local newMargin = self:canUpdateMargin(self:getMarginBottom() - delta)
local currentMargin = self:getMarginBottom()
if newMargin ~= currentMargin then
self.newMargin = newMargin
if not self.event or self.event:isExecuted() then
self.event = addEvent(function()
self:setMarginBottom(self.newMargin)
end)
end
end
else
local delta = mousePos.x - self:getX() - self:getWidth()/2
local newMargin = self:canUpdateMargin(self:getMarginRight() - delta)
local currentMargin = self:getMarginRight()
if newMargin ~= currentMargin then
self.newMargin = newMargin
if not self.event or self.event:isExecuted() then
self.event = addEvent(function()
self:setMarginRight(self.newMargin)
end)
end
end
end
return true
end
end
function UISplitter:onMouseRelease(mousePos, mouseButton)
if not self:isHovered() then
g_mouse.popCursor(self.cursortype)
g_effects.fadeOut(self)
self.hovering = false
end
end
function UISplitter:onStyleApply(styleName, styleNode)
if styleNode['relative-margin'] then
self.relativeMargin = styleNode['relative-margin']
end
end
function UISplitter:canUpdateMargin(newMargin)
return newMargin
end
| mit |
ViolyS/RayUI_VS | Interface/AddOns/RayUI/libs/oUF/elements/powerprediction.lua | 2 | 5589 | --[[
# Element: Power Prediction Bar
Handles the visibility and updating of power cost prediction.
## Widget
PowerPrediction - A `table` containing the sub-widgets.
## Sub-Widgets
mainBar - A `StatusBar` used to represent power cost of spells on top of the Power element.
altBar - A `StatusBar` used to represent power cost of spells on top of the AdditionalPower element.
## Notes
A default texture will be applied if the widget is a StatusBar and doesn't have a texture set.
## Examples
-- Position and size
local mainBar = CreateFrame('StatusBar', nil, self.Power)
mainBar:SetReverseFill(true)
mainBar:SetPoint('TOP')
mainBar:SetPoint('BOTTOM')
mainBar:SetPoint('RIGHT', self.Power:GetStatusBarTexture(), 'RIGHT')
mainBar:SetWidth(200)
local altBar = CreateFrame('StatusBar', nil, self.AdditionalPower)
altBar:SetReverseFill(true)
altBar:SetPoint('TOP')
altBar:SetPoint('BOTTOM')
altBar:SetPoint('RIGHT', self.AdditionalPower:GetStatusBarTexture(), 'RIGHT')
altBar:SetWidth(200)
-- Register with oUF
self.PowerPrediction = {
mainBar = mainBar,
altBar = altBar
}
--]]
local _, ns = ...
local oUF = ns.oUF
-- sourced from FrameXML/AlternatePowerBar.lua
local ADDITIONAL_POWER_BAR_INDEX = ADDITIONAL_POWER_BAR_INDEX or 0
local ALT_MANA_BAR_PAIR_DISPLAY_INFO = ALT_MANA_BAR_PAIR_DISPLAY_INFO
local _, playerClass = UnitClass('player')
local function Update(self, event, unit)
if(self.unit ~= unit) then return end
local element = self.PowerPrediction
--[[ Callback: PowerPrediction:PreUpdate(unit)
Called before the element has been updated.
* self - the PowerPrediction element
* unit - the unit for which the update has been triggered (string)
--]]
if(element.PreUpdate) then
element:PreUpdate(unit)
end
local _, _, _, _, startTime, endTime, _, _, _, spellID = UnitCastingInfo(unit)
local mainPowerType = UnitPowerType(unit)
local hasAltManaBar = ALT_MANA_BAR_PAIR_DISPLAY_INFO[playerClass] and ALT_MANA_BAR_PAIR_DISPLAY_INFO[playerClass][mainPowerType]
local mainCost, altCost = 0, 0
if(event == 'UNIT_SPELLCAST_START' or startTime ~= endTime) then
local costTable = GetSpellPowerCost(spellID)
for _, costInfo in pairs(costTable) do
-- costInfo content:
-- - name: string (powerToken)
-- - type: number (powerType)
-- - cost: number
-- - costPercent: number
-- - costPerSec: number
-- - minCost: number
-- - hasRequiredAura: boolean
-- - requiredAuraID: number
if(costInfo.type == mainPowerType) then
mainCost = costInfo.cost
break
elseif(costInfo.type == ADDITIONAL_POWER_BAR_INDEX) then
altCost = costInfo.cost
break
end
end
end
if(element.mainBar) then
element.mainBar:SetMinMaxValues(0, UnitPowerMax(unit, mainPowerType))
element.mainBar:SetValue(mainCost)
element.mainBar:Show()
end
if(element.altBar and hasAltManaBar) then
element.altBar:SetMinMaxValues(0, UnitPowerMax(unit, ADDITIONAL_POWER_BAR_INDEX))
element.altBar:SetValue(altCost)
element.altBar:Show()
end
--[[ Callback: PowerPrediction:PostUpdate(unit, mainCost, altCost, hasAltManaBar)
Called after the element has been updated.
* self - the PowerPrediction element
* unit - the unit for which the update has been triggered (string)
* mainCost - the main power type cost of the cast ability (number)
* altCost - the secondary power type cost of the cast ability (number)
* hasAltManaBar - indicates if the unit has a secondary power bar (boolean)
--]]
if(element.PostUpdate) then
return element:PostUpdate(unit, mainCost, altCost, hasAltManaBar)
end
end
local function Path(self, ...)
--[[ Override: PowerPrediction.Override(self, event, unit, ...)
Used to completely override the internal update function.
* self - the parent object
* event - the event triggering the update (string)
* unit - the unit accompanying the event (string)
* ... - the arguments accompanying the event
--]]
return (self.PowerPrediction.Override or Update) (self, ...)
end
local function ForceUpdate(element)
return Path(element.__owner, 'ForceUpdate', element.__owner.unit)
end
local function Enable(self)
local element = self.PowerPrediction
if(element) then
element.__owner = self
element.ForceUpdate = ForceUpdate
self:RegisterEvent('UNIT_SPELLCAST_START', Path)
self:RegisterEvent('UNIT_SPELLCAST_STOP', Path)
self:RegisterEvent('UNIT_SPELLCAST_FAILED', Path)
self:RegisterEvent('UNIT_SPELLCAST_SUCCEEDED', Path)
self:RegisterEvent('UNIT_DISPLAYPOWER', Path)
if(element.mainBar) then
if(element.mainBar:IsObjectType('StatusBar') and not element.mainBar:GetStatusBarTexture()) then
element.mainBar:SetStatusBarTexture([[Interface\TargetingFrame\UI-StatusBar]])
end
end
if(element.altBar) then
if(element.altBar:IsObjectType('StatusBar') and not element.altBar:GetStatusBarTexture()) then
element.altBar:SetStatusBarTexture([[Interface\TargetingFrame\UI-StatusBar]])
end
end
return true
end
end
local function Disable(self)
local element = self.PowerPrediction
if(element) then
if(element.mainBar) then
element.mainBar:Hide()
end
if(element.altBar) then
element.altBar:Hide()
end
self:UnregisterEvent('UNIT_SPELLCAST_START', Path)
self:UnregisterEvent('UNIT_SPELLCAST_STOP', Path)
self:UnregisterEvent('UNIT_SPELLCAST_FAILED', Path)
self:UnregisterEvent('UNIT_SPELLCAST_SUCCEEDED', Path)
self:UnregisterEvent('UNIT_DISPLAYPOWER', Path)
end
end
oUF:AddElement('PowerPrediction', Path, Enable, Disable)
| mit |
weirdouncle/QSanguosha-For-Hegemony-personal | lang/zh_CN/Package/StandardGeneralPackage.lua | 5 | 1076 | --[[********************************************************************
Copyright (c) 2013-2015 Mogara
This file is part of QSanguosha-Hegemony.
This game is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 3.0
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
See the LICENSE file for more details.
Mogara
*********************************************************************]]
-- translation for Standard General Package
return {
["standard"] = "标准版",
-- Test
["test"] = "测试",
["#sujiang"] = "我是男的",
["sujiang"] = "士兵",
["illustrator:sujiang"] = "官方",
["#sujiangf"] = "我是女的",
["sujiangf"] = "士兵",
["illustrator:sujiangf"] = "官方",
}
| gpl-3.0 |
pjohalloran/ember | projects/thirdparty_build_scripts/string_id.lua | 1 | 1392 | #!lua
--
-- @file string_id.lua
-- @author PJ O Halloran
-- @date 25/09/2017
--
-- For building the string_id library.
--
local function build()
local lib_name = "string_id"
local output_lib_name = "foonathan_" .. lib_name
local lib_src_dir = path.join(ember_thirdparty_src, lib_name)
do_pre_build(lib_name)
os.execute("cmake -DCMAKE_INSTALL_PREFIX:PATH=\"" .. ember_home .. "\" \"" .. lib_src_dir .. "\"")
os.execute("cmake --build . --target \"" .. output_lib_name .. "\" --config " .. _OPTIONS["string_id.Config"])
if(os.istarget("windows")) then
-- TODO Fix this path - should be configurable.
if(copy_files(path.join(_OPTIONS["string_id.Config"], "*." .. lib_ext), ember_root_lib) == false) then
os.exit()
end
else
if(copy_files("*." .. lib_ext, ember_root_lib) == false) then
os.exit()
end
end
lib_include_path = path.join(ember_root_include, lib_name)
os.mkdir(lib_include_path)
if(copy_files(path.join(lib_src_dir, "*.hpp*"), lib_include_path) == false) then
os.exit()
end
if(copy_files("config_impl.hpp", path.join(ember_root_include, lib_name)) == false) then
os.exit()
end
append_lib(output_lib_name)
append_shared_link_flag("-std=c++14")
append_exe_link_flag("-std=c++14")
append_cpp_flag("-std=c++14")
append_cpp_flag("-stdlib=libc++")
do_post_build(lib_name)
end
build()
| mit |
Unrepentant-Atheist/mame | 3rdparty/genie/tests/base/test_action.lua | 59 | 1366 | --
-- tests/base/test_action.lua
-- Automated test suite for the action list.
-- Copyright (c) 2009 Jason Perkins and the Premake project
--
T.action = { }
--
-- Setup/teardown
--
local fake = {
trigger = "fake",
description = "Fake action used for testing",
}
function T.action.setup()
premake.action.list["fake"] = fake
solution "MySolution"
configurations "Debug"
project "MyProject"
premake.bake.buildconfigs()
end
function T.action.teardown()
premake.action.list["fake"] = nil
end
--
-- Tests for call()
--
function T.action.CallCallsExecuteIfPresent()
local called = false
fake.execute = function () called = true end
premake.action.call("fake")
test.istrue(called)
end
function T.action.CallCallsOnSolutionIfPresent()
local called = false
fake.onsolution = function () called = true end
premake.action.call("fake")
test.istrue(called)
end
function T.action.CallCallsOnProjectIfPresent()
local called = false
fake.onproject = function () called = true end
premake.action.call("fake")
test.istrue(called)
end
function T.action.CallSkipsCallbacksIfNotPresent()
test.success(premake.action.call, "fake")
end
--
-- Tests for set()
--
function T.action.set_SetsActionOS()
local oldos = _OS
_OS = "linux"
premake.action.set("vs2008")
test.isequal(_OS, "windows")
_OS = oldos
end
| gpl-2.0 |
notcake/glib | lua/glib/net/layer2/inboundsplitpacket.lua | 2 | 1350 | local self = {}
GLib.Net.Layer2.InboundSplitPacket = GLib.MakeConstructor (self)
function self:ctor (id)
self.Id = id
self.Data = nil
self.EncodedData = nil
self.EncodedLength = 0
self.Chunks = {}
self.ChunkSize = 0
self.ChunkCount = 0
self.NextChunk = 1
end
function self:GetData ()
return self.Data
end
function self:GetId ()
return self.Id
end
function self:IsFinished ()
return self.NextChunk > 1 and self.NextChunk > self.ChunkCount
end
function self:IsStarted ()
return self.NextChunk > 1
end
function self:DeserializeFirstChunk (inBuffer)
self.EncodedLength = inBuffer:UInt32 ()
self:SetChunkSize (inBuffer:UInt32 ())
self:DeserializeNextChunk (inBuffer)
end
function self:DeserializeNextChunk (inBuffer)
self.Chunks [#self.Chunks + 1] = inBuffer:LongString ()
self.NextChunk = self.NextChunk + 1
if self:IsFinished () then
self:DecodeData ()
end
end
function self:SetId (id)
self.Id = id
end
-- Internal, do not call
function self:DecodeData ()
self.EncodedData = table.concat (self.Chunks)
self.Data = self.EncodedData
end
function self:SetChunkSize (chunkSize)
if self:IsStarted () then
GLib.Error ("InboundTransfer:SetChunkSize : Cannot set chunk size after a transfer has started.")
end
self.ChunkSize = chunkSize
self.ChunkCount = math.ceil (self.EncodedLength / self.ChunkSize)
end | gpl-3.0 |
Unrepentant-Atheist/mame | 3rdparty/genie/tests/actions/vstudio/sln2005/dependencies.lua | 47 | 1320 | --
-- tests/actions/vstudio/sln2005/dependencies.lua
-- Validate generation of Visual Studio 2005+ solution project dependencies.
-- Copyright (c) 2009-2011 Jason Perkins and the Premake project
--
T.vstudio_sln2005_dependencies = { }
local suite = T.vstudio_sln2005_dependencies
local sln2005 = premake.vstudio.sln2005
--
-- Setup
--
local sln, prj1, prj2
function suite.setup()
_ACTION = "vs2005"
sln, prj1 = test.createsolution()
uuid "AE61726D-187C-E440-BD07-2556188A6565"
prj2 = test.createproject(sln)
uuid "2151E83B-997F-4A9D-955D-380157E88C31"
links "MyProject"
end
local function prepare(language)
prj1.language = language
prj2.language = language
premake.bake.buildconfigs()
prj1 = premake.solution.getproject(sln, 1)
prj2 = premake.solution.getproject(sln, 2)
sln2005.projectdependencies(prj2)
end
--
-- Tests
--
function suite.On2005_Cpp()
prepare("C++")
test.capture [[
ProjectSection(ProjectDependencies) = postProject
{AE61726D-187C-E440-BD07-2556188A6565} = {AE61726D-187C-E440-BD07-2556188A6565}
EndProjectSection
]]
end
function suite.On2005_Cs()
prepare("C#")
test.capture [[
ProjectSection(ProjectDependencies) = postProject
{AE61726D-187C-E440-BD07-2556188A6565} = {AE61726D-187C-E440-BD07-2556188A6565}
EndProjectSection
]]
end
| gpl-2.0 |
avataronline/avatarclient | modules/game_npctrade/npctrade.lua | 1 | 13960 | BUY = 1
SELL = 2
CURRENCY = 'copper'
CURRENCY_DECIMAL = false
WEIGHT_UNIT = 'oz'
LAST_INVENTORY = 10
npcWindow = nil
itemsPanel = nil
radioTabs = nil
radioItems = nil
searchText = nil
setupPanel = nil
quantity = nil
quantityScroll = nil
nameLabel = nil
priceLabel = nil
moneyLabel = nil
weightDesc = nil
weightLabel = nil
capacityDesc = nil
capacityLabel = nil
tradeButton = nil
buyTab = nil
sellTab = nil
initialized = false
showWeight = true
buyWithBackpack = nil
ignoreCapacity = nil
ignoreEquipped = nil
showAllItems = nil
sellAllButton = nil
playerFreeCapacity = 0
playerMoney = 0
tradeItems = {}
playerItems = {}
selectedItem = nil
cancelNextRelease = nil
function init()
npcWindow = g_ui.displayUI('npctrade')
npcWindow:setVisible(false)
itemsPanel = npcWindow:recursiveGetChildById('itemsPanel')
searchText = npcWindow:recursiveGetChildById('searchText')
setupPanel = npcWindow:recursiveGetChildById('setupPanel')
quantityScroll = setupPanel:getChildById('quantityScroll')
nameLabel = setupPanel:getChildById('name')
priceLabel = setupPanel:getChildById('price')
moneyLabel = setupPanel:getChildById('money')
weightDesc = setupPanel:getChildById('weightDesc')
weightLabel = setupPanel:getChildById('weight')
capacityDesc = setupPanel:getChildById('capacityDesc')
capacityLabel = setupPanel:getChildById('capacity')
tradeButton = npcWindow:recursiveGetChildById('tradeButton')
buyWithBackpack = npcWindow:recursiveGetChildById('buyWithBackpack')
ignoreCapacity = npcWindow:recursiveGetChildById('ignoreCapacity')
ignoreEquipped = npcWindow:recursiveGetChildById('ignoreEquipped')
showAllItems = npcWindow:recursiveGetChildById('showAllItems')
sellAllButton = npcWindow:recursiveGetChildById('sellAllButton')
buyTab = npcWindow:getChildById('buyTab')
sellTab = npcWindow:getChildById('sellTab')
radioTabs = UIRadioGroup.create()
radioTabs:addWidget(buyTab)
radioTabs:addWidget(sellTab)
radioTabs:selectWidget(buyTab)
radioTabs.onSelectionChange = onTradeTypeChange
cancelNextRelease = false
if g_game.isOnline() then
playerFreeCapacity = g_game.getLocalPlayer():getFreeCapacity()
end
connect(g_game, { onGameEnd = hide,
onOpenNpcTrade = onOpenNpcTrade,
onCloseNpcTrade = onCloseNpcTrade,
onPlayerGoods = onPlayerGoods } )
connect(LocalPlayer, { onFreeCapacityChange = onFreeCapacityChange,
onInventoryChange = onInventoryChange } )
initialized = true
end
function terminate()
initialized = false
npcWindow:destroy()
disconnect(g_game, { onGameEnd = hide,
onOpenNpcTrade = onOpenNpcTrade,
onCloseNpcTrade = onCloseNpcTrade,
onPlayerGoods = onPlayerGoods } )
disconnect(LocalPlayer, { onFreeCapacityChange = onFreeCapacityChange,
onInventoryChange = onInventoryChange } )
end
function show()
if g_game.isOnline() then
if #tradeItems[BUY] > 0 then
radioTabs:selectWidget(buyTab)
else
radioTabs:selectWidget(sellTab)
end
npcWindow:show()
npcWindow:raise()
npcWindow:focus()
end
end
function hide()
npcWindow:hide()
end
function onItemBoxChecked(widget)
if widget:isChecked() then
local item = widget.item
selectedItem = item
refreshItem(item)
tradeButton:enable()
if getCurrentTradeType() == SELL then
quantityScroll:setValue(quantityScroll:getMaximum())
end
end
end
function onQuantityValueChange(quantity)
if selectedItem then
weightLabel:setText(string.format('%.2f', selectedItem.weight*quantity) .. ' ' .. WEIGHT_UNIT)
priceLabel:setText(formatCurrency(getItemPrice(selectedItem)))
end
end
function onTradeTypeChange(radioTabs, selected, deselected)
tradeButton:setText(selected:getText())
selected:setOn(true)
deselected:setOn(false)
local currentTradeType = getCurrentTradeType()
buyWithBackpack:setVisible(currentTradeType == BUY)
ignoreCapacity:setVisible(currentTradeType == BUY)
ignoreEquipped:setVisible(currentTradeType == SELL)
showAllItems:setVisible(currentTradeType == SELL)
sellAllButton:setVisible(currentTradeType == SELL)
refreshTradeItems()
refreshPlayerGoods()
end
function onTradeClick()
if getCurrentTradeType() == BUY then
g_game.buyItem(selectedItem.ptr, quantityScroll:getValue(), ignoreCapacity:isChecked(), buyWithBackpack:isChecked())
else
g_game.sellItem(selectedItem.ptr, quantityScroll:getValue(), ignoreEquipped:isChecked())
end
end
function onSearchTextChange()
refreshPlayerGoods()
end
function itemPopup(self, mousePosition, mouseButton)
if cancelNextRelease then
cancelNextRelease = false
return false
end
if mouseButton == MouseRightButton then
local menu = g_ui.createWidget('PopupMenu')
menu:setGameMenu(true)
menu:addOption(tr('Look'), function() return g_game.inspectNpcTrade(self:getItem()) end)
menu:display(mousePosition)
return true
elseif ((g_mouse.isPressed(MouseLeftButton) and mouseButton == MouseRightButton)
or (g_mouse.isPressed(MouseRightButton) and mouseButton == MouseLeftButton)) then
cancelNextRelease = true
g_game.inspectNpcTrade(self:getItem())
return true
end
return false
end
function onBuyWithBackpackChange()
if selectedItem then
refreshItem(selectedItem)
end
end
function onIgnoreCapacityChange()
refreshPlayerGoods()
end
function onIgnoreEquippedChange()
refreshPlayerGoods()
end
function onShowAllItemsChange()
refreshPlayerGoods()
end
function setCurrency(currency, decimal)
CURRENCY = currency
CURRENCY_DECIMAL = decimal
end
function setShowWeight(state)
showWeight = state
weightDesc:setVisible(state)
weightLabel:setVisible(state)
end
function setShowYourCapacity(state)
capacityDesc:setVisible(state)
capacityLabel:setVisible(state)
ignoreCapacity:setVisible(state)
end
function clearSelectedItem()
nameLabel:clearText()
weightLabel:clearText()
priceLabel:clearText()
tradeButton:disable()
quantityScroll:setMinimum(0)
quantityScroll:setMaximum(0)
if selectedItem then
radioItems:selectWidget(nil)
selectedItem = nil
end
end
function getCurrentTradeType()
if tradeButton:getText() == tr('Buy') then
return BUY
else
return SELL
end
end
function getItemPrice(item, single)
local amount = 1
local single = single or false
if not single then
amount = quantityScroll:getValue()
end
if getCurrentTradeType() == BUY then
if buyWithBackpack:isChecked() then
if item.ptr:isStackable() then
return item.price*amount + 20
else
return item.price*amount + math.ceil(amount/20)*20
end
end
end
return item.price*amount
end
function getSellQuantity(item)
if not item or not playerItems[item:getId()] then return 0 end
local removeAmount = 0
if ignoreEquipped:isChecked() then
local localPlayer = g_game.getLocalPlayer()
for i=1,LAST_INVENTORY do
local inventoryItem = localPlayer:getInventoryItem(i)
if inventoryItem and inventoryItem:getId() == item:getId() then
removeAmount = removeAmount + inventoryItem:getCount()
end
end
end
return playerItems[item:getId()] - removeAmount
end
function canTradeItem(item)
if getCurrentTradeType() == BUY then
return (ignoreCapacity:isChecked() or (not ignoreCapacity:isChecked() and playerFreeCapacity >= item.weight)) and playerMoney >= getItemPrice(item, true)
else
return getSellQuantity(item.ptr) > 0
end
end
function refreshItem(item)
nameLabel:setText(item.name)
weightLabel:setText(string.format('%.2f', item.weight) .. ' ' .. WEIGHT_UNIT)
priceLabel:setText(formatCurrency(getItemPrice(item)))
if getCurrentTradeType() == BUY then
local capacityMaxCount = math.floor(playerFreeCapacity / item.weight)
if ignoreCapacity:isChecked() then
capacityMaxCount = 65535
end
local priceMaxCount = math.floor(playerMoney / getItemPrice(item, true))
local finalCount = math.max(0, math.min(getMaxAmount(), math.min(priceMaxCount, capacityMaxCount)))
quantityScroll:setMinimum(1)
quantityScroll:setMaximum(finalCount)
else
quantityScroll:setMinimum(1)
quantityScroll:setMaximum(math.max(0, math.min(getMaxAmount(), getSellQuantity(item.ptr))))
end
setupPanel:enable()
end
function refreshTradeItems()
local layout = itemsPanel:getLayout()
layout:disableUpdates()
clearSelectedItem()
searchText:clearText()
setupPanel:disable()
itemsPanel:destroyChildren()
if radioItems then
radioItems:destroy()
end
radioItems = UIRadioGroup.create()
local currentTradeItems = tradeItems[getCurrentTradeType()]
for key,item in pairs(currentTradeItems) do
local itemBox = g_ui.createWidget('NPCItemBox', itemsPanel)
itemBox.item = item
local text = ''
local name = item.name
text = text .. name
if showWeight then
local weight = string.format('%.2f', item.weight) .. ' ' .. WEIGHT_UNIT
text = text .. '\n' .. weight
end
local price = formatCurrency(item.price)
text = text .. '\n' .. price
itemBox:setText(text)
local itemWidget = itemBox:getChildById('item')
itemWidget:setItem(item.ptr)
itemWidget.onMouseRelease = itemPopup
radioItems:addWidget(itemBox)
end
layout:enableUpdates()
layout:update()
end
function refreshPlayerGoods()
if not initialized then return end
checkSellAllTooltip()
moneyLabel:setText(formatCurrency(playerMoney))
capacityLabel:setText(string.format('%.2f', playerFreeCapacity) .. ' ' .. WEIGHT_UNIT)
local currentTradeType = getCurrentTradeType()
local searchFilter = searchText:getText():lower()
local foundSelectedItem = false
local items = itemsPanel:getChildCount()
for i=1,items do
local itemWidget = itemsPanel:getChildByIndex(i)
local item = itemWidget.item
local canTrade = canTradeItem(item)
itemWidget:setOn(canTrade)
itemWidget:setEnabled(canTrade)
local searchCondition = (searchFilter == '') or (searchFilter ~= '' and string.find(item.name:lower(), searchFilter) ~= nil)
local showAllItemsCondition = (currentTradeType == BUY) or (showAllItems:isChecked()) or (currentTradeType == SELL and not showAllItems:isChecked() and canTrade)
itemWidget:setVisible(searchCondition and showAllItemsCondition)
if selectedItem == item and itemWidget:isEnabled() and itemWidget:isVisible() then
foundSelectedItem = true
end
end
if not foundSelectedItem then
clearSelectedItem()
end
if selectedItem then
refreshItem(selectedItem)
end
end
function onOpenNpcTrade(items)
tradeItems[BUY] = {}
tradeItems[SELL] = {}
for key,item in pairs(items) do
local spell = string.match(item[2], "|SPELL|(.+)")
if spell then
return
end
if item[4] > 0 then
local newItem = {}
newItem.ptr = item[1]
newItem.name = item[2]
newItem.weight = item[3] / 100
newItem.price = item[4]
table.insert(tradeItems[BUY], newItem)
end
if item[5] > 0 then
local newItem = {}
newItem.ptr = item[1]
newItem.name = item[2]
newItem.weight = item[3] / 100
newItem.price = item[5]
table.insert(tradeItems[SELL], newItem)
end
end
refreshTradeItems()
addEvent(show) -- player goods has not been parsed yet
end
function closeNpcTrade()
g_game.closeNpcTrade()
hide()
end
function onCloseNpcTrade()
hide()
end
function onPlayerGoods(money, items)
playerMoney = money
playerItems = {}
for key,item in pairs(items) do
local id = item[1]:getId()
if not playerItems[id] then
playerItems[id] = item[2]
else
playerItems[id] = playerItems[id] + item[2]
end
end
refreshPlayerGoods()
end
function onFreeCapacityChange(localPlayer, freeCapacity, oldFreeCapacity)
playerFreeCapacity = freeCapacity
if npcWindow:isVisible() then
refreshPlayerGoods()
end
end
function onInventoryChange(inventory, item, oldItem)
refreshPlayerGoods()
end
function getTradeItemData(id, type)
if table.empty(tradeItems[type]) then
return false
end
if type then
for key,item in pairs(tradeItems[type]) do
if item.ptr and item.ptr:getId() == id then
return item
end
end
else
for _,items in pairs(tradeItems) do
for key,item in pairs(items) do
if item.ptr and item.ptr:getId() == id then
return item
end
end
end
end
return false
end
function checkSellAllTooltip()
sellAllButton:setEnabled(true)
sellAllButton:removeTooltip()
local total = 0
local info = ''
local first = true
for key, amount in pairs(playerItems) do
local data = getTradeItemData(key, SELL)
if data then
amount = getSellQuantity(data.ptr)
if amount > 0 then
if data and amount > 0 then
info = info..(not first and "\n" or "")..
amount.." "..
data.name.." ("..
data.price*amount.." copper)"
total = total+(data.price*amount)
if first then first = false end
end
end
end
end
if info ~= '' then
info = info.."\nTotal: "..total.." copper"
sellAllButton:setTooltip(info)
else
sellAllButton:setEnabled(false)
end
end
function formatCurrency(amount)
if CURRENCY_DECIMAL then
return string.format("%.02f", amount/100.0) .. ' ' .. CURRENCY
else
return amount .. ' ' .. CURRENCY
end
end
function getMaxAmount()
if getCurrentTradeType() == SELL and g_game.getFeature(GameDoubleShopSellAmount) then
return 10000
end
return 100
end
function sellAll()
for itemid,item in pairs(playerItems) do
local item = Item.create(itemid)
local amount = getSellQuantity(item)
if amount > 0 then
g_game.sellItem(item, amount, ignoreEquipped:isChecked())
end
end
end | mit |
EliHar/Pattern_recognition | torch1/extra/nn/GPU.lua | 5 | 8404 | ------------------------------------------------------------------------
--[[ GPU ]]--
-- Decorates a module such that its parameters are
-- hosted on a specified GPU device.
-- The operations are also executed on that device.
-- Arguments input and gradOutput are converted to the specified device
-- before being fed to the decorated module.
-- Returned output is on the specified outdevice (defaults to device).
-- Returned gradInput is allocated on the same device as the input.
-- The unit test is located in cunn.
------------------------------------------------------------------------
local GPU, parent = torch.class("nn.GPU", "nn.Container")
function GPU:__init(module, device, outdevice)
parent.__init(self)
assert(torch.type(device) == 'number')
self.device = device
self.outdevice = outdevice or device
assert(torch.isTypeOf(module, 'nn.Module'))
self.modules[1] = module
if module:type() == 'torch.CudaTensor' then
self:cuda()
end
end
function GPU.recursiveModuleDevice(obj, device)
if type(obj) == 'table' and not torch.isTypeOf(obj, 'nn.GPU') and not obj.__noGPU__ then
for k,v in pairs(obj) do
obj[k] = GPU.recursiveModuleDevice(v, device)
end
elseif torch.type(obj):match('torch.Cuda.*Tensor') then
if obj:getDevice() ~= device then
obj = obj:clone() -- this will reallocate it to device
local newdevice = obj:getDevice()
-- when nElement() == 0 newdevice is 0
assert(newdevice == device or newdevice == 0)
end
end
assert(obj ~= nil)
return obj
end
-- set the device of the decorated module
function GPU:setDevice(device)
self.device = device or self.device
assert(self.modules[1])
self.modules[1] = cutorch.withDevice(self.device, function()
return self.recursiveModuleDevice(self.modules[1], self.device)
end)
return self
end
-- when proto is a device number, returns a dst that has device device for each element in src
-- otherwise, if proto is a table/tensor, makes sure dst is a identical to src, yet on the same device as proto
function GPU.recursiveSetDevice(dst, src, proto)
local device, prototable
if torch.isTensor(proto) then
device = proto:getDevice()
elseif torch.type(proto) == 'number' then
device = proto
elseif torch.type(proto) == 'table' then
prototable = true
else
error"Expecting number, table or tensor for arg 3 (proto)"
end
if torch.type(src) == 'table' then
dst = torch.type(dst) == 'table' and dst or {}
for k,v in ipairs(src) do
dst[k] = GPU.recursiveSetDevice(dst[k], v, prototable and proto[k] or device)
end
for k=#src+1,#dst do
dst[k] = nil
end
elseif torch.type(src):match('torch.Cuda.*Tensor') and src:getDevice() ~= device and src:getDevice() ~= 0 then
if not (torch.type(dst):match('torch.Cuda.*Tensor') and dst:getDevice() == device) then
dst = src.new()
end
cutorch.withDevice(device, function() dst:resizeAs(src):copy(src) end)
else
dst = src
end
return dst
end
function GPU:updateOutput(input)
if self._type == 'torch.CudaTensor' then
self._input = self.recursiveSetDevice(self._input, input, self.device)
local output = cutorch.withDevice(self.device, function()
return self.modules[1]:updateOutput(self._input)
end)
if self.device ~= self.outdevice then
self.output = self.recursiveSetDevice(self.output, output, self.outdevice)
else
self.output = output
end
else
self.output = self.modules[1]:updateOutput(input)
end
return self.output
end
function GPU:updateGradInput(input, gradOutput)
if self._type == 'torch.CudaTensor' then
self._gradOutput = self.recursiveSetDevice(self._gradOutput, gradOutput, self.device)
local gradInput = cutorch.withDevice(self.device, function()
return self.modules[1]:updateGradInput(self._input, self._gradOutput)
end)
self.gradInput = self.recursiveSetDevice(self.gradInput, gradInput, input)
else
self.gradInput = self.modules[1]:updateGradInput(input, gradOutput)
end
return self.gradInput
end
function GPU:accGradParameters(input, gradOutput, scale)
if self._type == 'torch.CudaTensor' then
cutorch.withDevice(self.device, function()
self.modules[1]:accGradParameters(self._input, self._gradOutput, scale)
end)
else
self.modules[1]:accGradParameters(input, gradOutput, scale)
end
end
function GPU:apply(callback)
if self._type == 'torch.CudaTensor' then
cutorch.withDevice(self.device, function() parent.apply(self, callback) end)
else
parent.apply(self, callback)
end
end
function GPU:type(type, typecache)
if type and type == 'torch.CudaTensor' then
cutorch.withDevice(self.device, function() parent.type(self, type, typecache) end)
self:setDevice()
else
self.output = nil
self.gradInput = nil
self._input = nil
self._gradOutput = nil
parent.type(self, type, typecache)
end
return self
end
function GPU:clearState()
nn.utils.clear(self, 'output', 'gradInput')
self._input = nil
self._gradOutput = nil
if self._type == 'torch.CudaTensor' then
cutorch.withDevice(self.device, function() parent.clearState(self) end)
else
parent.clearState(self)
end
end
function GPU:zeroGradParameters()
if self._type == 'torch.CudaTensor' then
cutorch.withDevice(self.device, function() parent.zeroGradParameters(self) end)
else
parent.zeroGradParameters(self)
end
end
function GPU:updateParameters(lr)
if self._type == 'torch.CudaTensor' then
cutorch.withDevice(self.device, function() parent.updateParameters(self, lr) end)
else
parent.updateParameters(self, lr)
end
end
function GPU:training()
if self._type == 'torch.CudaTensor' then
cutorch.withDevice(self.device, function() parent.training(self) end)
else
parent.training(self)
end
end
function GPU:evaluate()
if self._type == 'torch.CudaTensor' then
cutorch.withDevice(self.device, function() parent.evaluate(self) end)
else
parent.evaluate(self)
end
end
function GPU:share(mlp, ...)
local args = {...}
if self._type == 'torch.CudaTensor' then
cutorch.withDevice(self.device, function() parent.share(self, mlp, unpack(args)) end)
else
parent.share(self, mlp, unpack(args))
end
return self
end
function GPU:reset(...)
local args = {...}
if self._type == 'torch.CudaTensor' then
cutorch.withDevice(self.device, function() parent.reset(self, unpack(args)) end)
else
parent.reset(self, unpack(args))
end
return self
end
function GPU:clone(...)
local args = {...}
if self._type == 'torch.CudaTensor' then
return cutorch.withDevice(self.device, function() parent.clone(self, unpack(args)) end)
else
return parent.clone(self, unpack(args))
end
end
function GPU:write(file)
-- Write all values in the object as a table.
local object = {}
for k, v in pairs(self) do
object[k] = v
end
local header = {self._type, self.device}
file:writeObject(header)
file:writeObject(object)
end
function GPU:read(file)
local header = file:readObject()
local object
if header[1] == 'torch.CudaTensor' then
local device = header[2]
if device > cutorch.getDeviceCount() then
print"Warning : model was saved with more devices than available on current host."
print"Attempting to load module onto device 1"
device = 1
end
object = cutorch.withDevice(device, function() return file:readObject() end)
else
object = file:readObject()
end
for k, v in pairs(object) do
self[k] = v
end
end
function GPU:__tostring__()
if self.modules[1].__tostring__ then
return torch.type(self) .. '(' .. self.device ..') @ ' .. self.modules[1]:__tostring__()
else
return torch.type(self) .. '(' .. self.device ..') @ ' .. torch.type(self.modules[1])
end
end
function GPU:accUpdateGradParameters(input, gradOutput, lr)
error("Not Implemented for "..torch.type(self))
end
function GPU:sharedAccUpdateGradParameters(input, gradOutput, lr)
error("Not Implemented for "..torch.type(self))
end
| mit |
rlcevg/Zero-K | LuaUI/Widgets/unit_start_state.lua | 1 | 26714 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "Unit Start State",
desc = "Configurable starting unit states for units",
author = "GoogleFrog",
date = "13 April 2011", --last update: 29 January 2014
license = "GNU GPL, v2 or later",
handler = false,
layer = 1,
enabled = true -- loaded by default?
}
end
VFS.Include("LuaRules/Configs/customcmds.h.lua")
local holdPosException = {
["factoryplane"] = true,
["factorygunship"] = true,
["armnanotc"] = true,
}
local dontFireAtRadarUnits = {
[UnitDefNames["armsnipe"].id] = true,
[UnitDefNames["armmanni"].id] = true,
[UnitDefNames["armanni"].id] = true,
[UnitDefNames["armmerl"].id] = true,
}
--local rememberToSetHoldPositionPreset = false
local function IsGround(ud)
return not ud.canFly
end
options_path = 'Game/New Unit States'
options_order = { 'presetlabel', 'holdPosition', 'disableTacticalAI', 'enableTacticalAI', 'categorieslabel', 'commander_label', 'commander_firestate0', 'commander_movestate1', 'commander_constructor_buildpriority', 'commander_misc_priority', 'commander_retreat'}
options = {
presetlabel = {name = "presetlabel", type = 'label', value = "Presets", path = options_path},
holdPosition = {
type='button',
name= "Hold Position",
desc = "Set all land units to hold position",
path = "Game/New Unit States/Presets",
OnChange = function ()
for i = 1, #options_order do
local opt = options_order[i]
local find = string.find(opt, "_movestate1")
local name = find and string.sub(opt,0,find-1)
local ud = name and UnitDefNames[name]
if ud and not holdPosException[name] and IsGround(ud) then
options[opt].value = 0
--return
end
end
end,
},
categorieslabel = {name = "presetlabel", type = 'label', value = "Categories", path = options_path},
disableTacticalAI = {
type='button',
name= "Disable Tactical AI",
desc = "Disables tactical AI (jinking and skirming) for all units.",
path = "Game/New Unit States/Presets",
OnChange = function ()
for i = 1, #options_order do
local opt = options_order[i]
local find = string.find(opt, "_tactical_ai_2")
local name = find and string.sub(opt,0,find-1)
local ud = name and UnitDefNames[name]
if ud then
options[opt].value = false
end
end
end,
},
enableTacticalAI = {
type='button',
name= "Enable Tactical AI",
desc = "Enables tactical AI (jinking and skirming) for all units.",
path = "Game/New Unit States/Presets",
OnChange = function ()
for i = 1, #options_order do
local opt = options_order[i]
local find = string.find(opt, "_tactical_ai_2")
local name = find and string.sub(opt,0,find-1)
local ud = name and UnitDefNames[name]
if ud then
options[opt].value = true
end
end
end,
},
commander_label = {
name = "label",
type = 'label',
value = "Commander",
path = "Game/New Unit States/Misc",
},
commander_firestate0 = {
name = " Firestate",
desc = "Values: hold fire, return fire, fire at will",
type = 'number',
value = 2, -- commander are fire@will by default
min = 0, -- most firestates are -1 but no factory/unit build comm (yet)
max = 2,
step = 1,
path = "Game/New Unit States/Misc",
},
commander_movestate1 = {
name = " Movestate",
desc = "Values: hold position, maneuver, roam",
type = 'number',
value = 1,
min = 0,-- no factory/unit build comm (yet)
max = 2,
step = 1,
path = "Game/New Unit States/Misc",
},
--[[
commander_buildpriority_0 = {
name = " Nanoframe Build Priority",
desc = "Values: Inherit, Low, Normal, High",
type = 'number',
value = -1,
min = -1,
max = 2,
step = 1,
path = "Game/New Unit States/Misc",
},
--]]
commander_constructor_buildpriority = {
name = " Constructor Build Priority",
desc = "Values: Low, Normal, High",
type = 'number',
value = 1,
min = 0,
max = 2,
step = 1,
path = "Game/New Unit States/Misc",
},
commander_misc_priority = {
name = " Miscellaneous Priority",
desc = "Values: Low, Normal, High",
type = 'number',
value = 1,
min = 0,
max = 2,
step = 1,
path = "Game/New Unit States/Misc",
},
commander_retreat = {
name = " Retreat at value",
desc = "Values: no retreat, 30%, 65%, 99% health remaining",
type = 'number',
value = 0,
min = 0,
max = 3,
step = 1,
path = "Game/New Unit States/Misc",
},
}
local tacticalAIDefs, behaviourDefaults = VFS.Include("LuaRules/Configs/tactical_ai_defs.lua", nil, VFS.ZIP)
local tacticalAIUnits = {}
for unitDefName, behaviourData in pairs(tacticalAIDefs) do
tacticalAIUnits[unitDefName] = {value = (behaviourData.defaultAIState or behaviourDefaults.defaultState) == 1}
end
local unitAlreadyAdded = {}
local function addLabel(text, path) -- doesn't work with order
path = (path and "Game/New Unit States/" .. path) or "Game/New Unit States"
options[text .. "_label"] = {
name = "label",
type = 'label',
value = text,
path = path,
}
options_order[#options_order+1] = text .. "_label"
end
local function addUnit(defName, path)
if unitAlreadyAdded[defName] then
return
end
unitAlreadyAdded[defName] = true
path = "Game/New Unit States/" .. path
local ud = UnitDefNames[defName]
if not ud then
Spring.Echo("Initial States invalid unit " .. defName)
return
end
options[defName .. "_label"] = {
name = "label",
type = 'label',
value = ud.humanName,
path = path,
}
options_order[#options_order+1] = defName .. "_label"
if ud.canAttack or ud.isFactory then
options[defName .. "_firestate0"] = {
name = " Firestate",
desc = "Values: inherit from factory, hold fire, return fire, fire at will",
type = 'number',
value = ud.fireState, -- most firestates are -1
min = -1,
max = 2,
step = 1,
path = path,
}
options_order[#options_order+1] = defName .. "_firestate0"
end
if (ud.canMove or ud.canPatrol) and ((not ud.isBuilding) or ud.isFactory) then
options[defName .. "_movestate1"] = {
name = " Movestate",
desc = "Values: inherit from factory, hold position, maneuver, roam",
type = 'number',
value = ud.moveState,
min = -1,
max = 2,
step = 1,
path = path,
}
options_order[#options_order+1] = defName .. "_movestate1"
end
if (ud.canFly) then
options[defName .. "_flylandstate_1"] = {
name = " Fly/Land State",
desc = "Values: inherit from factory, fly, land",
type = 'number',
value = (ud.customParams and ud.customParams.landflystate and ((ud.customParams.landflystate == "1" and 1) or 0)) or -1,
min = -1,
max = 1,
step = 1,
path = path,
}
options_order[#options_order+1] = defName .. "_flylandstate_1"
--[[
options[defName .. "_autorepairlevel1"] = {
name = " Auto Repair to airpad",
desc = "Values: inherit from factory, no autorepair, 30%, 50%, 80% health remaining",
type = 'number',
value = -1,
min = -1,
max = 3,
step = 1,
path = path,
}
options_order[#options_order+1] = defName .. "_autorepairlevel1"
--]]
elseif ud.customParams and ud.customParams.landflystate then
options[defName .. "_flylandstate_1_factory"] = {
name = " Fly/Land State for factory",
desc = "Values: fly, land",
type = 'number',
value = (ud.customParams and ud.customParams.landflystate and ud.customParams.landflystate == "1" and 1) or 0,
min = 0,
max = 1,
step = 1,
path = path,
}
options_order[#options_order+1] = defName .. "_flylandstate_1_factory"
--[[
options[defName .. "_autorepairlevel_factory"] = {
name = " Auto Repair to airpad",
desc = "Values: no autorepair, 30%, 50%, 80% health remaining",
type = 'number',
value = 0, -- auto repair is stupid
min = 0,
max = 3,
step = 1,
path = path,
}
options_order[#options_order+1] = defName .. "_autorepairlevel_factory"
--]]
end
if ud.isFactory then
options[defName .. "_repeat"] = {
name = " Repeat",
desc = "Repeat: check box to turn it on",
type = 'bool',
value = false,
path = path,
}
options_order[#options_order+1] = defName .. "_repeat"
end
if ud.customParams and ud.customParams.airstrafecontrol then
options[defName .. "_airstrafe1"] = {
name = " Air Strafe",
desc = "Air Strafe: check box to turn it on",
type = 'bool',
value = ud.customParams.airstrafecontrol == "1",
path = path,
}
options_order[#options_order+1] = defName .. "_airstrafe1"
end
if ud.customParams and ud.customParams.floattoggle then
options[defName .. "_floattoggle"] = {
name = " Float State",
desc = "Values: Never float, float to attack, float when stationary",
type = 'number',
value = (ud.customParams and ud.customParams.floattoggle) or 1,
min = 0,
max = 2,
step = 1,
path = path,
}
options_order[#options_order+1] = defName .. "_floattoggle"
end
options[defName .. "_buildpriority_0"] = {
name = " Nanoframe Build Priority",
desc = "Values: Inherit, Low, Normal, High",
type = 'number',
value = -1,
min = -1,
max = 2,
step = 1,
path = path,
}
options_order[#options_order+1] = defName .. "_buildpriority_0"
if ud.speed == 0 then
options[defName .. "_buildpriority_0"].value = 1
end
if ud.canAssist and ud.buildSpeed ~= 0 then
options[defName .. "_constructor_buildpriority"] = {
name = " Constructor Build Priority",
desc = "Values: Inherit, Low, Normal, High",
type = 'number',
value = 1,
min = -1,
max = 2,
step = 1,
path = path,
}
options_order[#options_order+1] = defName .. "_constructor_buildpriority"
end
if ud.customParams.priority_misc then
options[defName .. "_misc_priority"] = {
name = " Miscellaneous Priority",
desc = "Values: Low, Normal, High",
type = 'number',
value = ud.customParams.priority_misc,
min = 0,
max = 2,
step = 1,
path = path,
}
options_order[#options_order+1] = defName .. "_misc_priority"
end
if (ud.canMove or ud.isFactory) then
options[defName .. "_retreatpercent"] = {
name = " Retreat at value",
desc = "Values: inherit from factory, no retreat, 33%, 65%, 99% health remaining",
type = 'number',
value = -1,
min = -1,
max = 3,
step = 1,
path = path,
}
options_order[#options_order+1] = defName .. "_retreatpercent"
end
if tacticalAIUnits[defName] then
options[defName .. "_tactical_ai_2"] = {
name = " Smart AI",
desc = "Smart AI: check box to turn it on",
type = 'bool',
value = tacticalAIUnits[defName].value,
path = path,
}
options_order[#options_order+1] = defName .. "_tactical_ai_2"
end
if dontFireAtRadarUnits[ud.id] then
options[defName .. "_fire_at_radar"] = {
name = " Fire at radar",
desc = "Check box to make these units fire at radar. All other units fire at radar but these have the option not to.",
type = 'bool',
value = true,
path = path,
}
options_order[#options_order+1] = defName .. "_fire_at_radar"
end
if ud.canCloak then
options[defName .. "_personal_cloak_0"] = {
name = " Personal Cloak",
desc = "Personal Cloak: check box to turn it on",
type = 'bool',
value = ud.customParams.initcloaked,
path = path,
}
options_order[#options_order+1] = defName .. "_personal_cloak_0"
end
if ud.onOffable then
options[defName .. "_activateWhenBuilt"] = {
name = " On/Off State",
desc = "Check box to set the unit to On when built.",
type = 'bool',
value = ud.activateWhenBuilt,
path = path,
}
options_order[#options_order+1] = defName .. "_activateWhenBuilt"
end
end
local function AddFactoryOfUnits(defName)
if unitAlreadyAdded[defName] then
return
end
local ud = UnitDefNames[defName]
local name = string.gsub(ud.humanName, "/", "-")
addUnit(defName, name)
for i = 1, #ud.buildOptions do
addUnit(UnitDefs[ud.buildOptions[i]].name, name)
end
end
AddFactoryOfUnits("factoryshield")
AddFactoryOfUnits("factorycloak")
AddFactoryOfUnits("factoryveh")
AddFactoryOfUnits("factoryplane")
AddFactoryOfUnits("factorygunship")
AddFactoryOfUnits("factoryhover")
AddFactoryOfUnits("factoryamph")
AddFactoryOfUnits("factoryspider")
AddFactoryOfUnits("factoryjump")
AddFactoryOfUnits("factorytank")
AddFactoryOfUnits("factoryship")
AddFactoryOfUnits("striderhub")
AddFactoryOfUnits("missilesilo")
-- addUnit("striderhub","Mech")
-- addUnit("armcsa","Mech")
-- addUnit("armcomdgun","Mech")
-- addUnit("dante","Mech")
-- addUnit("armraven","Mech")
-- addUnit("armbanth","Mech")
-- addUnit("gorg","Mech")
-- addUnit("armorco","Mech")
local buildOpts = VFS.Include("gamedata/buildoptions.lua")
local _, _, factory_commands, econ_commands, defense_commands, special_commands, _, _, _ = include("Configs/integral_menu_commands.lua")
for i = 1, #buildOpts do
local name = buildOpts[i]
if econ_commands[-UnitDefNames[name].id] then
addUnit(name,"Economy")
elseif defense_commands[-UnitDefNames[name].id] then
addUnit(name,"Defence")
elseif special_commands[-UnitDefNames[name].id] then
addUnit(name,"Special")
else
addUnit(name,"Misc")
end
end
function widget:UnitCreated(unitID, unitDefID, unitTeam, builderID)
if unitTeam == Spring.GetMyTeamID() and unitDefID and UnitDefs[unitDefID] then
local ud = UnitDefs[unitDefID]
local orderArray = {}
if ud.customParams.commtype or ud.customParams.level then
local morphed = Spring.GetTeamRulesParam(unitTeam, "morphUnitCreating") == 1
if morphed then -- unit states are applied in unit_morph gadget
return
end
-- Spring.GiveOrderToUnit(unitID, CMD.FIRE_STATE, {options.commander_firestate0.value}, {"shift"})
-- Spring.GiveOrderToUnit(unitID, CMD.MOVE_STATE, {options.commander_movestate1.value}, {"shift"})
-- Spring.GiveOrderToUnit(unitID, CMD_RETREAT, {options.commander_retreat.value}, {"shift"})
orderArray[1] = {CMD.FIRE_STATE, {options.commander_firestate0.value}, {"shift"}}
orderArray[2] = {CMD.MOVE_STATE, {options.commander_movestate1.value}, {"shift"}}
if WG['retreat'] then
WG['retreat'].addRetreatCommand(unitID, unitDefID, options.commander_retreat.value)
end
end
local name = ud.name
if unitAlreadyAdded[name] then
if options[name .. "_firestate0"] and options[name .. "_firestate0"].value then
if options[name .. "_firestate0"].value == -1 then
if builderID then
local bdid = Spring.GetUnitDefID(builderID)
if UnitDefs[bdid] and UnitDefs[bdid].isFactory then
local firestate = Spring.GetUnitStates(builderID).firestate
if firestate then
--Spring.GiveOrderToUnit(unitID, CMD.FIRE_STATE, {firestate}, {"shift"})
orderArray[#orderArray + 1] = {CMD.FIRE_STATE, {firestate}, {"shift"}}
end
end
end
else
--Spring.GiveOrderToUnit(unitID, CMD.FIRE_STATE, {options[name .. "_firestate0"].value}, {"shift"})
orderArray[#orderArray + 1] = {CMD.FIRE_STATE, {options[name .. "_firestate0"].value}, {"shift"}}
end
end
if options[name .. "_movestate1"] and options[name .. "_movestate1"].value then
if options[name .. "_movestate1"].value == -1 then
if builderID then
local bdid = Spring.GetUnitDefID(builderID)
if UnitDefs[bdid] and UnitDefs[bdid].isFactory then
local movestate = Spring.GetUnitStates(builderID).movestate
if movestate then
--Spring.GiveOrderToUnit(unitID, CMD.MOVE_STATE, {movestate}, {"shift"})
orderArray[#orderArray + 1] = {CMD.MOVE_STATE, {movestate}, {"shift"}}
end
end
end
else
--Spring.GiveOrderToUnit(unitID, CMD.MOVE_STATE, {options[name .. "_movestate1"].value}, {"shift"})
orderArray[#orderArray + 1] = {CMD.MOVE_STATE, {options[name .. "_movestate1"].value}, {"shift"}}
end
end
if options[name .. "_flylandstate_1"] and options[name .. "_flylandstate_1"].value then
--NOTE: The unit_air_plants gadget deals with inherit
if options[name .. "_flylandstate_1"].value ~= -1 then --if not inherit
--Spring.GiveOrderToUnit(unitID, CMD.IDLEMODE, {options[name .. "_flylandstate_1"].value}, {"shift"})
orderArray[#orderArray + 1] = {CMD.IDLEMODE, {options[name .. "_flylandstate_1"].value}, {"shift"}}
end
end
if options[name .. "_flylandstate_1_factory"] and options[name .. "_flylandstate_1_factory"].value then
orderArray[#orderArray + 1] = {CMD_AP_FLY_STATE, {options[name .. "_flylandstate_1_factory"].value}, {"shift"}}
end
--[[
if options[name .. "_autorepairlevel_factory"] and options[name .. "_autorepairlevel_factory"].value then
orderArray[#orderArray + 1] = {CMD_AP_AUTOREPAIRLEVEL, {options[name .. "_autorepairlevel_factory"].value}, {"shift"}}
end
if options[name .. "_autorepairlevel1"] and options[name .. "_autorepairlevel1"].value then
--NOTE: The unit_air_plants gadget deals with inherit
if options[name .. "_autorepairlevel1"].value ~= -1 then --if not inherit
orderArray[#orderArray + 1] = {CMD.AUTOREPAIRLEVEL, {options[name .. "_autorepairlevel1"].value}, {"shift"}}
elseif not builderID then --if set to inherit but don't have parent (builder):
orderArray[#orderArray + 1] = {CMD.AUTOREPAIRLEVEL, {0}, {"shift"}}
end
end
--]]
if options[name .. "_repeat"] and options[name .. "_repeat"].value ~= nil then
-- Spring.GiveOrderToUnit(unitID, CMD.REPEAT, {options[name .. "_repeat"].value and 1 or 0}, {"shift"})
orderArray[#orderArray + 1] = {CMD.REPEAT, {options[name .. "_repeat"].value and 1 or 0}, {"shift"}}
end
if options[name .. "_airstrafe1"] and options[name .. "_airstrafe1"].value ~= nil then
-- Spring.GiveOrderToUnit(unitID, CMD_AIR_STRAFE, {options[name .. "_airstrafe1"].value and 1 or 0}, {"shift"})
orderArray[#orderArray + 1] = {CMD_AIR_STRAFE, {options[name .. "_airstrafe1"].value and 1 or 0}, {"shift"}}
end
if options[name .. "_floattoggle"] and options[name .. "_floattoggle"].value ~= nil then
-- Spring.GiveOrderToUnit(unitID, CMD_UNIT_FLOAT_STATE, {options[name .. "_floattoggle"].value}, {"shift"})
orderArray[#orderArray + 1] = {CMD_UNIT_FLOAT_STATE, {options[name .. "_floattoggle"].value}, {"shift"}}
end
if options[name .. "_retreatpercent"] and options[name .. "_retreatpercent"].value then
local retreat = options[name .. "_retreatpercent"].value
if retreat == -1 then --if inherit
if builderID then
retreat = Spring.GetUnitRulesParam(builderID,"retreatState")
else
retreat = nil
end
end
if retreat then
if retreat == 0 then
orderArray[#orderArray + 1] = {CMD_RETREAT, {0}, {"shift", "right"}} -- to set retreat to 0, "right" option must be used
else
orderArray[#orderArray + 1] = {CMD_RETREAT, {retreat}, {"shift"}}
end
end
end
if options[name .. "_buildpriority_0"] and options[name .. "_buildpriority_0"].value then
if options[name .. "_buildpriority_0"].value == -1 then
if builderID then
local priority = Spring.GetUnitRulesParam(builderID,"buildpriority")
if priority then
-- Spring.GiveOrderToUnit(unitID, CMD_PRIORITY, {priority}, {"shift"})
orderArray[#orderArray + 1] = {CMD_PRIORITY, {priority}, {"shift"}}
end
else
-- Spring.GiveOrderToUnit(unitID, CMD_PRIORITY, {1}, {"shift"})
orderArray[#orderArray + 1] = {CMD_PRIORITY, {1}, {"shift"}}
end
else
-- Spring.GiveOrderToUnit(unitID, CMD_PRIORITY, {options[name .. "_buildpriority_0"].value}, {"shift"})
orderArray[#orderArray + 1] = {CMD_PRIORITY, {options[name .. "_buildpriority_0"].value}, {"shift"}}
end
end
if options[name .. "_misc_priority"] and options[name .. "_misc_priority"].value then
if options[name .. "_misc_priority"].value ~= 1 then -- Medium is the default
orderArray[#orderArray + 1] = {CMD_MISC_PRIORITY, {options[name .. "_misc_priority"].value}, {"shift"}}
end
end
if options[name .. "_tactical_ai_2"] and options[name .. "_tactical_ai_2"].value ~= nil then
-- Spring.GiveOrderToUnit(unitID, CMD_UNIT_AI, {options[name .. "_tactical_ai_2"].value and 1 or 0}, {"shift"})
orderArray[#orderArray + 1] = {CMD_UNIT_AI, {options[name .. "_tactical_ai_2"].value and 1 or 0}, {"shift"}}
end
if options[name .. "_fire_at_radar"] and options[name .. "_fire_at_radar"].value ~= nil then
-- Spring.GiveOrderToUnit(unitID, CMD_DONT_FIRE_AT_RADAR, {options[name .. "_fire_at_radar"].value and 0 or 1}, {"shift"})
orderArray[#orderArray + 1] = {CMD_DONT_FIRE_AT_RADAR, {options[name .. "_fire_at_radar"].value and 0 or 1}, {"shift"}}
end
if options[name .. "_personal_cloak_0"] and options[name .. "_personal_cloak_0"].value ~= nil then
-- Spring.GiveOrderToUnit(unitID, CMD_WANT_CLOAK, {options[name .. "_personal_cloak_0"].value and 1 or 0}, {"shift"})
orderArray[#orderArray + 1] = {CMD_WANT_CLOAK, {options[name .. "_personal_cloak_0"].value and 1 or 0}, {"shift"}}
end
if options[name .. "_activateWhenBuilt"] and options[name .. "_activateWhenBuilt"].value ~= nil then
if options[name .. "_activateWhenBuilt"].value ~= ud.activateWhenBuilt then
orderArray[#orderArray + 1] = {CMD.ONOFF, {options[name .. "_activateWhenBuilt"].value and 1 or 0}, {"shift"}}
end
end
end
if #orderArray>0 then
Spring.GiveOrderArrayToUnitArray ({unitID,},orderArray) --give out all orders at once
end
orderArray = nil
end
end
function widget:UnitDestroyed(unitID)
local morphedTo = Spring.GetUnitRulesParam(unitID, "wasMorphedTo")
if morphedTo then
local controlGroup = Spring.GetUnitGroup(unitID)
if controlGroup then
Spring.SetUnitGroup(morphedTo, controlGroup)
end
end
end
--[[
function widget:SelectionChanged(newSelection)
for i=1,#newSelection do
local unitID = newSelection[i]
widget:UnitCreated(unitID, Spring.GetUnitDefID(unitID), Spring.GetMyTeamID())
end
end
--]]
function widget:UnitFromFactory(unitID, unitDefID, unitTeam, factID, factDefID, userOrders)
if unitTeam == Spring.GetMyTeamID() and unitDefID and UnitDefs[unitDefID] then
local name = UnitDefs[unitDefID].name
if options[name .. "_constructor_buildpriority"] and options[name .. "_constructor_buildpriority"].value then
if options[name .. "_constructor_buildpriority"].value == -1 then
local priority = Spring.GetUnitRulesParam(factID,"buildpriority")
if priority then
Spring.GiveOrderToUnit(unitID, CMD_PRIORITY, {priority}, {"shift"})
end
end
end
end
end
function widget:UnitFinished(unitID, unitDefID, unitTeam)
if unitTeam == Spring.GetMyTeamID() and unitDefID and UnitDefs[unitDefID] and (Spring.GetTeamRulesParam(unitTeam, "morphUnitCreating") ~= 1) then
local orderArray = {}
if UnitDefs[unitDefID].customParams.commtype or UnitDefs[unitDefID].customParams.level then
-- Spring.GiveOrderToUnit(unitID, CMD_PRIORITY, {options.commander_constructor_buildpriority.value}, {"shift"})
orderArray[1] = {CMD_PRIORITY, {options.commander_constructor_buildpriority.value}, {"shift"}}
orderArray[2] = {CMD_MISC_PRIORITY, {options.commander_misc_priority.value}, {"shift"}}
end
local name = UnitDefs[unitDefID].name
if options[name .. "_constructor_buildpriority"] and options[name .. "_constructor_buildpriority"].value then
if options[name .. "_constructor_buildpriority"].value ~= -1 then
-- Spring.GiveOrderToUnit(unitID, CMD_PRIORITY, {options[name .. "_constructor_buildpriority"].value}, {"shift"})
orderArray[#orderArray + 1] = {CMD_PRIORITY, {options[name .. "_constructor_buildpriority"].value}, {"shift"}}
end
end
if #orderArray>0 then
Spring.GiveOrderArrayToUnitArray ({unitID,},orderArray) --give out all orders at once
end
orderArray = nil
end
end
function widget:UnitGiven(unitID, unitDefID, newTeamID, teamID)
widget:UnitCreated(unitID, unitDefID, newTeamID)
widget:UnitFinished(unitID, unitDefID, newTeamID)
end
function widget:GameFrame(n)
if n >= 10 then
local team = Spring.GetMyTeamID()
local units = Spring.GetTeamUnits(team)
if units then
for i = 1, #units do
widget:UnitCreated(units[i], Spring.GetUnitDefID(units[i]), team, nil)
end
end
widgetHandler:RemoveCallIn("GameFrame")
end
end
--[[
function widget:Update()
if rememberToSetHoldPositionPreset then
for i = 1, #options_order do
local opt = options_order[i]
local find = string.find(opt, "_movestate1")
local name = find and string.sub(opt,0,find-1)
local ud = name and UnitDefNames[name]
if ud and not holdPosException[name] and IsGround(ud) then
options[opt].value = 0
end
end
rememberToSetHoldPositionPreset = false
end
end
--]] | gpl-2.0 |
stas2z/openwrt-witi | package/luci/applications/luci-app-asterisk/luasrc/model/cbi/asterisk/phone_sip.lua | 68 | 3603 | -- Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local ast = require("luci.asterisk")
local function find_outgoing_contexts(uci)
local c = { }
local h = { }
uci:foreach("asterisk", "dialplan",
function(s)
if not h[s['.name']] then
c[#c+1] = { s['.name'], "Dialplan: %s" % s['.name'] }
h[s['.name']] = true
end
end)
return c
end
local function find_incoming_contexts(uci)
local c = { }
local h = { }
uci:foreach("asterisk", "sip",
function(s)
if s.context and not h[s.context] and
uci:get_bool("asterisk", s['.name'], "provider")
then
c[#c+1] = { s.context, "Incoming: %s" % s['.name'] or s.context }
h[s.context] = true
end
end)
return c
end
--
-- SIP phone info
--
if arg[2] == "info" then
form = SimpleForm("asterisk", "SIP Phone Information")
form.reset = false
form.submit = "Back to overview"
local info, keys = ast.sip.peer(arg[1])
local data = { }
for _, key in ipairs(keys) do
data[#data+1] = {
key = key,
val = type(info[key]) == "boolean"
and ( info[key] and "yes" or "no" )
or ( info[key] == nil or #info[key] == 0 )
and "(none)"
or tostring(info[key])
}
end
itbl = form:section(Table, data, "SIP Phone %q" % arg[1])
itbl:option(DummyValue, "key", "Key")
itbl:option(DummyValue, "val", "Value")
function itbl.parse(...)
luci.http.redirect(
luci.dispatcher.build_url("admin", "asterisk", "phones")
)
end
return form
--
-- SIP phone configuration
--
elseif arg[1] then
cbimap = Map("asterisk", "Edit SIP Client")
peer = cbimap:section(NamedSection, arg[1])
peer.hidden = {
type = "friend",
qualify = "yes",
host = "dynamic",
nat = "no",
canreinvite = "no"
}
back = peer:option(DummyValue, "_overview", "Back to phone overview")
back.value = ""
back.titleref = luci.dispatcher.build_url("admin", "asterisk", "phones")
active = peer:option(Flag, "disable", "Account enabled")
active.enabled = "yes"
active.disabled = "no"
function active.cfgvalue(...)
return AbstractValue.cfgvalue(...) or "yes"
end
exten = peer:option(Value, "extension", "Extension Number")
cbimap.uci:foreach("asterisk", "dialplanexten",
function(s)
exten:value(
s.extension,
"%s (via %s/%s)" %{ s.extension, s.type:upper(), s.target }
)
end)
display = peer:option(Value, "callerid", "Display Name")
username = peer:option(Value, "username", "Authorization ID")
password = peer:option(Value, "secret", "Authorization Password")
password.password = true
regtimeout = peer:option(Value, "registertimeout", "Registration Time Value")
function regtimeout.cfgvalue(...)
return AbstractValue.cfgvalue(...) or "60"
end
sipport = peer:option(Value, "port", "SIP Port")
function sipport.cfgvalue(...)
return AbstractValue.cfgvalue(...) or "5060"
end
linekey = peer:option(ListValue, "_linekey", "Linekey Mode (broken)")
linekey:value("", "Off")
linekey:value("trunk", "Trunk Appearance")
linekey:value("call", "Call Appearance")
dialplan = peer:option(ListValue, "context", "Assign Dialplan")
dialplan.titleref = luci.dispatcher.build_url("admin", "asterisk", "dialplans")
for _, v in ipairs(find_outgoing_contexts(cbimap.uci)) do
dialplan:value(unpack(v))
end
incoming = peer:option(StaticList, "incoming", "Receive incoming calls from")
for _, v in ipairs(find_incoming_contexts(cbimap.uci)) do
incoming:value(unpack(v))
end
--function incoming.cfgvalue(...)
--error(table.concat(MultiValue.cfgvalue(...),"."))
--end
return cbimap
end
| gpl-2.0 |
lynx-seu/skynet | lualib/cluster.lua | 48 | 1257 | local skynet = require "skynet"
local clusterd
local cluster = {}
function cluster.call(node, address, ...)
-- skynet.pack(...) will free by cluster.core.packrequest
return skynet.call(clusterd, "lua", "req", node, address, skynet.pack(...))
end
function cluster.open(port)
if type(port) == "string" then
skynet.call(clusterd, "lua", "listen", port)
else
skynet.call(clusterd, "lua", "listen", "0.0.0.0", port)
end
end
function cluster.reload()
skynet.call(clusterd, "lua", "reload")
end
function cluster.proxy(node, name)
return skynet.call(clusterd, "lua", "proxy", node, name)
end
function cluster.snax(node, name, address)
local snax = require "snax"
if not address then
address = cluster.call(node, ".service", "QUERY", "snaxd" , name)
end
local handle = skynet.call(clusterd, "lua", "proxy", node, address)
return snax.bind(handle, name)
end
function cluster.register(name, addr)
assert(type(name) == "string")
assert(addr == nil or type(addr) == "number")
return skynet.call(clusterd, "lua", "register", name, addr)
end
function cluster.query(node, name)
return skynet.call(clusterd, "lua", "req", node, 0, skynet.pack(name))
end
skynet.init(function()
clusterd = skynet.uniqueservice("clusterd")
end)
return cluster
| mit |
EliHar/Pattern_recognition | torch1/install/share/lua/5.1/qtide/init.lua | 3 | 5132 |
require 'paths'
require 'qtcore'
require 'qtgui'
if qt and qt.qApp and qt.qApp:runsWithoutGraphics() then
print("qlua: not loading module qtide (running with -nographics)")
return
end
qt.require 'libqtide'
local G = _G
local error = error
local dofile = dofile
local loadstring = loadstring
local print = print
local qt = qt
local string = string
local tonumber = tonumber
local tostring = tostring
local type = type
local paths = paths
local pcall = pcall
qtide = qtide or {}
-- Startup --
local qluaide = qt.QLuaIde()
local function realmode(mode)
local defaultmode = 'sdi'
-- if qluaide.mdiDefault then defaultmode = 'mdi' end
return mode or qt.qApp:readSettings("ide/mode") or defaultmode
end
function qtide.setup(mode)
mode = realmode(mode)
if mode == "mdi" then -- subwindows within a big window
local mdi = qluaide:createMdiMain()
mdi.tabMode = false
mdi.clientClass = "QWidget"
mdi:adoptAll()
elseif mode == "tab" then -- groups all editors in tabs
local mdi = qluaide:createMdiMain()
mdi.tabMode = true
mdi.clientClass = "QLuaEditor"
mdi:adoptAll()
elseif mode == "tab2" then -- groups all editors + console in tabs
local mdi = qluaide:createMdiMain()
mdi.tabMode = true
mdi.clientClass = "QLuaMainWindow"
mdi:adoptAll()
else -- all windows separate
if mode ~= "sdi" then
print("Warning: The recognized ide styles are: sdi, mdi, tab")
mode = 'sdi'
end
local mdi = qt.qLuaMdiMain
if mdi then
mdi:hide()
mdi.tabMode = false
mdi.clientClass = "-none"
mdi:adoptAll()
mdi:deleteLater()
end
end
qt.qApp:writeSettings("ide/mode", mode)
end
function qtide.start(mode)
qtide.setup(mode)
if not qt.qLuaSdiMain then
qluaide:createSdiMain()
qluaide.editOnError = true
end
end
-- Editor --
function qtide.editor(s)
local e = qluaide:editor(s or "")
if e == nil and type(s) == "string" then
error(string.format("Unable to read file '%s'", s))
end
return e
end
function qtide.doeditor(e)
-- validate parameter
if not qt.isa(e, 'QLuaEditor*') then
error(string.format("QLuaEditor expected, got %s.", s));
end
-- retrieve text
local n = "qt." .. tostring(e.objectName)
local currentfile = nil;
if e.fileName:tobool() then
currentfile = e.fileName:tostring()
end
if (currentfile and not e.windowModified) then
dofile(currentfile)
else
-- load data from editor
local chunk, m = loadstring(e:widget().plainText:tostring(), n)
if not chunk then
print(m)
-- error while parsing the data
local _,_,l,m = string.find(m,"^%[string.*%]:(%d+): +(.*)")
if l and m and qluaide.editOnError then
e:widget():showLine(tonumber(l))
e:showStatusMessage(m)
end
else
-- execution starts
chunk()
end
end
end
-- Inspector --
function qtide.inspector(...)
error("Function qtide.inspector is not yet working")
end
-- Browser --
function qtide.browser(url)
return qluaide:browser(url or "about:/")
end
-- Help --
local function locate_help_files()
local appname = qt.qApp.applicationName:tostring()
local html = paths.install_html or "."
local index1 = paths.concat(html, appname:lower(), "index.html")
local index2 = paths.concat(html,"index.html")
if index1 and paths.filep(index1) then
return qt.QUrl.fromlocalfile(index1)
elseif index2 and paths.filep(index2) then
return qt.QUrl.fromlocalfile(index2)
else
return qt.QUrl("http://torch.ch/#packages")
end
end
helpbrowser = nil
helpurl = locate_help_files()
function qtide.help()
local appname = qt.qApp.applicationName:tostring()
if not helpurl then
error("The html help files are not installed.")
end
if not qt.isa(helpbrowser, "QWidget") then
helpbrowser = qluaide:browser()
end
helpbrowser.baseTitle = appname .. " Help Browser"
helpbrowser.homeUrl = helpurl;
helpbrowser.url = helpurl
helpbrowser:raise()
return helpbrowser
end
qt.disconnect(qluaide, 'helpRequested(QWidget*)')
qt.connect(qluaide,'helpRequested(QWidget*)',
function(main)
local success, message = pcall(qtide.help)
if not success and type(message) == "string" then
qluaide:messageBox("QLua Warning", message)
end
end)
-- Preferences --
function qtide.preferences()
G.require 'qtide.prefs'
local d = prefs.createPreferencesDialog()
if d and d.dialog:exec() > 0 then
prefs.savePreferences(d)
end
end
qt.disconnect(qluaide,'prefsRequested(QWidget*)')
qt.connect(qluaide,'prefsRequested(QWidget*)',
function(main)
local success, message = pcall(qtide.preferences)
if not success and type(message) == "string" then
qluaide:messageBox("QLua Warning", message)
end
end)
return qtide
| mit |
ViolyS/RayUI_VS | Interface/AddOns/RayUI/libs/oUF/elements/power.lua | 1 | 11664 | --[[
# Element: Power Bar
Handles the updating of a status bar that displays the unit's power.
## Widget
Power - A `StatusBar` used to represent the unit's power.
## Sub-Widgets
.bg - A `Texture` used as a background. It will inherit the color of the main StatusBar.
## Notes
A default texture will be applied if the widget is a StatusBar and doesn't have a texture or a color set.
## Options
.frequentUpdates - Indicates whether to use UNIT_POWER_FREQUENT instead UNIT_POWER to update the bar. Only valid for the
player and pet units (boolean)
.displayAltPower - Use this to let the widget display alternate power if the unit has one. If no alternate power the
display will fall back to primary power (boolean)
.useAtlas - Use this to let the widget use an atlas for its texture if `.atlas` is defined on the widget or an
atlas is present in `self.colors.power` for the appropriate power type (boolean)
.atlas - A custom atlas (string)
.smoothGradient - 9 color values to be used with the .colorSmooth option (table)
The following options are listed by priority. The first check that returns true decides the color of the bar.
.colorTapping - Use `self.colors.tapping` to color the bar if the unit isn't tapped by the player (boolean)
.colorDisconnected - Use `self.colors.disconnected` to color the bar if the unit is offline (boolean)
.altPowerColor - The RGB values to use for a fixed color if the alt power bar is being displayed instead of primary
power bar (table)
.colorPower - Use `self.colors.power[token]` to color the bar based on the unit's power type. This method will
fall-back to `:GetAlternativeColor()` if it can't find a color matching the token. If this function
isn't defined, then it will attempt to color based upon the alternative power colors returned by
[UnitPowerType](http://wowprogramming.com/docs/api/UnitPowerType). Finally, if these aren't
defined, then it will attempt to color the bar based upon `self.colors.power[type]` (boolean)
.colorClass - Use `self.colors.class[class]` to color the bar based on unit class. `class` is defined by the
second return of [UnitClass](http://wowprogramming.com/docs/api/UnitClass) (boolean)
.colorClassNPC - Use `self.colors.class[class]` to color the bar if the unit is a NPC (boolean)
.colorClassPet - Use `self.colors.class[class]` to color the bar if the unit is player controlled, but not a player
(boolean)
.colorReaction - Use `self.colors.reaction[reaction]` to color the bar based on the player's reaction towards the
unit. `reaction` is defined by the return value of
[UnitReaction](http://wowprogramming.com/docs/api/UnitReaction) (boolean)
.colorSmooth - Use `smoothGradient` if present or `self.colors.smooth` to color the bar with a smooth gradient
based on the player's current power percentage (boolean)
## Sub-Widget Options
.multiplier - A multiplier used to tint the background based on the main widgets R, G and B values. Defaults to 1
(number)[0-1]
## Attributes
.disconnected - Indicates whether the unit is disconnected (boolean)
.tapped - Indicates whether the unit is tapped by the player (boolean)
## Examples
-- Position and size
local Power = CreateFrame('StatusBar', nil, self)
Power:SetHeight(20)
Power:SetPoint('BOTTOM')
Power:SetPoint('LEFT')
Power:SetPoint('RIGHT')
-- Add a background
local Background = Power:CreateTexture(nil, 'BACKGROUND')
Background:SetAllPoints(Power)
Background:SetTexture(1, 1, 1, .5)
-- Options
Power.frequentUpdates = true
Power.colorTapping = true
Power.colorDisconnected = true
Power.colorPower = true
Power.colorClass = true
Power.colorReaction = true
-- Make the background darker.
Background.multiplier = .5
-- Register it with oUF
Power.bg = Background
self.Power = Power
--]]
local _, ns = ...
local oUF = ns.oUF
local updateFrequentUpdates
-- sourced from FrameXML/UnitPowerBarAlt.lua
local ALTERNATE_POWER_INDEX = ALTERNATE_POWER_INDEX or 10
local function getDisplayPower(unit)
local _, min, _, _, _, _, showOnRaid = UnitAlternatePowerInfo(unit)
if(showOnRaid) then
return ALTERNATE_POWER_INDEX, min
end
end
local function UpdateColor(element, unit, cur, min, max, displayType)
local parent = element.__owner
local ptype, ptoken, altR, altG, altB = UnitPowerType(unit)
if element.frequentUpdates ~= element.__frequentUpdates then
element.__frequentUpdates = element.frequentUpdates
updateFrequentUpdates(self)
end
local ptype, ptoken, altR, altG, altB = UnitPowerType(unit)
local r, g, b, t
if(element.colorTapping and element.tapped) then
t = parent.colors.tapped
elseif(element.colorDisconnected and element.disconnected) then
t = parent.colors.disconnected
elseif(displayType == ALTERNATE_POWER_INDEX and element.altPowerColor) then
t = element.altPowerColor
elseif(element.colorPower) then
t = parent.colors.power[ptoken]
if(not t) then
if(element.GetAlternativeColor) then
r, g, b = element:GetAlternativeColor(unit, ptype, ptoken, altR, altG, altB)
elseif(altR) then
r, g, b = altR, altG, altB
if(r > 1 or g > 1 or b > 1) then
-- BUG: As of 7.0.3, altR, altG, altB may be in 0-1 or 0-255 range.
r, g, b = r / 255, g / 255, b / 255
end
else
t = parent.colors.power[ptype]
end
end
elseif(element.colorClass and UnitIsPlayer(unit)) or
(element.colorClassNPC and not UnitIsPlayer(unit)) or
(element.colorClassPet and UnitPlayerControlled(unit) and not UnitIsPlayer(unit)) then
local _, class = UnitClass(unit)
t = parent.colors.class[class]
elseif(element.colorReaction and UnitReaction(unit, 'player')) then
t = parent.colors.reaction[UnitReaction(unit, 'player')]
elseif(element.colorSmooth) then
local adjust = 0 - (min or 0)
r, g, b = parent.ColorGradient(cur + adjust, max + adjust, unpack(element.smoothGradient or parent.colors.smooth))
end
if(t) then
r, g, b = t[1], t[2], t[3]
end
t = parent.colors.power[ptoken or ptype]
local atlas = element.atlas or (t and t.atlas)
if(element.useAtlas and atlas and displayType ~= ALTERNATE_POWER_INDEX) then
element:SetStatusBarAtlas(atlas)
element:SetStatusBarColor(1, 1, 1)
if(element.colorTapping or element.colorDisconnected) then
t = element.disconnected and parent.colors.disconnected or parent.colors.tapped
element:GetStatusBarTexture():SetDesaturated(element.disconnected or element.tapped)
end
if(t and (r or g or b)) then
r, g, b = t[1], t[2], t[3]
end
else
element:SetStatusBarTexture(element.texture)
if(r or g or b) then
element:SetStatusBarColor(r, g, b)
end
end
local bg = element.bg
if(bg and b) then
local mu = bg.multiplier or 1
bg:SetVertexColor(r * mu, g * mu, b * mu)
end
end
local function Update(self, event, unit)
if(self.unit ~= unit) then return end
local element = self.Power
--[[ Callback: Power:PreUpdate(unit)
Called before the element has been updated.
* self - the Power element
* unit - the unit for which the update has been triggered (string)
--]]
if(element.PreUpdate) then
element:PreUpdate(unit)
end
local displayType, min
if(element.displayAltPower) then
displayType, min = getDisplayPower(unit)
end
local cur, max = UnitPower(unit, displayType), UnitPowerMax(unit, displayType)
local disconnected = not UnitIsConnected(unit)
local tapped = not UnitPlayerControlled(unit) and UnitIsTapDenied(unit)
element:SetMinMaxValues(min or 0, max)
if(disconnected) then
element:SetValue(max)
else
element:SetValue(cur)
end
element.disconnected = disconnected
element.tapped = tapped
--[[ Override: Power:UpdateColor(unit, cur, min, max, displayType)
Used to completely override the internal function for updating the widget's colors.
* self - the Power element
* unit - the unit for which the update has been triggered (string)
* cur - the unit's current power value (number)
* min - the unit's minimum possible power value (number)
* max - the unit's maximum possible power value (number)
* displayType - the alternative power display type if applicable (number?)[ALTERNATE_POWER_INDEX]
--]]
element:UpdateColor(unit, cur, min, max, displayType)
--[[ Callback: Power:PostUpdate(unit, cur, min, max)
Called after the element has been updated.
* self - the Power element
* unit - the unit for which the update has been triggered (string)
* cur - the unit's current power value (number)
* min - the unit's minimum possible power value (number)
* max - the unit's maximum possible power value (number)
--]]
if(element.PostUpdate) then
return element:PostUpdate(unit, cur, min, max)
end
end
local function Path(self, ...)
--[[ Override: Power.Override(self, event, unit, ...)
Used to completely override the internal update function.
* self - the parent object
* event - the event triggering the update (string)
* unit - the unit accompanying the event (string)
* ... - the arguments accompanying the event
--]]
return (self.Power.Override or Update) (self, ...)
end
local function ForceUpdate(element)
return Path(element.__owner, 'ForceUpdate', element.__owner.unit)
end
function updateFrequentUpdates(self)
local power = self.Power
if power.frequentUpdates and not self:IsEventRegistered('UNIT_POWER_FREQUENT') then
self:RegisterEvent('UNIT_POWER_FREQUENT', Path)
if self:IsEventRegistered('UNIT_POWER') then
self:UnregisterEvent('UNIT_POWER', Path)
end
elseif not self:IsEventRegistered('UNIT_POWER') then
self:RegisterEvent('UNIT_POWER', Path)
if self:IsEventRegistered('UNIT_POWER_FREQUENT') then
self:UnregisterEvent('UNIT_POWER_FREQUENT', Path)
end
end
end
local function Enable(self, unit)
local element = self.Power
if(element) then
element.__owner = self
element.ForceUpdate = ForceUpdate
element.__frequentUpdates = element.frequentUpdates
updateFrequentUpdates(self)
if(element.frequentUpdates and (unit == 'player' or unit == 'pet')) then
self:RegisterEvent('UNIT_POWER_FREQUENT', Path)
else
self:RegisterEvent('UNIT_POWER', Path)
end
self:RegisterEvent('UNIT_POWER_BAR_SHOW', Path)
self:RegisterEvent('UNIT_POWER_BAR_HIDE', Path)
self:RegisterEvent('UNIT_DISPLAYPOWER', Path)
self:RegisterEvent('UNIT_CONNECTION', Path)
self:RegisterEvent('UNIT_MAXPOWER', Path)
self:RegisterEvent('UNIT_FACTION', Path) -- For tapping
if(element:IsObjectType('StatusBar')) then
element.texture = element:GetStatusBarTexture() and element:GetStatusBarTexture():GetTexture() or [[Interface\TargetingFrame\UI-StatusBar]]
element:SetStatusBarTexture(element.texture)
end
if(not element.UpdateColor) then
element.UpdateColor = UpdateColor
end
element:Show()
return true
end
end
local function Disable(self)
local element = self.Power
if(element) then
element:Hide()
self:UnregisterEvent('UNIT_POWER_FREQUENT', Path)
self:UnregisterEvent('UNIT_POWER', Path)
self:UnregisterEvent('UNIT_POWER_BAR_SHOW', Path)
self:UnregisterEvent('UNIT_POWER_BAR_HIDE', Path)
self:UnregisterEvent('UNIT_DISPLAYPOWER', Path)
self:UnregisterEvent('UNIT_CONNECTION', Path)
self:UnregisterEvent('UNIT_MAXPOWER', Path)
self:UnregisterEvent('UNIT_FACTION', Path)
end
end
oUF:AddElement('Power', Path, Enable, Disable)
| mit |
Jennal/cocos2dx-3.2-qt | cocos/scripting/lua-bindings/auto/api/ActionObject.lua | 6 | 2594 |
--------------------------------
-- @module ActionObject
-- @extend Ref
-- @parent_module ccs
--------------------------------
-- @function [parent=#ActionObject] setCurrentTime
-- @param self
-- @param #float float
--------------------------------
-- @function [parent=#ActionObject] pause
-- @param self
--------------------------------
-- @function [parent=#ActionObject] setName
-- @param self
-- @param #char char
--------------------------------
-- @function [parent=#ActionObject] setUnitTime
-- @param self
-- @param #float float
--------------------------------
-- @function [parent=#ActionObject] getTotalTime
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @function [parent=#ActionObject] getName
-- @param self
-- @return char#char ret (return value: char)
--------------------------------
-- @function [parent=#ActionObject] stop
-- @param self
--------------------------------
-- @overload self, cc.CallFunc
-- @overload self
-- @function [parent=#ActionObject] play
-- @param self
-- @param #cc.CallFunc callfunc
--------------------------------
-- @function [parent=#ActionObject] getCurrentTime
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @function [parent=#ActionObject] removeActionNode
-- @param self
-- @param #ccs.ActionNode actionnode
--------------------------------
-- @function [parent=#ActionObject] getLoop
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#ActionObject] addActionNode
-- @param self
-- @param #ccs.ActionNode actionnode
--------------------------------
-- @function [parent=#ActionObject] getUnitTime
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- @function [parent=#ActionObject] isPlaying
-- @param self
-- @return bool#bool ret (return value: bool)
--------------------------------
-- @function [parent=#ActionObject] updateToFrameByTime
-- @param self
-- @param #float float
--------------------------------
-- @function [parent=#ActionObject] setLoop
-- @param self
-- @param #bool bool
--------------------------------
-- @function [parent=#ActionObject] simulationActionUpdate
-- @param self
-- @param #float float
--------------------------------
-- @function [parent=#ActionObject] ActionObject
-- @param self
return nil
| mit |
rlcevg/Zero-K | scripts/pw_mine.lua | 11 | 1277 | include "constants.lua"
local base = piece "base"
local turret = piece "turret"
local smokePiece = {turret}
local function TurnTurret ()
while (true) do
Move(turret, y_axis, -10, 4)
WaitForMove(turret, y_axis)
Sleep(200)
Move(turret, y_axis, 0, 4)
WaitForMove(turret, y_axis)
Turn(turret, y_axis, 1.57079633, 1)
WaitForTurn(turret, y_axis)
Move(turret, y_axis, -10, 4)
WaitForMove(turret, y_axis)
Sleep(200)
Move(turret, y_axis, 0, 4)
WaitForMove(turret, y_axis)
Turn(turret, y_axis, 3.14159266, 1)
WaitForTurn(turret, y_axis)
Move(turret, y_axis, -10, 4)
WaitForMove(turret, y_axis)
Sleep(200)
Move(turret, y_axis, 0, 4)
WaitForMove(turret, y_axis)
Turn(turret, y_axis, 4.71238899, 1)
WaitForTurn(turret, y_axis)
Move(turret, y_axis, -10, 4)
WaitForMove(turret, y_axis)
Sleep(200)
Move(turret, y_axis, 0, 4)
WaitForMove(turret, y_axis)
Turn(turret, y_axis, 6.28318532, 1)
WaitForTurn(turret, y_axis)
Turn(turret, y_axis, 0)
end
end
local function Initialize()
Signal(1)
SetSignalMask(2)
StartThread(TurnTurret)
end
local function Deinitialize()
Signal(2)
SetSignalMask(1)
end
function script.Activate ()
StartThread(Initialize)
end
function script.Deactivate ()
StartThread(Deinitialize)
end
| gpl-2.0 |
yangboz/bugfree-bugfixes | CocosJSGame/frameworks/js-bindings/cocos2d-x/cocos/scripting/lua-bindings/auto/api/LayoutParameter.lua | 6 | 1114 |
--------------------------------
-- @module LayoutParameter
-- @extend Ref
-- @parent_module ccui
--------------------------------
-- @function [parent=#LayoutParameter] clone
-- @param self
-- @return LayoutParameter#LayoutParameter ret (return value: ccui.LayoutParameter)
--------------------------------
-- @function [parent=#LayoutParameter] getLayoutType
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- @function [parent=#LayoutParameter] createCloneInstance
-- @param self
-- @return LayoutParameter#LayoutParameter ret (return value: ccui.LayoutParameter)
--------------------------------
-- @function [parent=#LayoutParameter] copyProperties
-- @param self
-- @param #ccui.LayoutParameter layoutparameter
--------------------------------
-- @function [parent=#LayoutParameter] create
-- @param self
-- @return LayoutParameter#LayoutParameter ret (return value: ccui.LayoutParameter)
--------------------------------
-- @function [parent=#LayoutParameter] LayoutParameter
-- @param self
return nil
| mit |
ViolyS/RayUI_VS | Interface/AddOns/RayUI/locales/enUS.lua | 1 | 26150 | local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
local L = AceLocale:NewLocale("RayUI", "enUS")
if not L then return end
do
CALENDAR = "Calendar"
L["锚点已解锁,拖动锚点移动位置,右键点击微调,完成后点击锁定按钮。"] = "Anchors unlocked, right click to nudge, move anything you want then click the Lock button."
L["网格数"] = "Grid size"
L["微调"] = "Nudge"
L["锁定"] = "Lock"
L["动作条1锚点"] = "ActionBar1 anchor"
L["动作条2锚点"] = "ActionBar2 anchor"
L["动作条3锚点"] = "ActionBar3 anchor"
L["动作条4锚点"] = "ActionBar4 anchor"
L["动作条5锚点"] = "ActionBar5 anchor"
L["载具动作条锚点"] = "TaxiBar anchor"
L["宠物动作条锚点"] = "PetActionBar anchor"
L["职业条锚点"] = "ClassBar anchor"
L["载具指示锚点"] = "TaxiTip anchor"
L["任务追踪锚点"] = "QuestTracer anchor"
L["能量条锚点"] = "EnergyBar anchor"
L["复仇条锚点"] = "RevengeBar anchor"
L["Buff锚点"] = "BuffFrame anchor"
L["Debuff锚点"] = "DebuffFrame anchor"
L["武器附魔锚点"] = "Weapon enchants anchor"
L["施法条锚点"] = "SpellCastbar anchor"
L["小地图锚点"] = "Minimap anchor"
L["团队冷却锚点"] = "RaidCD anchor"
L["重要buff提醒锚点"] = "Important BuffReminder anchor"
L["离开载具按钮"] = "Vehicle Exit Button"
L["额外按钮"] = "Extra Action Button"
L["要塞按钮"] = "Draenor Zone Ability Button"
L["副资源条"] = "Alternate resource bar"
L["图腾条"] = "Totem bar"
L["冷却条"] = "Cooldowns"
L["通知锚点"] = "Notification anchor"
L["Player Mover"] = "Player"
L["Target Mover"] = "Target"
L["Focus Mover"] = "Focus"
L["TargetTarget Mover"] = "TargetTarget"
L["Pet Mover"] = "Pet"
L["FocusTarget Mover"] = "FocusTarget"
L["Arena Mover"] = "Arena"
L["Boss Mover"] = "Boss"
L["Raid Mover"] = "Raid"
L["RaidPets Mover"] = "RaidPets"
L["RaidTank Mover"] = "RaidTank"
L["玩家法术监视"] = "Player aura watch"
L["目标法术监视"] = "Target aura watch"
L["焦点法术监视"] = "Focus aura watch"
L["宠物法术监视"] = "Pet aura watch"
L["ALL"] = "All"
L["GENERAL"] = "General"
L["ACTIONBARS"] = "ActionBars"
L["RAID"] = "Raid"
L["ARENA"] = "Arena"
L["数字单位"] = ""
L["您不能在战斗中设定快捷键"] = "You can't change keybindings in combat."
L["未绑定."] = "Not bounded"
L["序号"] = "Index"
L["按键"] = "Key"
L["绑定至"] = "Bind to"
L["所有快捷键修改已储存"] = "All keybindings change saved"
L["这次的快捷键修改已重设为上一次修改"] = "All keybindings change reseted"
L["将鼠标指向动作列上以绑定快捷键, 您可以按ESC或以右键点击快捷工具栏上任何一格以清除该位置的设定"] = "Hover your mouse over any actionbutton to assign a keybinding. Press ESC or right click to clear the current keybinding."
L["该按键的绑定已全部取消"] = "All keybindings of this button cleared"
L["储存"] = "Save"
L["放弃"] = "Discard"
L["你没有权限设置团队标记"] = "You don't have permission to mark targets."
L["点击右键选择信息条"] = "Right-Click to open infobar list"
L["清除"] = "Clear"
L["自动隐藏信息条"] = "Auto hide infobar"
L["没有公会"] = "No guild"
L["在线人数过多, 点击信息条查看"] = "Too many guild member online, click infobar to view"
L["免伤分析"] = "Avoidance Breakdown"
L["免伤"] = "AVD"
L["未命中"] = "Unhittable"
L["等级缓和"] = true
L["共释放内存"] = "Memory purged"
L["带宽"] = "Bandwidth"
L["下载"] = "Download"
L["总内存使用"] = "Memory usage"
L["总CPU使用"] = "CPU usage"
L["<点击天赋> 切换天赋."] = "<Click Talent> switch talent"
L["<点击套装> 装备套装."] = "<Click Suit> equip suit"
L["<Ctrl+点击套装> 套装绑定至主天赋."] = "<Ctrl+Click Suit> bind suit to primary talent"
L["<Alt+点击套装> 套装绑定至副天赋."] = "<Alt+Click Suit> bind suit to secondary talent"
L["<Shift+点击套装> 解除天赋绑定."] = "<Shift+Click Suit> clear binding between suit and talent"
L["<点击玩家>发送密语, <Alt+点击玩家>邀请玩家."] = "<Click Player> send an wisper, <Alt+Click Player> invite"
L["网络"] = "Network"
L["下行"] = "In"
L["上行"] = "Out"
L["电脑"] = "Computer"
L["系统信息"] = "Sys_SysInfo"
L["FPS"] = "FPS"
L["本地"] = "Home Latency"
L["世界"] = "World Latency"
L["状态"] = "Status"
L["当前"] = "Current"
L["最大"] = "Max"
L["最小"] = "Min"
L["平均"] = "Average"
L["本次登录:"] = "Since login:"
L["赚取:"] = "Earned:"
L["花费:"] = "Spended:"
L["赤字:"] = "Deficit:"
L["利润:"] = "Profit:"
L["全部服务器"] = "All realms"
L["切换"] = "|cFF66FF00Click|r to switch display"
L["正在吃喝."] = "Taking food."
L["点击隐藏聊天栏"] = "Click to hide ChatFrame"
L["点击显示聊天栏"] = "Click to show ChatFrame"
L["有新的悄悄话"] = "You have new wisper"
L["您背包内的粗糙物品已被自动卖出, 您赚取了"] = "Vendored gray items for:"
L["您的装备已使用公会修理, 花费了"] = "Guild repaired for:"
L["您的装备已修理, 花费了"] = "Repaired for:"
L["您没有足够的金钱来修理!"] = "You don't have enough money to repair."
L["快速团队标记"] = "Quick Raid Mark"
L["正在解散队伍.."] = "Going to disband group.."
L["是否确定解散队伍?"] = "Are you sure you want to disband the group?"
L["团队工具"] = "RaidTool"
L["解散队伍"] = "Disband group"
L["焦点"] = "Focus"
L["取消焦点"] = "Cancel focus"
L["整理背包"] = "Sort bags"
L["显示背包"] = "Show bags"
L["堆叠物品"] = "Stack items"
L["堆叠至银行"] = "Stack items to bank"
L["不能购买更多的银行栏位了!"] = "Can't buy more bank slot."
L["你必须先购买一个银行栏位!"] = "You should buy one more bank slot first."
L["出了点问题, 请重试!"] = "Some error happened, please try again."
L["已在运行!"] = "Already working"
L["全部"] = "All"
L["当前仇恨"] = "Current threat"
L["缺少"] = "Miss"
L["请取消"] = "Please cancel"
L["守护"] = "Aspect"
L["护甲"] = "Armor"
L["圣印"] = "Seal"
L["正义之怒"] = "Righteous Fury"
L["光环"] = "Aura"
L["护盾"] = "Shield"
L["武器附魔"] = "Weapon Enchantment"
L["命令怒吼"] = "Commanding Shout"
L["战斗怒吼"] = "Battle Shout"
L["寒冬号角"] = "Horn of Winter"
L["鲜血灵气"] = "Blood Presence"
L["伤害性毒药"] = "Harmulness Poison"
L["非伤害性毒药"] = "Non-Harmulness Poison"
L["URL Ctrl+C复制"] = "Ctrl+C to copy the URL"
L["PVP信息"] = "PVP info"
L["下一场冬拥湖:"] = "Next Wintergrasp"
L["冬拥湖不可用"] = "Wintergrasp Unavailable"
L["下一场托尔巴拉德:"] = "Next Tol Barad"
L["托尔巴拉德不可用"] = "Tol Barad Unavailable"
L["发布者"] = "Publisher"
L["点击进入RayUI控制台。\n请仔细研究每一项设置的作用。"] = "Welcome to RayUI's console.\nYou can custom RayUI here."
L["点击tab键可以快速切换频道。"] = "You can change channel by pressing tab button."
L["将战利品通报至"] = "Announce Loots to"
L["箱子中的战利品"] = "Loots in chest"
L["的战利品"] = "Loots"
L["第一页"] = "First"
L["最后页"] = "Last"
L["没有本地变量转存"] = true
L['|cFFE30000接收到Lua错误. 可以通过点击小地图的"E"按钮查看错误.'] = "|cFFE30000Received Lua error, click the 'E' button to review."
L["%s: %s 尝试调用保护函数 '%s'."] = "%s: %s try to call protected function '%s'."
L["剩余"] = "Remaining"
L["双倍"] = "Rested"
end
do
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r设置"] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r settings"
L["版本"] = "Version"
L["改变参数需重载应用设置"] = "One or more of the changes you have made require a ReloadUI."
L["设置"] = "Settings"
L["启用"] = "Enable"
L["登陆Logo"] = "Login logo"
L["开关登陆时的Logo"] = "Toggle the logo when login"
L["界面风格"] = "UI style"
L["阴影"] = "Shadow"
L["1像素"] = "1px"
L["材质风格"] = "Statusbar Style"
L["普通"] = "Normal"
L["渐变"] = "Gradient"
L["解锁界面元素"] = "Unlock UI elements"
L["显示教程"] = "Show tutorial"
L["测试ExtraActionButton"] = "Test ExtraActionButton"
L["显示/隐藏ExtraActionButton"] = "Show/Hide ExtraActionButton"
L["解锁并移动头像和动作条"] = "Unlock unitframe and actionbars"
L["重置锚点"] = "Reset anchors"
L["是否重置所有锚点?"] = "Are you sure you want to reset all anchros?"
L["选择布局"] = "Choose Layout"
L["选择一个预设布局"] = "Choose a preset layout."
L["一般"] = "General"
L["UI缩放"] = "UI scale"
L["UI界面缩放"] = "UI scale"
L["字体材质"] = "Font and texture"
L["字体"] = "Font"
L["一般字体"] = "General font"
L["字体大小"] = "Font size"
L["伤害字体"] = "Damage font"
L["像素字体"] = "Pixel font"
L["冷却字体"] = "Cooldown font"
L["材质"] = "Texture"
L["一般材质"] = "General texture"
L["空白材质"] = "Blank texture"
L["阴影边框"] = "Shadow texture"
L["玻璃材质"] = "Glass texture"
L["声音"] = "Sound"
L["报警声音"] = "Warning sound"
L["边框颜色"] = "Border color"
L["背景颜色"] = "Background color"
L["透明框架背景颜色"] = "Transparent frame background color"
L["恢复默认"] = "Default"
L["模块"] = "Modules"
L["世界地图"] = "World Map"
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r世界地图模块."] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r World Map Module."
L["地图锁定"] = "Map lock"
L["地图大小"] = "Map scale"
L["Boss头像大小"] = "BossUnitFrame scale"
L["队友标示大小"] = "Group members flag scale"
L["小地图"] = "Minimap"
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r小地图模块."] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r Minimap Module."
L["姓名板"] = "Nameplates"
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r姓名板模块."] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r Nameplate Module."
L["姓名板排列方式"] = "Nameplate motion type"
L["重叠姓名板"] = "Overlap"
L["堆叠姓名板"] = "Stacked"
L["战场中标识治疗"] = "Mark healer in PVP"
L["能量条高度"] = "Powerbar height"
L["施法条高度"] = "Castbar height"
L["目标姓名板缩放"] = "Target scale"
L["显示增益/减益"] = "Show auras"
L["增益/减益数量"] = "Aura number"
L["增益/减益图标大小"] = "Aura icon size"
L["显示友方仆从"] = "Show friendly minions"
L["显示敌方仆从"] = "Show enemy minions"
L["显示敌方杂兵"] = "Show enemy minors"
L["显示模式"] = "Display style"
L["目标, 任务, 战斗"] = "Target, Misson, Combat"
L["仅显示目标"] = "Only target"
L["敌对战斗开关"] = "Enemy combat toggle"
L["友方战斗开关"] = "Friendly combat toggle"
L["职业副资源"] = "Classbar"
L["禁用"] = "Disable"
L["战斗中显示"] = "Toggle on in combat"
L["战斗中隐藏"] = "Toggle off in combat"
L["背包"] = "Bags"
L["聊天栏"] = "Chat"
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r聊天模块."] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r Chat Module."
L["长度"] = "Width"
L["高度"] = "Height"
L["自动隐藏聊天栏"] = "Auto hide ChatFrame"
L["短时间内没有消息则自动隐藏聊天栏"] = "Hide ChatFrame when no news comed for a while."
L["自动隐藏时间"] = "Auto hide timestamp"
L["设置多少秒没有新消息时隐藏"] = "Hide when there is no news coming in how many seconds"
L["自动显示聊天栏"] = "Auto show ChatFrame"
L["频道内有信消息则自动显示聊天栏,关闭后如有新密语会闪烁提示"] = "Auto show when news coming, and blink when new wisper received."
L["鼠标提示"] = "Tooltip"
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r鼠标提示模块."] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r Tooltip Module."
L["跟随鼠标"] = "Follow the mouse"
L["战斗中隐藏"] = "Hide in comat"
L["BUFF"] = "BUFF"
L["冷却提示"] = "CD reminder"
L["头像"] = "UnitFrame"
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r头像模块."] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r UnitFrame Module."
L["颜色"] = "Color"
L["透明模式"] = "Transparent mode"
L["一种适合治疗使用的颜色模式"] = "A color scheme fits the healers to use"
L["生命条按职业着色"] = "HealthBar colored by class"
L["法力条按职业着色"] = "ManaBar colored by class"
L["平滑变化"] = "Transition"
L["颜色随血量渐变"] = "Color gradient with health"
L["显示"] = "Display"
L["显示小队"] = "Display group"
L["显示BOSS"] = "Display BOSS"
L["显示施法条"] = "Display castbar"
L["显示竞技场头像"] = "Display ArenaUnitFrame"
L["启用3D头像"] = "Enable 3D avatar"
L["默认显示血量数值"] = "Display health value for default"
L["鼠标悬浮时显示血量百分比"] = "Display health percentage when mouse hover"
L["总是显示血量"] = "Always display health"
L["施法条"] = "Castbar"
L["显示图标"] = "Show icon"
L["目标的目标"] = "Target of target"
L["焦点的目标"] = "Target of focus"
L["竞技场"] = "Arena"
L["首领"] = "Boss"
L["其他"] = "Others"
L["独立能量条"] = "Alone EnergyBar"
L["坦克复仇条"] = "Tank ThreatBar"
L["团队"] = "RAID"
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r团队模块."] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r RAID Module."
L["启用"] = "Enable"
L["显示团队"] = "Toggle raid frames"
L["显示主坦克框体"] = "Toggle main tank"
L["显示团队宠物框体"] = "Toogle raid pet"
L["大小"] = "Size"
L["单位长度"] = "Raid unit width"
L["单位高度"] = "Raid unit height"
L["单位长度2"] = "Raid25 unit width"
L["单位高度2"] = "Raid25 unit height"
L["间距"] = "Margin"
L["solo时显示"] = "Display when solo"
L["在队伍中显示自己"] = "Display youself in group"
L["小队也显示团队框体"] = "Display RAIDFrame when in team"
L["显示6~8队"] = "Display group 6~8"
L["始终显示1~8队"] = "Always show group 1~8"
L["法力条高度"] = "ManaBar height"
L["超出距离透明度"] = "Opacity when out of range"
L["技能图标大小"] = "Spell icon size"
L["角标大小"] = "Corner icon size"
L["职责图标大小"] = "Role icon size"
L["特殊标志大小"] = "Special flags size"
L["特殊标志大小, 如愈合祷言标志"] = "Special flags size, like flag of [Prayer of Mending]"
L["排列"] = "Order"
L["水平排列"] = "Horizontal"
L["小队成员水平排列"] = "Order team member in horizontal"
L["小队增长方向"] = "Grow up direction"
L["上"] = "Up"
L["下"] = "Down"
L["左"] = "Left"
L["右"] = "Right"
L["箭头"] = "Arrowhead"
L["箭头方向指示"] = "Display a arrowhead point out the target."
L["鼠标悬停时显示"] = "Display when hover"
L["只在鼠标悬停时显示方向指示"] = "Display when hover"
L["预读"] = "Prediction"
L["治疗预读"] = "Heal Prediction"
L["显示过量预读"] = "Show overflow prediction"
L["只显示他人预读"] = "Only show others prediction"
L["图标文字"] = "Icon text"
L["职责图标"] = "Role icon"
L["AFK文字"] = "AFK text"
L["缺失生命文字"] = "Missing health text"
L["当前生命文字"] = "Current health text"
L["生命值百分比"] = "Health percentage text"
L["可驱散提示"] = "Dispellable reminder"
L["鼠标悬停高亮"] = "Hover highlight"
L["鼠标提示"] = "Tooltip"
L["屏蔽右键菜单"] = "Disable right click menu"
L["快速复活"] = "Quick revive"
L["鼠标中键点击快速复活/战复"] = "Revive target with middle click."
L["显示小队编号"] = "Show group number"
L["主坦克框体"] = "Show maintank frames"
L["主坦克框体长度"] = "Main tank unit width"
L["主坦克框体高度"] = "Main tank unit height"
L["宠物框体"] = "Show pet frames"
L["宠物框体长度"] = "Pet unit width"
L["宠物框体高度"] = "Pet unit height"
L["动作条"] = "ActionBar"
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r动作条模块."] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r ActionBar Module."
L["动作条缩放"] = "ActionBar scale"
L["宠物动作条缩放"] = "PetBar scale"
L["按键大小"] = "Button size"
L["按键间距"] = "Button margin"
L["每行按键数"] = "Number of buttons per row"
L["显示宏名称"] = "Display macro name"
L["显示物品数量"] = "Display item count"
L["显示快捷键"] = "Display keybindings"
L["显示空按键"] = "Display empty button"
L["按下时生效"] = "Click on press"
L["动作条1"] = "ActionBar1"
L["动作条2"] = "ActionBar2"
L["动作条3"] = "ActionBar3"
L["动作条4"] = "ActionBar4"
L["动作条5"] = "ActionBar5"
L["宠物条"] = "PetBar"
L["姿态条"] = "ShapeshiftBar"
L["自动隐藏"] = "Auto hide"
L["鼠标滑过显示"] = "Fadein when hover"
L["根据CD淡出"] = "Fadeout when CD"
L["CD时透明度"] = "Opacity when CD"
L["就绪时透明度"] = "Opacity when ready"
L["小玩意儿"] = "Stuff"
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r的各种实用便利小功能."] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r some useful stuff."
L["通报"] = "Announce"
L["打断通报,打断、驱散、进出战斗文字提示"] = "Announce of interrupt, dispel and combat status"
L["拍卖行"] = "AH"
L["Shift + 右键直接一口价,价格上限请在misc/auction.lua里设置"] = "Shift + Right to buy things directly, change the price limit in misc/auction.lua"
L["自动贪婪"] = "Auto greed"
L["满级之后自动贪婪/分解绿装"] = "Auto greed when you arrive max level"
L["自动释放尸体"] = "Auto release body"
L["战场中自动释放尸体"] = "Auto release body in battlegrounds"
L["商人"] = "Merchant"
L["自动修理、自动卖灰色物品"] = "Auto repair, auto sell greys"
L["补购毒药"] = true
L["自动补购毒药,数量在misc/merchant.lua里修改"] = true
L["任务"] = "Quest"
L["任务等级,进/出副本自动收起/展开任务追踪,任务面板的展开/收起全部分类按钮"] = "Display quest level, in/out dungeon fold/unfold the tracker, the button to unfold/fold all the quest categories."
L["自动交接任务"] = "Auto get/complete quests"
L["自动交接任务,按shift点npc则不自动交接"] = "Disable auto get/complete quests when Shift down."
L["buff提醒"] = "Buff reminder"
L["缺失重要buff时提醒"] = "Remind when missing important buffs"
L["团队buff提醒"] = "Raid Buff reminder"
L["单人隐藏团队buff提醒"] = "Auto hide when solo"
L["持续时间"] = "Time remaining"
L["图标上显示持续时间"]= "Display time remaining over icon"
L["整合buff"] = "Compact BUFF"
L["隐藏在团队buff提醒中显示的buff"]= "Hide the buff that displayed at RaidBuffReminder"
L["自动邀请"] = "Auto invite"
L["自动接受邀请"] = "Auto accept invite"
L["自动接受公会成员、好友及实名好友的组队邀请"] = "Auto accept invite send by guild members and friends"
L["自动邀请组队"] = "Auto invite others"
L["当他人密语自动邀请关键字时会自动邀请他组队"] = "Auto invite others when received wisper with keyword"
L["自动邀请关键字"] = "Keywords for auto invite"
L["设置自动邀请的关键字,多个关键字用空格分割"] = "Set the Keywords for auto invite, separate by space."
L["团队技能冷却"] = "RAID Spell CD"
L["图腾条"] = "Totem Bar"
L["排序方向"] = "Sort Direction"
L["正向"] = "Ascending"
L["逆向"] = "Descending"
L["排列方向"] = "Bar Direction"
L["垂直"] = "Vertical"
L["水平"] = "Horizontal"
L["横向增长方向"] = "Growth-x"
L["纵向增长方向"] = "Growth-y"
L["显示宠物技能冷却"] = "Show pet cooldown"
L["显示装备冷却"] = "Show equipment cooldown"
L["显示物品冷却"] = "Show item cooldown"
L["插件美化"] = "Reskin"
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r插件美化模块."] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r Reskin module."
L["Skada"] = true
L["固定Skada位置"] = "Pin Skada"
L["DBM"] = true
L["固定DBM位置"] = "Pin DBM"
L["ACE3控制台"] = "ACE3 console"
L["ACP"] = true
L["Atlasloot"] = true
L["BigWigs"] = true
L["法术监视"] = "Sepll watch"
L["中部冷却闪光"] = "Middle CD Reminder"
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r中部冷却闪光模块, 技能冷却结束时在屏幕中部显示闪烁技能图标."] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r Middle CD Reminder Module, Blink spell icon at middle of screen when spell CD."
L["图标大小"] = "Icon size"
L["淡入时间"] = "Fadein duration"
L["淡出时间"] = "Fadeout duration"
L["最大透明度"] = "Max transparent"
L["持续时间"] = "Duration time"
L["动画大小"] = "Animation size"
L["显示法术名称"] = "Display spell name"
L["监视宠物技能"] = "Watch on pet spell"
L["测试"] = "Test"
L["背包"] = "Bags"
L["|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r背包模块."] = "|cff7aa6d6Ray|r|cffff0000U|r|cff7aa6d6I|r Bags module."
L["背包格大小"] = "Size of slot in bags"
L["银行格大小"] = "Size of slot in bank"
L["逆序整理"] = "Order by desc"
L["背包面板宽度"] = "BagsFrame width"
L["银行面板宽度"] = "BankFrame width"
L["显示物品等级"] = "Show item level"
end
do
L["选项"] = "Settings"
L["选择一个分组"] = "Choose a group"
L["启用该组"] = "Enable the group"
L["模式"] = "Mode"
L["图标"] = "Icon"
L["计时条"] = "TimeBar"
L["增长方向"] = "Grow up direction"
L["上"] = "Up"
L["下"] = "Down"
L["左"] = "Left"
L["右"] = "Right"
L["图标大小"] = "Icon size"
L["计时条长度"] = "TimeBar width"
L["图标位置"] = "Icon position"
L["已有增益监视"] = "Having BUFF monitor"
L["已有减益监视"] = "Having DEBUFF monitor"
L["已有冷却监视"] = "Running CD monitor"
L["已有物品冷却监视"] = "Running item CD monitor"
L["ID"] = true
L["类型"] = "Type"
L["增益"] = "BUFF"
L["减益"] = "DEBUFF"
L["冷却"] = "CD"
L["物品冷却"] = "Items CD"
L["监视对象"] = "Monitor target"
L["玩家"] = "Player"
L["目标"] = "Target"
L["焦点"] = "Focus"
L["宠物"] = "Pet"
L["任何人"] = "Anyone"
L["施法者"] = "Caster"
L["模糊匹配"] = "Fuzzy match"
L["匹配所有相同名字的法术"] = "Only match by name"
L["添加/编辑"] = "Add/Edit"
L["添加到当前分组或编辑当前列表中已有法术"] = "Add spell to current group or edit current group"
L["你不能删除一个内建的法术,已停用此技能。"] = "You may not remove a spell from a default filter that is not customly added. Setting spell to false instead."
L["删除"] = "Delete"
L["从当前分组删除"] = "Delete from current group"
end
do
L["RayUI提示"] = "RayUI tips"
L["不再提示"] = "Disable tips"
L["到 https://github.com/fgprodigal/RayUI 创建issue来反馈问题"] = "Visit https://github.com/fgprodigal/RayUI to feedback issues"
L["找不到微型菜单? 中键点击小地图试试"] = "Can't find the micro menu? Try to click Middle button over Minimap."
end
do
L["飞行"] = "Fly"
L["地面"] = "Ground"
L["飞行 & 地面"] = "Fly & Ground"
L["游泳"] = "Swim"
L["未知"]= "Unknow"
end
do
L["RayUI布局选择"] = "RayUI Layout choose"
L["欢迎使用RayUI, 请选择一个布局开始使用."] = "Thanks for using RayUI, choose a layout to start."
L["默认"] = "Default"
L["伤害输出"] = "DPS"
L["治疗"] = "Healer"
L["(未完成)"] = "(Soon)"
L["设置完成"] = "Completed"
end
do
L["你的%s栏位需要修理, 当前耐久为%d."] = "%s slot needs to repair, current durability is %d."
L["你有%s个未处理的活动邀请."] = "You have %s pending calendar invite(s)."
L["你有%s个未处理的公会活动邀请."] = "You have %s pending guild event(s)."
L["活动\"%s\"今天结束."] = "event \"%s\" will end today."
L["活动\"%s\"明天结束."] = "event \"%s\" will end tomorrow."
L["活动\"%s\"今天开始."] = "event \"%s\" started today."
L["活动\"%s\"正在进行."] = "event \"%s\" is ongoing."
end
do
L["灵魂"] = "Ghost"
L["离线"] = "Offline"
end
do
L["战斗文字"] = "CombatText"
L["RayUI_CombatText_OutGoing"] = "Combat Text(outgoing)"
L["RayUI_CombatText_InComing"] = "Combat Text(incoming)"
L["RayUI_CombatText_Healing"] = "Combat Text(healing)"
L["RayUI_CombatText_Message"] = "Combat Text(message)"
L["RayUI_CombatText_Power"] = "Combat Text(power)"
end
| mit |
winnerineast/Origae-6 | origae/tools/torch/main.lua | 1 | 35300 | -- Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved.
require 'torch'
require 'xlua'
require 'optim'
require 'pl'
require 'trepl'
require 'lfs'
require 'nn'
local dir_path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]]
if dir_path ~= nil then
package.path = dir_path .."?.lua;".. package.path
end
require 'Optimizer'
require 'LRPolicy'
require 'logmessage'
-- load utils
local utils = require 'utils'
----------------------------------------------------------------------
opt = lapp[[
Usage details:
-a,--threads (default 8) number of threads
-b,--batchSize (default 0) batch size
-c,--learningRateDecay (default 1e-6) learning rate decay (in # samples)
-e,--epoch (default 1) number of epochs to train -1 for unbounded
-f,--shuffle (default no) shuffle records before train
-i,--interval (default 1) number of train epochs to complete, to perform one validation
-k,--crop (default no) If this option is 'yes', all the images are randomly cropped into square image. And croplength is provided as --croplen parameter
-l,--croplen (default 0) crop length. This is required parameter when crop option is provided
-m,--momentum (default 0.9) momentum
-n,--network (string) Model - must return valid network. Available - {lenet, googlenet, alexnet}
-o,--optimization (default sgd) optimization method
-p,--type (default cuda) float or cuda
-r,--learningRate (default 0.001) learning rate
-s,--save (default results) save directory
-t,--train (default '') location in which train db exists. This parameter may be omitted only if visualizeModel is 'yes'.
-v,--validation (default '') location in which validation db exists.
-w,--weightDecay (default 1e-4) L2 penalty on the weights
--augFlip (default none) options {none, fliplr, flipud, fliplrud} as random pre-processing augmentation
--augQuadRot (default none) options {none, rot90, rot180, rotall} as random pre-processing augmentation
--augRot (default 0.0) min and max rotation (degrees) of arbitrary uniform-rotation as pre-processing augmentation
--augScale (default 0.0) stddev of Scale as pre-processing augmentation
--augNoise (default 0.0) stddev of Noise in AWGN as pre-processing augmentation
--augHSVh (default 0.0) stddev of HSV's Hue shift as pre-processing augmentation
--augHSVs (default 0.0) stddev of HSV's Saturation shift as pre-processing augmentation
--augHSVv (default 0.0) stddev of HSV's Value shift as pre-processing augmentation
--train_labels (default '') location in which train labels db exists. Optional, use this if train db does not contain target labels.
--validation_labels (default '') location in which validation labels db exists. Optional, use this if validation db does not contain target labels.
--dbbackend (default 'lmdb') Specifies which DB backend was used to create datasets. Valid backends: hdf5, lmdb
--seed (default '') fixed input seed for repeatable experiments
--weights (default '') filename for weights of a model to use for fine-tuning
--retrain (default '') Specifies path to model to retrain with
--optimState (default '') Specifies path to an optimState to reload from
--randomState (default '') Specifies path to a random number state to reload from
--lrpolicyState (default '') Specifies path to a lrpolicy state to reload from
--networkDirectory (default '') directory in which network exists
--mean (default '') mean image file.
--subtractMean (default 'image') Select mean subtraction method. Possible values are 'image', 'pixel' or 'none'.
--labels (default '') file contains label definitions
--snapshotPrefix (default '') prefix of the weights/snapshots
--snapshotInterval (default 1) specifies the training epochs to be completed before taking a snapshot
--visualizeModel (default 'no') Visualize model. If this options is set to 'yes' no model will be trained.
-q,--policy (default torch_sgd) Learning Rate Policy. Valid policies : fixed, step, exp, inv, multistep, poly, sigmoid and torch_sgd. Note: when power value is -1, then "inv" policy with "gamma" is similar to "torch_sgd" with "learningRateDecay".
-h,--gamma (default -1) Required to calculate learning rate, when any of the following learning rate policies are used: step, exp, inv, multistep & sigmoid
-j,--power (default inf) Required to calculate learning rate, when any of the following learning rate policies are used: inv & poly
-x,--stepvalues (default '') Required to calculate stepsize for the following learning rate policies: step, multistep & sigmoid. Note: if it is 'step' or 'sigmoid' policy, then this parameter expects single value, if it is 'multistep' policy, then this parameter expects a string which has all the step values delimited by comma (ex: "10,25,45,80")
]]
-----------------------------------------------------------------------------------------------------------------------------
--Note: At present Origae-6 supports only fine tuning, which means copying only the weights from pretrained model.
--
--To include "crash recovery" feature, we may need to save the below torch elements for every fixed duration (or) for every fixed epochs (for instance 30 minutes or 10 epochs).
--
-- trained model
-- SGD optim state
-- LRPolicy - this module helps in implementing caffe learning policies in Torch
-- Random number state
--
--And if the job was crashed, provide the saved backups using the command options (--retrain, --optimState, --randomState, --lrpolicyState) while restarting the job.
--
--Please refer to below links for more information about "crash recovery" feature:
-- 1) https://groups.google.com/forum/#!searchin/torch7/optimstate/torch7/uNxnrH-7C-4/pgIBdAFVaOYJ
-- 2) https://groups.google.com/forum/#!topic/torch7/fcy0-5v6M08
-- 3) https://groups.google.com/forum/#!searchin/torch7/optimstate/torch7/Gv1BiQoaIVA/HRnjRoegR38J
--
--Almost all the required routines are already implemented. Below are some remaining tasks,
-- 1) while recovering from crash, we should only consider the below options and discard all other inputs like epoch
-- --retrain, --optimState, --randomState, --lrpolicyState, --networkDirectory, --network, --save, --train, --validation, --mean, --labels, --snapshotPrefix
-- 2) We should also save and restore some information like epoch, batch size, snapshot interval, subtractMean, shuffle, mirror, crop, croplen
-- Precautions should be taken while restoring these options.
-----------------------------------------------------------------------------------------------------------------------------
COMPUTE_TRAIN_ACCURACY = false
----------------------------------------------------------------------
-- Initial parameter checks
-- Convert boolean options
opt.crop = opt.crop == 'yes' or false
opt.shuffle = opt.shuffle == 'yes' or false
opt.visualizeModel = opt.visualizeModel == 'yes' or false
-- Set the seed of the random number generator to the given number.
if opt.seed ~= '' then
torch.manualSeed(tonumber(opt.seed))
end
-- validate options
if opt.crop and opt.croplen == 0 then
logmessage.display(2,'crop length is missing')
os.exit(-1)
end
local stepvalues_list = {}
-- verify whether required learning rate parameters are provided to calculate learning rate when caffe-like learning rate policies are used
if opt.policy == 'fixed' or opt.policy == 'step' or opt.policy == 'exp' or opt.policy == 'inv' or opt.policy == 'multistep' or opt.policy == 'poly' or opt.policy == 'sigmoid' then
if opt.policy == 'step' or opt.policy == 'exp' or opt.policy == 'inv' or opt.policy == 'multistep' or opt.policy == 'sigmoid' then
if opt.gamma ==-1 then
logmessage.display(2,'gamma parameter missing and is required to calculate learning rate when ' .. opt.policy .. ' learning rate policy is used')
os.exit(-1)
end
end
if opt.policy == 'inv' or opt.policy == 'poly' then
if opt.power == math.huge then
logmessage.display(2,'power parameter missing and is required to calculate learning rate when ' .. opt.policy .. ' learning rate policy is used')
os.exit(-1)
end
end
if opt.policy == 'step' or opt.policy == 'multistep' or opt.policy == 'sigmoid' then
if opt.stepvalues =='' then
logmessage.display(2,'step parameter missing and is required to calculate learning rate when ' .. opt.policy .. ' learning rate policy is used')
os.exit(-1)
else
for i in string.gmatch(opt.stepvalues, '([^,]+)') do
if tonumber(i) ~= nil then
table.insert(stepvalues_list, tonumber(i))
else
logmessage.display(2,'invalid step parameter value : ' .. opt.stepvalues .. '. step parameter should contain only number. if there are more than one value, then the values should be delimited by comma. ex: "10" or "10,25,45,80"')
os.exit(-1)
end
end
end
end
elseif opt.policy ~= 'torch_sgd' then
logmessage.display(2,'invalid learning rate policy - '.. opt.policy .. '. Valid policies : fixed, step, exp, inv, multistep, poly, sigmoid and torch_sgd')
os.exit(-1)
end
if opt.retrain ~= '' and opt.weights ~= '' then
logmessage.display(2,"Both '--retrain' and '--weights' options cannot be used at the same time.")
os.exit(-1)
end
if opt.randomState ~= '' and opt.seed ~= '' then
logmessage.display(2,"Both '--randomState' and '--seed' options cannot be used at the same time.")
os.exit(-1)
end
torch.setnumthreads(opt.threads)
----------------------------------------------------------------------
-- Open Data sources:
-- mean tensor,
-- training database and optionally: labels,
-- optionally: validation database and labels.
local data = require 'data'
local meanTensor
if opt.subtractMean ~= 'none' then
assert(opt.mean ~= '', 'subtractMean parameter not set to "none" yet mean image path is unset')
logmessage.display(0,'Loading mean tensor from '.. opt.mean ..' file')
meanTensor = data.loadMean(opt.mean, opt.subtractMean == 'pixel')
end
local classes
local trainConfusion
local valConfusion
if opt.labels ~= '' then
logmessage.display(0,'Loading label definitions from '.. opt.labels ..' file')
-- classes
classes = data.loadLabels(opt.labels)
if classes == nil then
logmessage.display(2,'labels file '.. opt.labels ..' not found')
os.exit(-1)
end
-- This matrix records the current confusion across classes
trainConfusion = optim.ConfusionMatrix(classes)
-- separate validation matrix for validation data
valConfusion = nil
if opt.validation ~= '' then
valConfusion = optim.ConfusionMatrix(classes)
end
logmessage.display(0,'found ' .. #classes .. ' categories')
end
logmessage.display(0,'creating data readers')
-- DataLoader objects take care of loading data from
-- databases. Data loading and tensor manipulations
-- (e.g. cropping, mean subtraction, mirroring) are
-- performed from separate threads
local trainDataLoader, trainSize, inputTensorShape
local valDataLoader, valSize
local num_threads_data_loader = 4
if opt.train ~= '' then
-- create data loader for training dataset
trainDataLoader = DataLoader:new(
num_threads_data_loader, -- num threads
package.path,
opt.dbbackend, opt.train, opt.train_labels,
meanTensor,
true, -- train
opt.shuffle,
classes ~= nil -- whether this is a classification task
)
-- retrieve info from train DB (number of records and shape of input tensors)
trainSize, inputTensorShape = trainDataLoader:getInfo()
logmessage.display(0,'found ' .. trainSize .. ' images in train db' .. opt.train)
if opt.validation ~= '' then
local shape
valDataLoader = DataLoader:new(
num_threads_data_loader, -- num threads
package.path,
opt.dbbackend, opt.validation, opt.validation_labels,
meanTensor,
false, -- train
false, -- shuffle
classes ~= nil -- whether this is a classification task
)
valSize, shape = valDataLoader:getInfo()
logmessage.display(0,'found ' .. valSize .. ' images in train db' .. opt.validation)
end
else
assert(opt.visualizeModel, 'Train DB should be specified')
end
-- update inputTensorShape if crop length specified
-- this is necessary as the inputTensorShape is provided
-- below to the user-defined function that defines the network
if opt.crop and inputTensorShape then
inputTensorShape[2] = opt.croplen
inputTensorShape[3] = opt.croplen
end
local nGpus = 0
if opt.type =='cuda' then
require 'cunn'
require 'cutorch'
nGpus = cutorch.getDeviceCount()
end
----------------------------------------------------------------------
-- Model + Loss:
-- this is where we retrieve the network definition
-- from the user-defined function
package.path = paths.concat(opt.networkDirectory, "?.lua") ..";".. package.path
logmessage.display(0,'Loading network definition from ' .. paths.concat(opt.networkDirectory, opt.network))
local network_func = require (opt.network)
assert(type(network_func)=='function', "Network definition should return a Lua function - see documentation")
local parameters = {
nclasses = (classes ~= nil) and #classes or nil,
ngpus = nGpus,
inputShape = inputTensorShape
}
network = network_func(parameters)
local model = network.model
-- embed model in parallel table unless explicitly disallowed in user-defined description
if nGpus > 1 and not network.disableAutoDataParallelism then
local gpus = torch.range(1, nGpus):totable()
model = nn.DataParallelTable(1, true, true):add(model, gpus)
end
-- if the loss criterion was not defined in the network
-- use nn.ClassNLLCriterion() by default
local loss = network.loss or nn.ClassNLLCriterion()
-- if the crop length was not defined on command line then
-- check if the network defined a preferred crop length
if not opt.crop and network.croplen then
opt.crop = true
opt.croplen = network.croplen
end
-- if batch size was not specified on command line then check
-- whether the network defined a preferred batch size (there
-- can be separate batch sizes for the training and validation
-- sets)
local trainBatchSize
local valBatchSize
if opt.batchSize==0 then
local defaultBatchSize = 16
trainBatchSize = network.trainBatchSize or defaultBatchSize
valBatchSize = network.validationBatchSize or defaultBatchSize
else
trainBatchSize = opt.batchSize
valBatchSize = opt.batchSize
end
logmessage.display(0,'Train batch size is '.. trainBatchSize .. ' and validation batch size is ' .. valBatchSize)
-- if we were instructed to print a visualization of the model,
-- do it now and return immediately
if opt.visualizeModel then
logmessage.display(0,'Network definition:')
print('\nModel: \n' .. model:__tostring())
print('\nCriterion: \n' .. loss:__tostring())
logmessage.display(0,'Network definition ends')
os.exit(0)
end
-- NOTE: currently randomState option wasn't used in Origae-6. This option was provided to be used from command line, if required.
-- load random number state from backup
if opt.randomState ~= '' then
if paths.filep(opt.randomState) then
logmessage.display(0,'Loading random number state - ' .. opt.randomState)
torch.setRNGState(torch.load(opt.randomState))
else
logmessage.display(2,'random number state not found: ' .. opt.randomState)
os.exit(-1)
end
end
----------------------------------------------------------------------
-- NOTE: currently retrain option wasn't used in Origae-6. This option was provided to be used from command line, if required.
-- If preloading option is set, preload existing models appropriately
if opt.retrain ~= '' then
if paths.filep(opt.retrain) then
logmessage.display(0,'Loading pretrained model - ' .. opt.retrain)
model = torch.load(opt.retrain)
else
logmessage.display(2,'Pretrained model not found: ' .. opt.retrain)
os.exit(-1)
end
end
logmessage.display(0,'Network definition: \n' .. model:__tostring())
logmessage.display(0,'Network definition ends')
local function saveModel(model, directory, prefix, epoch)
local filename
local modelObjectToSave
if model.clearState then
-- save the full model
filename = paths.concat(directory, prefix .. '_' .. epoch .. '_Model.t7')
modelObjectToSave = model:clearState()
else
-- this version of Torch doesn't support clearing the model state => save only the weights
local Weights,Gradients = model:getParameters()
filename = paths.concat(directory, prefix .. '_' .. epoch .. '_Weights.t7')
modelObjectToSave = Weights
end
logmessage.display(0,'Snapshotting to ' .. filename)
torch.save(filename, modelObjectToSave)
logmessage.display(0,'Snapshot saved - ' .. filename)
end
local function switchType(newType, model, loss)
if newType == 'float' then
logmessage.display(0,'switching to floats')
torch.setdefaulttensortype('torch.FloatTensor')
model:float()
loss = loss:float()
elseif newType =='cuda' then
cutorch.setDevice(1)
logmessage.display(0,'switching to CUDA')
model:cuda()
loss = loss:cuda()
end
return loss
end
-- If weights option is set, preload weights from existing models appropriately
if opt.weights ~= '' then
if paths.filep(opt.weights) then
logmessage.display(0,'Loading weights from pretrained model - ' .. opt.weights)
if (string.find(opt.weights, '_Weights')) then
local w, grad = model:getParameters()
w:copy(torch.load(opt.weights))
else
-- the full model was saved
assert(string.find(opt.weights, '_Model'))
if nn.DataParallelTable then
-- set number of GPUs to use when deserializing model
nn.DataParallelTable.deserializeNGPUs = nGpus
end
model = torch.load(opt.weights)
network.model = model
end
else
logmessage.display(2,'Weight file for pretrained model not found: ' .. opt.weights)
os.exit(-1)
end
end
-- allow user to fine tune model (this needs to be done *after* we have loaded the snapshot)
if network.fineTuneHook then
logmessage.display(0,'Calling user-defined fine tuning hook...')
model = network.fineTuneHook(model)
logmessage.display(0,'Network definition: \n' .. model:__tostring())
logmessage.display(0,'Network definition ends')
end
-- switch to float or cuda
loss = switchType(opt.type, model, loss)
-- get model parameters
local Weights,Gradients = model:getParameters()
-- create a directory, if not exists, to save all the snapshots
-- os.execute('mkdir -p ' .. paths.concat(opt.save)) -- commented this line, as os.execute command is not portable
if lfs.mkdir(paths.concat(opt.save)) then
logmessage.display(0,'created a directory ' .. paths.concat(opt.save) .. ' to save all the snapshots')
end
-- validate "crop length" input parameter
if opt.crop and inputTensorShape then
assert(opt.croplen <= math.min(inputTensorShape[2], inputTensorShape[3]), 'croplen parameter is bigger than input image size')
end
-- Set up augmentation options
augOpt = { augFlip = opt.augFlip,
augQuadRot = opt.augQuadRot,
augRot = opt.augRot,
augScale = opt.augScale,
augNoise = opt.augNoise,
augHSV = {H=opt.augHSVh, S=opt.augHSVs, V=opt.augHSVv},
crop = {use=opt.crop, Y=-1, X=-1, len=opt.croplen},
}
logmessage.display(0, 'augOpt:' .. table.concat(augOpt))
trainDataLoader:setDataAugmentation(augOpt)
if valDataLoader then
-- Note the valDataLoader will automatically nullify certain augmentation options because it knows it is the validation loader due to the test parameter
valDataLoader:setDataAugmentation(augOpt)
end
--modifying total sizes of train and validation dbs to be the exact multiple of 32, when cc2 is used
if ccn2 ~= nil then
if (trainSize % 32) ~= 0 then
logmessage.display(1,'when ccn2 is used, total images should be the exact multiple of 32. In train db, as the total images are ' .. trainSize .. ', skipped the last ' .. trainSize % 32 .. ' images from train db')
trainSize = trainSize - (trainSize % 32)
end
if opt.validation ~= '' and (valSize % 32) ~=0 then
logmessage.display(1,'when ccn2 is used, total images should be the exact multiple of 32. In validation db, as the total images are ' .. valSize .. ', skipped the last ' .. valSize % 32 .. ' images from validation db')
valSize = valSize - (valSize % 32)
end
end
--initializing learning rate policy
logmessage.display(0,'initializing the parameters for learning rate policy: ' .. opt.policy)
local lrpolicy = {}
if opt.policy ~= 'torch_sgd' then
local max_iterations = (math.ceil(trainSize/trainBatchSize))*opt.epoch
--local stepsize = math.floor((max_iterations*opt.step/100)+0.5) --adding 0.5 to round the value
if max_iterations < #stepvalues_list then
logmessage.display(1,'maximum iterations (i.e., ' .. max_iterations .. ') is less than provided step values count (i.e, ' .. #stepvalues_list .. '), so learning rate policy is reset to "step" policy with the step value 1.')
opt.policy = 'step'
stepvalues_list[1] = 1
else
-- converting stepsize percentages into values
for i=1,#stepvalues_list do
stepvalues_list[i] = utils.round(max_iterations*stepvalues_list[i]/100)
-- avoids 'nan' values during learning rate calculation
if stepvalues_list[i] == 0 then
stepvalues_list[i] = 1
end
end
end
lrpolicy = LRPolicy{
policy = opt.policy,
baselr = opt.learningRate,
gamma = opt.gamma,
power = opt.power,
max_iter = max_iterations,
step_values = stepvalues_list
}
else
lrpolicy = LRPolicy{
policy = opt.policy,
baselr = opt.learningRate
}
end
-- NOTE: currently lrpolicyState option wasn't used in Origae-6. This option was provided to be used from command line, if required.
if opt.lrpolicyState ~= '' then
if paths.filep(opt.lrpolicyState) then
logmessage.display(0,'Loading lrpolicy state from file: ' .. opt.lrpolicyState)
lrpolicy = torch.load(opt.lrpolicyState)
else
logmessage.display(2,'lrpolicy state file not found: ' .. opt.lrpolicyState)
os.exit(-1)
end
end
--resetting "learningRateDecay = 0", so that sgd.lua won't recalculates the learning rate
if lrpolicy.policy ~= 'torch_sgd' then
opt.learningRateDecay = 0
end
local optimState = {
learningRate = opt.learningRate,
momentum = opt.momentum,
weightDecay = opt.weightDecay,
learningRateDecay = opt.learningRateDecay
}
-- NOTE: currently optimState option wasn't used in Origae-6. This option was provided to be used from command line, if required.
if opt.optimState ~= '' then
if paths.filep(opt.optimState) then
logmessage.display(0,'Loading optimState from file: ' .. opt.optimState)
optimState = torch.load(opt.optimState)
-- this makes sure that sgd.lua won't recalculates the learning rate while using learning rate policy
if lrpolicy.policy ~= 'torch_sgd' then
optimState.learningRateDecay = 0
end
else
logmessage.display(1,'Optim state file not found: ' .. opt.optimState) -- if optim state file isn't found, notify user and continue training
end
end
local function updateConfusion(y,yt)
if trainConfusion ~= nil then
trainConfusion:batchAdd(y,yt)
end
end
local labelFunction = network.labelHook or function (input, dblabel) return dblabel end
-- Optimization configuration
logmessage.display(0,'initializing the parameters for Optimizer')
local optimizer = Optimizer{
Model = model,
Loss = loss,
--OptFunction = optim.sgd,
OptFunction = _G.optim[opt.optimization],
OptState = optimState,
Parameters = {Weights, Gradients},
HookFunction = COMPUTE_TRAIN_ACCURACY and updateConfusion or nil,
lrPolicy = lrpolicy,
LabelFunction = labelFunction,
}
-- During training, loss rate should be displayed at max 8 times or for every 5000 images, whichever lower.
local logging_check = 0
if (math.ceil(trainSize/8)<5000) then
logging_check = math.ceil(trainSize/8)
else
logging_check = 5000
end
logmessage.display(0,'During training. details will be logged after every ' .. logging_check .. ' images')
-- This variable keeps track of next epoch, when to perform validation.
local next_validation = opt.interval
logmessage.display(0,'Training epochs to be completed for each validation : ' .. opt.interval)
local last_validation_epoch = 0
-- This variable keeps track of next epoch, when to save model weights.
local next_snapshot_save = opt.snapshotInterval
logmessage.display(0,'Training epochs to be completed before taking a snapshot : ' .. opt.snapshotInterval)
local last_snapshot_save_epoch = 0
local snapshot_prefix = ''
if opt.snapshotPrefix ~= '' then
snapshot_prefix = opt.snapshotPrefix
else
snapshot_prefix = opt.network
end
-- epoch value will be calculated for every batch size. To maintain unique epoch value between batches, it needs to be rounded to the required number of significant origae.
local epoch_round = 0 -- holds the required number of significant origae for round function.
local tmp_batchsize = trainBatchSize
while tmp_batchsize <= trainSize do
tmp_batchsize = tmp_batchsize * 10
epoch_round = epoch_round + 1
end
logmessage.display(0,'While logging, epoch value will be rounded to ' .. epoch_round .. ' significant origae')
--[[ -- NOTE: uncomment this block when "crash recovery" feature was implemented
logmessage.display(0,'model, lrpolicy, optim state and random number states will be saved for recovery from crash')
logmessage.display(0,'model will be saved as ' .. snapshot_prefix .. '_<EPOCH>_model.t7')
logmessage.display(0,'optim state will be saved as optimState_<EPOCH>.t7')
logmessage.display(0,'random number state will be saved as randomState_<EPOCH>.t7')
logmessage.display(0,'LRPolicy state will be saved as lrpolicy_<EPOCH>.t7')
--]]
-- NOTE: currently this routine wasn't used in Origae-6.
-- This routine takes backup of model, optim state, LRPolicy and random number state
local function backupforrecovery(backup_epoch)
-- save model
local filename = paths.concat(opt.save, snapshot_prefix .. '_' .. backup_epoch .. '_model.t7')
logmessage.display(0,'Saving model to ' .. filename)
utils.cleanupModel(model)
torch.save(filename, model)
logmessage.display(0,'Model saved - ' .. filename)
--save optim state
filename = paths.concat(opt.save, 'optimState_' .. backup_epoch .. '.t7')
logmessage.display(0,'optim state saving to ' .. filename)
torch.save(filename, optimState)
logmessage.display(0,'optim state saved - ' .. filename)
--save random number state
filename = paths.concat(opt.save, 'randomState_' .. backup_epoch .. '.t7')
logmessage.display(0,'random number state saving to ' .. filename)
torch.save(filename, torch.getRNGState())
logmessage.display(0,'random number state saved - ' .. filename)
--save lrPolicy state
filename = paths.concat(opt.save, 'lrpolicy_' .. backup_epoch .. '.t7')
logmessage.display(0,'lrpolicy state saving to ' .. filename)
torch.save(filename, optimizer.lrPolicy)
logmessage.display(0,'lrpolicy state saved - ' .. filename)
end
-- Validation function
local function Validation(model, loss, epoch, data_loader, data_size, batch_size, confusion, label_function)
-- switch model to evaluation mode
model:evaluate()
local batch_count = 0
local loss_sum = 0
local data_index = 1
local data = {}
if confusion ~= nil then
confusion:zero()
end
local count = 1
while count <= data_size do
-- create mini batch
while data_loader:acceptsjob() do
local curr_batch_size = math.min(data_size - data_index + 1, batch_size)
if curr_batch_size > 0 then
data_loader:scheduleNextBatch(curr_batch_size, data_index, data, true)
data_index = data_index + curr_batch_size
else break end
end
-- wait for next data loader job to complete
data_loader:waitNext()
-- get data from last load job
local data_batch_size = data.batchSize
local inputs = data.inputs
local targets = data.outputs
if inputs ~= nil then
if opt.type == 'cuda' then
inputs = inputs:cuda()
targets = targets:cuda()
else
inputs = inputs:float()
targets = targets:float()
end
local y = model:forward(inputs)
local labels = label_function(inputs, targets)
local err = loss:forward(y, labels)
loss_sum = loss_sum + err
if confusion ~= nil then
confusion:batchAdd(y, labels)
end
batch_count = batch_count + 1
if math.fmod(batch_count, 50) == 0 then
collectgarbage()
end
count = count + data_batch_size
else
-- failed to read from database (possibly due to disabled thread)
data_index = data_index - data_batch_size
end
end
local avg_loss = batch_count > 0 and loss_sum / batch_count or 0
if confusion ~= nil then
confusion:updateValids()
logmessage.display(0, 'Validation (epoch ' .. epoch .. '): loss = ' .. avg_loss .. ', accuracy = ' .. confusion.totalValid)
else
logmessage.display(0, 'Validation (epoch ' .. epoch .. '): loss = ' .. avg_loss)
end
end
-- Train function
local function Train(epoch, dataLoader)
model:training()
local NumBatches = 0
local curr_images_cnt = 0
local loss_sum = 0
local loss_batches_cnt = 0
local learningrate = 0
local inputs, targets
local dataLoaderIdx = 1
local data = {}
local t = 1
while t <= trainSize do
while dataLoader:acceptsjob() do
local dataBatchSize = math.min(trainSize-dataLoaderIdx+1,trainBatchSize)
if dataBatchSize > 0 then
dataLoader:scheduleNextBatch(dataBatchSize, dataLoaderIdx, data, true)
dataLoaderIdx = dataLoaderIdx + dataBatchSize
else break end
end
NumBatches = NumBatches + 1
-- wait for next data loader job to complete
dataLoader:waitNext()
-- get data from last load job
local thisBatchSize = data.batchSize
inputs = data.inputs
targets = data.outputs
if inputs then
--[=[
-- print some statistics, show input in iTorch
if t%1024==1 then
print(string.format("input mean=%f std=%f",inputs:mean(),inputs:std()))
for idx=1,thisBatchSize do
print(classes[targets[idx]])
end
if itorch then
itorch.image(inputs)
end
end
--]=]
if opt.type =='cuda' then
inputs = inputs:cuda()
targets = targets:cuda()
else
inputs = inputs:float()
targets = targets:float()
end
_,learningrate,_,trainerr = optimizer:optimize(inputs, targets)
-- adding the loss values of each mini batch and also maintaining the counter for number of batches, so that average loss value can be found at the time of logging details
loss_sum = loss_sum + trainerr[1]
loss_batches_cnt = loss_batches_cnt + 1
if math.fmod(NumBatches,50)==0 then
collectgarbage()
end
local current_epoch = (epoch-1)+utils.round((math.min(t+trainBatchSize-1,trainSize))/trainSize, epoch_round)
-- log details on first iteration, or when required number of images are processed
curr_images_cnt = curr_images_cnt + thisBatchSize
if (epoch==1 and t==1) or curr_images_cnt >= logging_check then
logmessage.display(0, 'Training (epoch ' .. current_epoch .. '): loss = ' .. (loss_sum/loss_batches_cnt) .. ', lr = ' .. learningrate)
curr_images_cnt = 0 -- For accurate values we may assign curr_images_cnt % logging_check to curr_images_cnt, instead of 0
loss_sum = 0
loss_batches_cnt = 0
end
if opt.validation ~= '' and current_epoch >= next_validation then
Validation(model, loss, current_epoch, valDataLoader, valSize, valBatchSize, valConfusion, labelFunction)
next_validation = (utils.round(current_epoch/opt.interval) + 1) * opt.interval -- To find next nearest epoch value that exactly divisible by opt.interval
last_validation_epoch = current_epoch
model:training() -- to reset model to training
end
if current_epoch >= next_snapshot_save then
saveModel(model, opt.save, snapshot_prefix, current_epoch)
next_snapshot_save = (utils.round(current_epoch/opt.snapshotInterval) + 1) * opt.snapshotInterval -- To find next nearest epoch value that exactly divisible by opt.snapshotInterval
last_snapshot_save_epoch = current_epoch
end
t = t + thisBatchSize
else
-- failed to read from database (possibly due to disabled thread)
dataLoaderIdx = dataLoaderIdx - data.batchSize
end
end
--xlua.progress(trainSize, trainSize)
end
------------------------------
local epoch = 1
logmessage.display(0,'started training the model')
-- run an initial validation before the first train epoch
if opt.validation ~= '' then
Validation(model, loss, 0, valDataLoader, valSize, valBatchSize, valConfusion, labelFunction)
end
while epoch<=opt.epoch do
local ErrTrain = 0
if trainConfusion ~= nil then
trainConfusion:zero()
end
Train(epoch, trainDataLoader)
if trainConfusion ~= nil then
trainConfusion:updateValids()
--print(trainConfusion)
ErrTrain = (1-trainConfusion.totalValid)
end
epoch = epoch+1
end
-- if required, perform validation at the end
if opt.validation ~= '' and opt.epoch > last_validation_epoch then
Validation(model, loss, opt.epoch, valDataLoader, valSize, valBatchSize, valConfusion, labelFunction)
end
-- if required, save snapshot at the end
if opt.epoch > last_snapshot_save_epoch then
saveModel(model, opt.save, snapshot_prefix, opt.epoch)
end
-- close databases
trainDataLoader:close()
if opt.validation ~= '' then
valDataLoader:close()
end
-- enforce clean exit
os.exit(0)
| gpl-3.0 |
EliHar/Pattern_recognition | torch1/install/share/lua/5.1/jit/dis_x86.lua | 7 | 32546 | ----------------------------------------------------------------------------
-- LuaJIT x86/x64 disassembler module.
--
-- Copyright (C) 2005-2015 Mike Pall. All rights reserved.
-- Released under the MIT license. See Copyright Notice in luajit.h
----------------------------------------------------------------------------
-- This is a helper module used by the LuaJIT machine code dumper module.
--
-- Sending small code snippets to an external disassembler and mixing the
-- output with our own stuff was too fragile. So I had to bite the bullet
-- and write yet another x86 disassembler. Oh well ...
--
-- The output format is very similar to what ndisasm generates. But it has
-- been developed independently by looking at the opcode tables from the
-- Intel and AMD manuals. The supported instruction set is quite extensive
-- and reflects what a current generation Intel or AMD CPU implements in
-- 32 bit and 64 bit mode. Yes, this includes MMX, SSE, SSE2, SSE3, SSSE3,
-- SSE4.1, SSE4.2, SSE4a, AVX, AVX2 and even privileged and hypervisor
-- (VMX/SVM) instructions.
--
-- Notes:
-- * The (useless) a16 prefix, 3DNow and pre-586 opcodes are unsupported.
-- * No attempt at optimization has been made -- it's fast enough for my needs.
------------------------------------------------------------------------------
local type = type
local sub, byte, format = string.sub, string.byte, string.format
local match, gmatch, gsub = string.match, string.gmatch, string.gsub
local lower, rep = string.lower, string.rep
local bit = require("bit")
local tohex = bit.tohex
-- Map for 1st opcode byte in 32 bit mode. Ugly? Well ... read on.
local map_opc1_32 = {
--0x
[0]="addBmr","addVmr","addBrm","addVrm","addBai","addVai","push es","pop es",
"orBmr","orVmr","orBrm","orVrm","orBai","orVai","push cs","opc2*",
--1x
"adcBmr","adcVmr","adcBrm","adcVrm","adcBai","adcVai","push ss","pop ss",
"sbbBmr","sbbVmr","sbbBrm","sbbVrm","sbbBai","sbbVai","push ds","pop ds",
--2x
"andBmr","andVmr","andBrm","andVrm","andBai","andVai","es:seg","daa",
"subBmr","subVmr","subBrm","subVrm","subBai","subVai","cs:seg","das",
--3x
"xorBmr","xorVmr","xorBrm","xorVrm","xorBai","xorVai","ss:seg","aaa",
"cmpBmr","cmpVmr","cmpBrm","cmpVrm","cmpBai","cmpVai","ds:seg","aas",
--4x
"incVR","incVR","incVR","incVR","incVR","incVR","incVR","incVR",
"decVR","decVR","decVR","decVR","decVR","decVR","decVR","decVR",
--5x
"pushUR","pushUR","pushUR","pushUR","pushUR","pushUR","pushUR","pushUR",
"popUR","popUR","popUR","popUR","popUR","popUR","popUR","popUR",
--6x
"sz*pushaw,pusha","sz*popaw,popa","boundVrm","arplWmr",
"fs:seg","gs:seg","o16:","a16",
"pushUi","imulVrmi","pushBs","imulVrms",
"insb","insVS","outsb","outsVS",
--7x
"joBj","jnoBj","jbBj","jnbBj","jzBj","jnzBj","jbeBj","jaBj",
"jsBj","jnsBj","jpeBj","jpoBj","jlBj","jgeBj","jleBj","jgBj",
--8x
"arith!Bmi","arith!Vmi","arith!Bmi","arith!Vms",
"testBmr","testVmr","xchgBrm","xchgVrm",
"movBmr","movVmr","movBrm","movVrm",
"movVmg","leaVrm","movWgm","popUm",
--9x
"nop*xchgVaR|pause|xchgWaR|repne nop","xchgVaR","xchgVaR","xchgVaR",
"xchgVaR","xchgVaR","xchgVaR","xchgVaR",
"sz*cbw,cwde,cdqe","sz*cwd,cdq,cqo","call farViw","wait",
"sz*pushfw,pushf","sz*popfw,popf","sahf","lahf",
--Ax
"movBao","movVao","movBoa","movVoa",
"movsb","movsVS","cmpsb","cmpsVS",
"testBai","testVai","stosb","stosVS",
"lodsb","lodsVS","scasb","scasVS",
--Bx
"movBRi","movBRi","movBRi","movBRi","movBRi","movBRi","movBRi","movBRi",
"movVRI","movVRI","movVRI","movVRI","movVRI","movVRI","movVRI","movVRI",
--Cx
"shift!Bmu","shift!Vmu","retBw","ret","vex*3$lesVrm","vex*2$ldsVrm","movBmi","movVmi",
"enterBwu","leave","retfBw","retf","int3","intBu","into","iretVS",
--Dx
"shift!Bm1","shift!Vm1","shift!Bmc","shift!Vmc","aamBu","aadBu","salc","xlatb",
"fp*0","fp*1","fp*2","fp*3","fp*4","fp*5","fp*6","fp*7",
--Ex
"loopneBj","loopeBj","loopBj","sz*jcxzBj,jecxzBj,jrcxzBj",
"inBau","inVau","outBua","outVua",
"callVj","jmpVj","jmp farViw","jmpBj","inBad","inVad","outBda","outVda",
--Fx
"lock:","int1","repne:rep","rep:","hlt","cmc","testb!Bm","testv!Vm",
"clc","stc","cli","sti","cld","std","incb!Bm","incd!Vm",
}
assert(#map_opc1_32 == 255)
-- Map for 1st opcode byte in 64 bit mode (overrides only).
local map_opc1_64 = setmetatable({
[0x06]=false, [0x07]=false, [0x0e]=false,
[0x16]=false, [0x17]=false, [0x1e]=false, [0x1f]=false,
[0x27]=false, [0x2f]=false, [0x37]=false, [0x3f]=false,
[0x60]=false, [0x61]=false, [0x62]=false, [0x63]="movsxdVrDmt", [0x67]="a32:",
[0x40]="rex*", [0x41]="rex*b", [0x42]="rex*x", [0x43]="rex*xb",
[0x44]="rex*r", [0x45]="rex*rb", [0x46]="rex*rx", [0x47]="rex*rxb",
[0x48]="rex*w", [0x49]="rex*wb", [0x4a]="rex*wx", [0x4b]="rex*wxb",
[0x4c]="rex*wr", [0x4d]="rex*wrb", [0x4e]="rex*wrx", [0x4f]="rex*wrxb",
[0x82]=false, [0x9a]=false, [0xc4]="vex*3", [0xc5]="vex*2", [0xce]=false,
[0xd4]=false, [0xd5]=false, [0xd6]=false, [0xea]=false,
}, { __index = map_opc1_32 })
-- Map for 2nd opcode byte (0F xx). True CISC hell. Hey, I told you.
-- Prefix dependent MMX/SSE opcodes: (none)|rep|o16|repne, -|F3|66|F2
local map_opc2 = {
--0x
[0]="sldt!Dmp","sgdt!Ump","larVrm","lslVrm",nil,"syscall","clts","sysret",
"invd","wbinvd",nil,"ud1",nil,"$prefetch!Bm","femms","3dnowMrmu",
--1x
"movupsXrm|movssXrvm|movupdXrm|movsdXrvm",
"movupsXmr|movssXmvr|movupdXmr|movsdXmvr",
"movhlpsXrm$movlpsXrm|movsldupXrm|movlpdXrm|movddupXrm",
"movlpsXmr||movlpdXmr",
"unpcklpsXrvm||unpcklpdXrvm",
"unpckhpsXrvm||unpckhpdXrvm",
"movlhpsXrm$movhpsXrm|movshdupXrm|movhpdXrm",
"movhpsXmr||movhpdXmr",
"$prefetcht!Bm","hintnopVm","hintnopVm","hintnopVm",
"hintnopVm","hintnopVm","hintnopVm","hintnopVm",
--2x
"movUmx$","movUmy$","movUxm$","movUym$","movUmz$",nil,"movUzm$",nil,
"movapsXrm||movapdXrm",
"movapsXmr||movapdXmr",
"cvtpi2psXrMm|cvtsi2ssXrvVmt|cvtpi2pdXrMm|cvtsi2sdXrvVmt",
"movntpsXmr|movntssXmr|movntpdXmr|movntsdXmr",
"cvttps2piMrXm|cvttss2siVrXm|cvttpd2piMrXm|cvttsd2siVrXm",
"cvtps2piMrXm|cvtss2siVrXm|cvtpd2piMrXm|cvtsd2siVrXm",
"ucomissXrm||ucomisdXrm",
"comissXrm||comisdXrm",
--3x
"wrmsr","rdtsc","rdmsr","rdpmc","sysenter","sysexit",nil,"getsec",
"opc3*38",nil,"opc3*3a",nil,nil,nil,nil,nil,
--4x
"cmovoVrm","cmovnoVrm","cmovbVrm","cmovnbVrm",
"cmovzVrm","cmovnzVrm","cmovbeVrm","cmovaVrm",
"cmovsVrm","cmovnsVrm","cmovpeVrm","cmovpoVrm",
"cmovlVrm","cmovgeVrm","cmovleVrm","cmovgVrm",
--5x
"movmskpsVrXm$||movmskpdVrXm$","sqrtpsXrm|sqrtssXrm|sqrtpdXrm|sqrtsdXrm",
"rsqrtpsXrm|rsqrtssXrvm","rcppsXrm|rcpssXrvm",
"andpsXrvm||andpdXrvm","andnpsXrvm||andnpdXrvm",
"orpsXrvm||orpdXrvm","xorpsXrvm||xorpdXrvm",
"addpsXrvm|addssXrvm|addpdXrvm|addsdXrvm","mulpsXrvm|mulssXrvm|mulpdXrvm|mulsdXrvm",
"cvtps2pdXrm|cvtss2sdXrvm|cvtpd2psXrm|cvtsd2ssXrvm",
"cvtdq2psXrm|cvttps2dqXrm|cvtps2dqXrm",
"subpsXrvm|subssXrvm|subpdXrvm|subsdXrvm","minpsXrvm|minssXrvm|minpdXrvm|minsdXrvm",
"divpsXrvm|divssXrvm|divpdXrvm|divsdXrvm","maxpsXrvm|maxssXrvm|maxpdXrvm|maxsdXrvm",
--6x
"punpcklbwPrvm","punpcklwdPrvm","punpckldqPrvm","packsswbPrvm",
"pcmpgtbPrvm","pcmpgtwPrvm","pcmpgtdPrvm","packuswbPrvm",
"punpckhbwPrvm","punpckhwdPrvm","punpckhdqPrvm","packssdwPrvm",
"||punpcklqdqXrvm","||punpckhqdqXrvm",
"movPrVSm","movqMrm|movdquXrm|movdqaXrm",
--7x
"pshufwMrmu|pshufhwXrmu|pshufdXrmu|pshuflwXrmu","pshiftw!Pmu",
"pshiftd!Pmu","pshiftq!Mmu||pshiftdq!Xmu",
"pcmpeqbPrvm","pcmpeqwPrvm","pcmpeqdPrvm","emms*|",
"vmreadUmr||extrqXmuu$|insertqXrmuu$","vmwriteUrm||extrqXrm$|insertqXrm$",
nil,nil,
"||haddpdXrvm|haddpsXrvm","||hsubpdXrvm|hsubpsXrvm",
"movVSmMr|movqXrm|movVSmXr","movqMmr|movdquXmr|movdqaXmr",
--8x
"joVj","jnoVj","jbVj","jnbVj","jzVj","jnzVj","jbeVj","jaVj",
"jsVj","jnsVj","jpeVj","jpoVj","jlVj","jgeVj","jleVj","jgVj",
--9x
"setoBm","setnoBm","setbBm","setnbBm","setzBm","setnzBm","setbeBm","setaBm",
"setsBm","setnsBm","setpeBm","setpoBm","setlBm","setgeBm","setleBm","setgBm",
--Ax
"push fs","pop fs","cpuid","btVmr","shldVmru","shldVmrc",nil,nil,
"push gs","pop gs","rsm","btsVmr","shrdVmru","shrdVmrc","fxsave!Dmp","imulVrm",
--Bx
"cmpxchgBmr","cmpxchgVmr","$lssVrm","btrVmr",
"$lfsVrm","$lgsVrm","movzxVrBmt","movzxVrWmt",
"|popcntVrm","ud2Dp","bt!Vmu","btcVmr",
"bsfVrm","bsrVrm|lzcntVrm|bsrWrm","movsxVrBmt","movsxVrWmt",
--Cx
"xaddBmr","xaddVmr",
"cmppsXrvmu|cmpssXrvmu|cmppdXrvmu|cmpsdXrvmu","$movntiVmr|",
"pinsrwPrvWmu","pextrwDrPmu",
"shufpsXrvmu||shufpdXrvmu","$cmpxchg!Qmp",
"bswapVR","bswapVR","bswapVR","bswapVR","bswapVR","bswapVR","bswapVR","bswapVR",
--Dx
"||addsubpdXrvm|addsubpsXrvm","psrlwPrvm","psrldPrvm","psrlqPrvm",
"paddqPrvm","pmullwPrvm",
"|movq2dqXrMm|movqXmr|movdq2qMrXm$","pmovmskbVrMm||pmovmskbVrXm",
"psubusbPrvm","psubuswPrvm","pminubPrvm","pandPrvm",
"paddusbPrvm","padduswPrvm","pmaxubPrvm","pandnPrvm",
--Ex
"pavgbPrvm","psrawPrvm","psradPrvm","pavgwPrvm",
"pmulhuwPrvm","pmulhwPrvm",
"|cvtdq2pdXrm|cvttpd2dqXrm|cvtpd2dqXrm","$movntqMmr||$movntdqXmr",
"psubsbPrvm","psubswPrvm","pminswPrvm","porPrvm",
"paddsbPrvm","paddswPrvm","pmaxswPrvm","pxorPrvm",
--Fx
"|||lddquXrm","psllwPrvm","pslldPrvm","psllqPrvm",
"pmuludqPrvm","pmaddwdPrvm","psadbwPrvm","maskmovqMrm||maskmovdquXrm$",
"psubbPrvm","psubwPrvm","psubdPrvm","psubqPrvm",
"paddbPrvm","paddwPrvm","padddPrvm","ud",
}
assert(map_opc2[255] == "ud")
-- Map for three-byte opcodes. Can't wait for their next invention.
local map_opc3 = {
["38"] = { -- [66] 0f 38 xx
--0x
[0]="pshufbPrvm","phaddwPrvm","phadddPrvm","phaddswPrvm",
"pmaddubswPrvm","phsubwPrvm","phsubdPrvm","phsubswPrvm",
"psignbPrvm","psignwPrvm","psigndPrvm","pmulhrswPrvm",
"||permilpsXrvm","||permilpdXrvm",nil,nil,
--1x
"||pblendvbXrma",nil,nil,nil,
"||blendvpsXrma","||blendvpdXrma","||permpsXrvm","||ptestXrm",
"||broadcastssXrm","||broadcastsdXrm","||broadcastf128XrlXm",nil,
"pabsbPrm","pabswPrm","pabsdPrm",nil,
--2x
"||pmovsxbwXrm","||pmovsxbdXrm","||pmovsxbqXrm","||pmovsxwdXrm",
"||pmovsxwqXrm","||pmovsxdqXrm",nil,nil,
"||pmuldqXrvm","||pcmpeqqXrvm","||$movntdqaXrm","||packusdwXrvm",
"||maskmovpsXrvm","||maskmovpdXrvm","||maskmovpsXmvr","||maskmovpdXmvr",
--3x
"||pmovzxbwXrm","||pmovzxbdXrm","||pmovzxbqXrm","||pmovzxwdXrm",
"||pmovzxwqXrm","||pmovzxdqXrm","||permdXrvm","||pcmpgtqXrvm",
"||pminsbXrvm","||pminsdXrvm","||pminuwXrvm","||pminudXrvm",
"||pmaxsbXrvm","||pmaxsdXrvm","||pmaxuwXrvm","||pmaxudXrvm",
--4x
"||pmulddXrvm","||phminposuwXrm",nil,nil,
nil,"||psrlvVSXrvm","||psravdXrvm","||psllvVSXrvm",
--5x
[0x58] = "||pbroadcastdXrlXm",[0x59] = "||pbroadcastqXrlXm",
[0x5a] = "||broadcasti128XrlXm",
--7x
[0x78] = "||pbroadcastbXrlXm",[0x79] = "||pbroadcastwXrlXm",
--8x
[0x8c] = "||pmaskmovXrvVSm",
[0x8e] = "||pmaskmovVSmXvr",
--Fx
[0xf0] = "|||crc32TrBmt",[0xf1] = "|||crc32TrVmt",
},
["3a"] = { -- [66] 0f 3a xx
--0x
[0x00]="||permqXrmu","||permpdXrmu","||pblenddXrvmu",nil,
"||permilpsXrmu","||permilpdXrmu","||perm2f128Xrvmu",nil,
"||roundpsXrmu","||roundpdXrmu","||roundssXrvmu","||roundsdXrvmu",
"||blendpsXrvmu","||blendpdXrvmu","||pblendwXrvmu","palignrPrvmu",
--1x
nil,nil,nil,nil,
"||pextrbVmXru","||pextrwVmXru","||pextrVmSXru","||extractpsVmXru",
"||insertf128XrvlXmu","||extractf128XlXmYru",nil,nil,
nil,nil,nil,nil,
--2x
"||pinsrbXrvVmu","||insertpsXrvmu","||pinsrXrvVmuS",nil,
--3x
[0x38] = "||inserti128Xrvmu",[0x39] = "||extracti128XlXmYru",
--4x
[0x40] = "||dppsXrvmu",
[0x41] = "||dppdXrvmu",
[0x42] = "||mpsadbwXrvmu",
[0x46] = "||perm2i128Xrvmu",
[0x4a] = "||blendvpsXrvmb",[0x4b] = "||blendvpdXrvmb",
[0x4c] = "||pblendvbXrvmb",
--6x
[0x60] = "||pcmpestrmXrmu",[0x61] = "||pcmpestriXrmu",
[0x62] = "||pcmpistrmXrmu",[0x63] = "||pcmpistriXrmu",
},
}
-- Map for VMX/SVM opcodes 0F 01 C0-FF (sgdt group with register operands).
local map_opcvm = {
[0xc1]="vmcall",[0xc2]="vmlaunch",[0xc3]="vmresume",[0xc4]="vmxoff",
[0xc8]="monitor",[0xc9]="mwait",
[0xd8]="vmrun",[0xd9]="vmmcall",[0xda]="vmload",[0xdb]="vmsave",
[0xdc]="stgi",[0xdd]="clgi",[0xde]="skinit",[0xdf]="invlpga",
[0xf8]="swapgs",[0xf9]="rdtscp",
}
-- Map for FP opcodes. And you thought stack machines are simple?
local map_opcfp = {
-- D8-DF 00-BF: opcodes with a memory operand.
-- D8
[0]="faddFm","fmulFm","fcomFm","fcompFm","fsubFm","fsubrFm","fdivFm","fdivrFm",
"fldFm",nil,"fstFm","fstpFm","fldenvVm","fldcwWm","fnstenvVm","fnstcwWm",
-- DA
"fiaddDm","fimulDm","ficomDm","ficompDm",
"fisubDm","fisubrDm","fidivDm","fidivrDm",
-- DB
"fildDm","fisttpDm","fistDm","fistpDm",nil,"fld twordFmp",nil,"fstp twordFmp",
-- DC
"faddGm","fmulGm","fcomGm","fcompGm","fsubGm","fsubrGm","fdivGm","fdivrGm",
-- DD
"fldGm","fisttpQm","fstGm","fstpGm","frstorDmp",nil,"fnsaveDmp","fnstswWm",
-- DE
"fiaddWm","fimulWm","ficomWm","ficompWm",
"fisubWm","fisubrWm","fidivWm","fidivrWm",
-- DF
"fildWm","fisttpWm","fistWm","fistpWm",
"fbld twordFmp","fildQm","fbstp twordFmp","fistpQm",
-- xx C0-FF: opcodes with a pseudo-register operand.
-- D8
"faddFf","fmulFf","fcomFf","fcompFf","fsubFf","fsubrFf","fdivFf","fdivrFf",
-- D9
"fldFf","fxchFf",{"fnop"},nil,
{"fchs","fabs",nil,nil,"ftst","fxam"},
{"fld1","fldl2t","fldl2e","fldpi","fldlg2","fldln2","fldz"},
{"f2xm1","fyl2x","fptan","fpatan","fxtract","fprem1","fdecstp","fincstp"},
{"fprem","fyl2xp1","fsqrt","fsincos","frndint","fscale","fsin","fcos"},
-- DA
"fcmovbFf","fcmoveFf","fcmovbeFf","fcmovuFf",nil,{nil,"fucompp"},nil,nil,
-- DB
"fcmovnbFf","fcmovneFf","fcmovnbeFf","fcmovnuFf",
{nil,nil,"fnclex","fninit"},"fucomiFf","fcomiFf",nil,
-- DC
"fadd toFf","fmul toFf",nil,nil,
"fsub toFf","fsubr toFf","fdivr toFf","fdiv toFf",
-- DD
"ffreeFf",nil,"fstFf","fstpFf","fucomFf","fucompFf",nil,nil,
-- DE
"faddpFf","fmulpFf",nil,{nil,"fcompp"},
"fsubrpFf","fsubpFf","fdivrpFf","fdivpFf",
-- DF
nil,nil,nil,nil,{"fnstsw ax"},"fucomipFf","fcomipFf",nil,
}
assert(map_opcfp[126] == "fcomipFf")
-- Map for opcode groups. The subkey is sp from the ModRM byte.
local map_opcgroup = {
arith = { "add", "or", "adc", "sbb", "and", "sub", "xor", "cmp" },
shift = { "rol", "ror", "rcl", "rcr", "shl", "shr", "sal", "sar" },
testb = { "testBmi", "testBmi", "not", "neg", "mul", "imul", "div", "idiv" },
testv = { "testVmi", "testVmi", "not", "neg", "mul", "imul", "div", "idiv" },
incb = { "inc", "dec" },
incd = { "inc", "dec", "callUmp", "$call farDmp",
"jmpUmp", "$jmp farDmp", "pushUm" },
sldt = { "sldt", "str", "lldt", "ltr", "verr", "verw" },
sgdt = { "vm*$sgdt", "vm*$sidt", "$lgdt", "vm*$lidt",
"smsw", nil, "lmsw", "vm*$invlpg" },
bt = { nil, nil, nil, nil, "bt", "bts", "btr", "btc" },
cmpxchg = { nil, "sz*,cmpxchg8bQmp,cmpxchg16bXmp", nil, nil,
nil, nil, "vmptrld|vmxon|vmclear", "vmptrst" },
pshiftw = { nil, nil, "psrlw", nil, "psraw", nil, "psllw" },
pshiftd = { nil, nil, "psrld", nil, "psrad", nil, "pslld" },
pshiftq = { nil, nil, "psrlq", nil, nil, nil, "psllq" },
pshiftdq = { nil, nil, "psrlq", "psrldq", nil, nil, "psllq", "pslldq" },
fxsave = { "$fxsave", "$fxrstor", "$ldmxcsr", "$stmxcsr",
nil, "lfenceDp$", "mfenceDp$", "sfenceDp$clflush" },
prefetch = { "prefetch", "prefetchw" },
prefetcht = { "prefetchnta", "prefetcht0", "prefetcht1", "prefetcht2" },
}
------------------------------------------------------------------------------
-- Maps for register names.
local map_regs = {
B = { "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh",
"r8b", "r9b", "r10b", "r11b", "r12b", "r13b", "r14b", "r15b" },
B64 = { "al", "cl", "dl", "bl", "spl", "bpl", "sil", "dil",
"r8b", "r9b", "r10b", "r11b", "r12b", "r13b", "r14b", "r15b" },
W = { "ax", "cx", "dx", "bx", "sp", "bp", "si", "di",
"r8w", "r9w", "r10w", "r11w", "r12w", "r13w", "r14w", "r15w" },
D = { "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi",
"r8d", "r9d", "r10d", "r11d", "r12d", "r13d", "r14d", "r15d" },
Q = { "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi",
"r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15" },
M = { "mm0", "mm1", "mm2", "mm3", "mm4", "mm5", "mm6", "mm7",
"mm0", "mm1", "mm2", "mm3", "mm4", "mm5", "mm6", "mm7" }, -- No x64 ext!
X = { "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7",
"xmm8", "xmm9", "xmm10", "xmm11", "xmm12", "xmm13", "xmm14", "xmm15" },
Y = { "ymm0", "ymm1", "ymm2", "ymm3", "ymm4", "ymm5", "ymm6", "ymm7",
"ymm8", "ymm9", "ymm10", "ymm11", "ymm12", "ymm13", "ymm14", "ymm15" },
}
local map_segregs = { "es", "cs", "ss", "ds", "fs", "gs", "segr6", "segr7" }
-- Maps for size names.
local map_sz2n = {
B = 1, W = 2, D = 4, Q = 8, M = 8, X = 16, Y = 32,
}
local map_sz2prefix = {
B = "byte", W = "word", D = "dword",
Q = "qword",
M = "qword", X = "xword", Y = "yword",
F = "dword", G = "qword", -- No need for sizes/register names for these two.
}
------------------------------------------------------------------------------
-- Output a nicely formatted line with an opcode and operands.
local function putop(ctx, text, operands)
local code, pos, hex = ctx.code, ctx.pos, ""
local hmax = ctx.hexdump
if hmax > 0 then
for i=ctx.start,pos-1 do
hex = hex..format("%02X", byte(code, i, i))
end
if #hex > hmax then hex = sub(hex, 1, hmax)..". "
else hex = hex..rep(" ", hmax-#hex+2) end
end
if operands then text = text.." "..operands end
if ctx.o16 then text = "o16 "..text; ctx.o16 = false end
if ctx.a32 then text = "a32 "..text; ctx.a32 = false end
if ctx.rep then text = ctx.rep.." "..text; ctx.rep = false end
if ctx.rex then
local t = (ctx.rexw and "w" or "")..(ctx.rexr and "r" or "")..
(ctx.rexx and "x" or "")..(ctx.rexb and "b" or "")..
(ctx.vexl and "l" or "")
if ctx.vexv and ctx.vexv ~= 0 then t = t.."v"..ctx.vexv end
if t ~= "" then text = ctx.rex.."."..t.." "..text
elseif ctx.rex == "vex" then text = "v"..text end
ctx.rexw = false; ctx.rexr = false; ctx.rexx = false; ctx.rexb = false
ctx.rex = false; ctx.vexl = false; ctx.vexv = false
end
if ctx.seg then
local text2, n = gsub(text, "%[", "["..ctx.seg..":")
if n == 0 then text = ctx.seg.." "..text else text = text2 end
ctx.seg = false
end
if ctx.lock then text = "lock "..text; ctx.lock = false end
local imm = ctx.imm
if imm then
local sym = ctx.symtab[imm]
if sym then text = text.."\t->"..sym end
end
ctx.out(format("%08x %s%s\n", ctx.addr+ctx.start, hex, text))
ctx.mrm = false
ctx.vexv = false
ctx.start = pos
ctx.imm = nil
end
-- Clear all prefix flags.
local function clearprefixes(ctx)
ctx.o16 = false; ctx.seg = false; ctx.lock = false; ctx.rep = false
ctx.rexw = false; ctx.rexr = false; ctx.rexx = false; ctx.rexb = false
ctx.rex = false; ctx.a32 = false; ctx.vexl = false
end
-- Fallback for incomplete opcodes at the end.
local function incomplete(ctx)
ctx.pos = ctx.stop+1
clearprefixes(ctx)
return putop(ctx, "(incomplete)")
end
-- Fallback for unknown opcodes.
local function unknown(ctx)
clearprefixes(ctx)
return putop(ctx, "(unknown)")
end
-- Return an immediate of the specified size.
local function getimm(ctx, pos, n)
if pos+n-1 > ctx.stop then return incomplete(ctx) end
local code = ctx.code
if n == 1 then
local b1 = byte(code, pos, pos)
return b1
elseif n == 2 then
local b1, b2 = byte(code, pos, pos+1)
return b1+b2*256
else
local b1, b2, b3, b4 = byte(code, pos, pos+3)
local imm = b1+b2*256+b3*65536+b4*16777216
ctx.imm = imm
return imm
end
end
-- Process pattern string and generate the operands.
local function putpat(ctx, name, pat)
local operands, regs, sz, mode, sp, rm, sc, rx, sdisp
local code, pos, stop, vexl = ctx.code, ctx.pos, ctx.stop, ctx.vexl
-- Chars used: 1DFGIMPQRSTUVWXYabcdfgijlmoprstuvwxyz
for p in gmatch(pat, ".") do
local x = nil
if p == "V" or p == "U" then
if ctx.rexw then sz = "Q"; ctx.rexw = false
elseif ctx.o16 then sz = "W"; ctx.o16 = false
elseif p == "U" and ctx.x64 then sz = "Q"
else sz = "D" end
regs = map_regs[sz]
elseif p == "T" then
if ctx.rexw then sz = "Q"; ctx.rexw = false else sz = "D" end
regs = map_regs[sz]
elseif p == "B" then
sz = "B"
regs = ctx.rex and map_regs.B64 or map_regs.B
elseif match(p, "[WDQMXYFG]") then
sz = p
if sz == "X" and vexl then sz = "Y"; ctx.vexl = false end
regs = map_regs[sz]
elseif p == "P" then
sz = ctx.o16 and "X" or "M"; ctx.o16 = false
if sz == "X" and vexl then sz = "Y"; ctx.vexl = false end
regs = map_regs[sz]
elseif p == "S" then
name = name..lower(sz)
elseif p == "s" then
local imm = getimm(ctx, pos, 1); if not imm then return end
x = imm <= 127 and format("+0x%02x", imm)
or format("-0x%02x", 256-imm)
pos = pos+1
elseif p == "u" then
local imm = getimm(ctx, pos, 1); if not imm then return end
x = format("0x%02x", imm)
pos = pos+1
elseif p == "b" then
local imm = getimm(ctx, pos, 1); if not imm then return end
x = regs[imm/16+1]
pos = pos+1
elseif p == "w" then
local imm = getimm(ctx, pos, 2); if not imm then return end
x = format("0x%x", imm)
pos = pos+2
elseif p == "o" then -- [offset]
if ctx.x64 then
local imm1 = getimm(ctx, pos, 4); if not imm1 then return end
local imm2 = getimm(ctx, pos+4, 4); if not imm2 then return end
x = format("[0x%08x%08x]", imm2, imm1)
pos = pos+8
else
local imm = getimm(ctx, pos, 4); if not imm then return end
x = format("[0x%08x]", imm)
pos = pos+4
end
elseif p == "i" or p == "I" then
local n = map_sz2n[sz]
if n == 8 and ctx.x64 and p == "I" then
local imm1 = getimm(ctx, pos, 4); if not imm1 then return end
local imm2 = getimm(ctx, pos+4, 4); if not imm2 then return end
x = format("0x%08x%08x", imm2, imm1)
else
if n == 8 then n = 4 end
local imm = getimm(ctx, pos, n); if not imm then return end
if sz == "Q" and (imm < 0 or imm > 0x7fffffff) then
imm = (0xffffffff+1)-imm
x = format(imm > 65535 and "-0x%08x" or "-0x%x", imm)
else
x = format(imm > 65535 and "0x%08x" or "0x%x", imm)
end
end
pos = pos+n
elseif p == "j" then
local n = map_sz2n[sz]
if n == 8 then n = 4 end
local imm = getimm(ctx, pos, n); if not imm then return end
if sz == "B" and imm > 127 then imm = imm-256
elseif imm > 2147483647 then imm = imm-4294967296 end
pos = pos+n
imm = imm + pos + ctx.addr
if imm > 4294967295 and not ctx.x64 then imm = imm-4294967296 end
ctx.imm = imm
if sz == "W" then
x = format("word 0x%04x", imm%65536)
elseif ctx.x64 then
local lo = imm % 0x1000000
x = format("0x%02x%06x", (imm-lo) / 0x1000000, lo)
else
x = "0x"..tohex(imm)
end
elseif p == "R" then
local r = byte(code, pos-1, pos-1)%8
if ctx.rexb then r = r + 8; ctx.rexb = false end
x = regs[r+1]
elseif p == "a" then x = regs[1]
elseif p == "c" then x = "cl"
elseif p == "d" then x = "dx"
elseif p == "1" then x = "1"
else
if not mode then
mode = ctx.mrm
if not mode then
if pos > stop then return incomplete(ctx) end
mode = byte(code, pos, pos)
pos = pos+1
end
rm = mode%8; mode = (mode-rm)/8
sp = mode%8; mode = (mode-sp)/8
sdisp = ""
if mode < 3 then
if rm == 4 then
if pos > stop then return incomplete(ctx) end
sc = byte(code, pos, pos)
pos = pos+1
rm = sc%8; sc = (sc-rm)/8
rx = sc%8; sc = (sc-rx)/8
if ctx.rexx then rx = rx + 8; ctx.rexx = false end
if rx == 4 then rx = nil end
end
if mode > 0 or rm == 5 then
local dsz = mode
if dsz ~= 1 then dsz = 4 end
local disp = getimm(ctx, pos, dsz); if not disp then return end
if mode == 0 then rm = nil end
if rm or rx or (not sc and ctx.x64 and not ctx.a32) then
if dsz == 1 and disp > 127 then
sdisp = format("-0x%x", 256-disp)
elseif disp >= 0 and disp <= 0x7fffffff then
sdisp = format("+0x%x", disp)
else
sdisp = format("-0x%x", (0xffffffff+1)-disp)
end
else
sdisp = format(ctx.x64 and not ctx.a32 and
not (disp >= 0 and disp <= 0x7fffffff)
and "0xffffffff%08x" or "0x%08x", disp)
end
pos = pos+dsz
end
end
if rm and ctx.rexb then rm = rm + 8; ctx.rexb = false end
if ctx.rexr then sp = sp + 8; ctx.rexr = false end
end
if p == "m" then
if mode == 3 then x = regs[rm+1]
else
local aregs = ctx.a32 and map_regs.D or ctx.aregs
local srm, srx = "", ""
if rm then srm = aregs[rm+1]
elseif not sc and ctx.x64 and not ctx.a32 then srm = "rip" end
ctx.a32 = false
if rx then
if rm then srm = srm.."+" end
srx = aregs[rx+1]
if sc > 0 then srx = srx.."*"..(2^sc) end
end
x = format("[%s%s%s]", srm, srx, sdisp)
end
if mode < 3 and
(not match(pat, "[aRrgp]") or match(pat, "t")) then -- Yuck.
x = map_sz2prefix[sz].." "..x
end
elseif p == "r" then x = regs[sp+1]
elseif p == "g" then x = map_segregs[sp+1]
elseif p == "p" then -- Suppress prefix.
elseif p == "f" then x = "st"..rm
elseif p == "x" then
if sp == 0 and ctx.lock and not ctx.x64 then
x = "CR8"; ctx.lock = false
else
x = "CR"..sp
end
elseif p == "v" then
if ctx.vexv then
x = regs[ctx.vexv+1]; ctx.vexv = false
end
elseif p == "y" then x = "DR"..sp
elseif p == "z" then x = "TR"..sp
elseif p == "l" then vexl = false
elseif p == "t" then
else
error("bad pattern `"..pat.."'")
end
end
if x then operands = operands and operands..", "..x or x end
end
ctx.pos = pos
return putop(ctx, name, operands)
end
-- Forward declaration.
local map_act
-- Fetch and cache MRM byte.
local function getmrm(ctx)
local mrm = ctx.mrm
if not mrm then
local pos = ctx.pos
if pos > ctx.stop then return nil end
mrm = byte(ctx.code, pos, pos)
ctx.pos = pos+1
ctx.mrm = mrm
end
return mrm
end
-- Dispatch to handler depending on pattern.
local function dispatch(ctx, opat, patgrp)
if not opat then return unknown(ctx) end
if match(opat, "%|") then -- MMX/SSE variants depending on prefix.
local p
if ctx.rep then
p = ctx.rep=="rep" and "%|([^%|]*)" or "%|[^%|]*%|[^%|]*%|([^%|]*)"
ctx.rep = false
elseif ctx.o16 then p = "%|[^%|]*%|([^%|]*)"; ctx.o16 = false
else p = "^[^%|]*" end
opat = match(opat, p)
if not opat then return unknown(ctx) end
-- ctx.rep = false; ctx.o16 = false
--XXX fails for 66 f2 0f 38 f1 06 crc32 eax,WORD PTR [esi]
--XXX remove in branches?
end
if match(opat, "%$") then -- reg$mem variants.
local mrm = getmrm(ctx); if not mrm then return incomplete(ctx) end
opat = match(opat, mrm >= 192 and "^[^%$]*" or "%$(.*)")
if opat == "" then return unknown(ctx) end
end
if opat == "" then return unknown(ctx) end
local name, pat = match(opat, "^([a-z0-9 ]*)(.*)")
if pat == "" and patgrp then pat = patgrp end
return map_act[sub(pat, 1, 1)](ctx, name, pat)
end
-- Get a pattern from an opcode map and dispatch to handler.
local function dispatchmap(ctx, opcmap)
local pos = ctx.pos
local opat = opcmap[byte(ctx.code, pos, pos)]
pos = pos + 1
ctx.pos = pos
return dispatch(ctx, opat)
end
-- Map for action codes. The key is the first char after the name.
map_act = {
-- Simple opcodes without operands.
[""] = function(ctx, name, pat)
return putop(ctx, name)
end,
-- Operand size chars fall right through.
B = putpat, W = putpat, D = putpat, Q = putpat,
V = putpat, U = putpat, T = putpat,
M = putpat, X = putpat, P = putpat,
F = putpat, G = putpat, Y = putpat,
-- Collect prefixes.
[":"] = function(ctx, name, pat)
ctx[pat == ":" and name or sub(pat, 2)] = name
if ctx.pos - ctx.start > 5 then return unknown(ctx) end -- Limit #prefixes.
end,
-- Chain to special handler specified by name.
["*"] = function(ctx, name, pat)
return map_act[name](ctx, name, sub(pat, 2))
end,
-- Use named subtable for opcode group.
["!"] = function(ctx, name, pat)
local mrm = getmrm(ctx); if not mrm then return incomplete(ctx) end
return dispatch(ctx, map_opcgroup[name][((mrm-(mrm%8))/8)%8+1], sub(pat, 2))
end,
-- o16,o32[,o64] variants.
sz = function(ctx, name, pat)
if ctx.o16 then ctx.o16 = false
else
pat = match(pat, ",(.*)")
if ctx.rexw then
local p = match(pat, ",(.*)")
if p then pat = p; ctx.rexw = false end
end
end
pat = match(pat, "^[^,]*")
return dispatch(ctx, pat)
end,
-- Two-byte opcode dispatch.
opc2 = function(ctx, name, pat)
return dispatchmap(ctx, map_opc2)
end,
-- Three-byte opcode dispatch.
opc3 = function(ctx, name, pat)
return dispatchmap(ctx, map_opc3[pat])
end,
-- VMX/SVM dispatch.
vm = function(ctx, name, pat)
return dispatch(ctx, map_opcvm[ctx.mrm])
end,
-- Floating point opcode dispatch.
fp = function(ctx, name, pat)
local mrm = getmrm(ctx); if not mrm then return incomplete(ctx) end
local rm = mrm%8
local idx = pat*8 + ((mrm-rm)/8)%8
if mrm >= 192 then idx = idx + 64 end
local opat = map_opcfp[idx]
if type(opat) == "table" then opat = opat[rm+1] end
return dispatch(ctx, opat)
end,
-- REX prefix.
rex = function(ctx, name, pat)
if ctx.rex then return unknown(ctx) end -- Only 1 REX or VEX prefix allowed.
for p in gmatch(pat, ".") do ctx["rex"..p] = true end
ctx.rex = "rex"
end,
-- VEX prefix.
vex = function(ctx, name, pat)
if ctx.rex then return unknown(ctx) end -- Only 1 REX or VEX prefix allowed.
ctx.rex = "vex"
local pos = ctx.pos
if ctx.mrm then
ctx.mrm = nil
pos = pos-1
end
local b = byte(ctx.code, pos, pos)
if not b then return incomplete(ctx) end
pos = pos+1
if b < 128 then ctx.rexr = true end
local m = 1
if pat == "3" then
m = b%32; b = (b-m)/32
local nb = b%2; b = (b-nb)/2
if nb == 0 then ctx.rexb = true end
local nx = b%2; b = (b-nx)/2
if nx == 0 then ctx.rexx = true end
b = byte(ctx.code, pos, pos)
if not b then return incomplete(ctx) end
pos = pos+1
if b >= 128 then ctx.rexw = true end
end
ctx.pos = pos
local map
if m == 1 then map = map_opc2
elseif m == 2 then map = map_opc3["38"]
elseif m == 3 then map = map_opc3["3a"]
else return unknown(ctx) end
local p = b%4; b = (b-p)/4
if p == 1 then ctx.o16 = "o16"
elseif p == 2 then ctx.rep = "rep"
elseif p == 3 then ctx.rep = "repne" end
local l = b%2; b = (b-l)/2
if l ~= 0 then ctx.vexl = true end
ctx.vexv = (-1-b)%16
return dispatchmap(ctx, map)
end,
-- Special case for nop with REX prefix.
nop = function(ctx, name, pat)
return dispatch(ctx, ctx.rex and pat or "nop")
end,
-- Special case for 0F 77.
emms = function(ctx, name, pat)
if ctx.rex ~= "vex" then
return putop(ctx, "emms")
elseif ctx.vexl then
ctx.vexl = false
return putop(ctx, "zeroall")
else
return putop(ctx, "zeroupper")
end
end,
}
------------------------------------------------------------------------------
-- Disassemble a block of code.
local function disass_block(ctx, ofs, len)
if not ofs then ofs = 0 end
local stop = len and ofs+len or #ctx.code
ofs = ofs + 1
ctx.start = ofs
ctx.pos = ofs
ctx.stop = stop
ctx.imm = nil
ctx.mrm = false
clearprefixes(ctx)
while ctx.pos <= stop do dispatchmap(ctx, ctx.map1) end
if ctx.pos ~= ctx.start then incomplete(ctx) end
end
-- Extended API: create a disassembler context. Then call ctx:disass(ofs, len).
local function create(code, addr, out)
local ctx = {}
ctx.code = code
ctx.addr = (addr or 0) - 1
ctx.out = out or io.write
ctx.symtab = {}
ctx.disass = disass_block
ctx.hexdump = 16
ctx.x64 = false
ctx.map1 = map_opc1_32
ctx.aregs = map_regs.D
return ctx
end
local function create64(code, addr, out)
local ctx = create(code, addr, out)
ctx.x64 = true
ctx.map1 = map_opc1_64
ctx.aregs = map_regs.Q
return ctx
end
-- Simple API: disassemble code (a string) at address and output via out.
local function disass(code, addr, out)
create(code, addr, out):disass()
end
local function disass64(code, addr, out)
create64(code, addr, out):disass()
end
-- Return register name for RID.
local function regname(r)
if r < 8 then return map_regs.D[r+1] end
return map_regs.X[r-7]
end
local function regname64(r)
if r < 16 then return map_regs.Q[r+1] end
return map_regs.X[r-15]
end
-- Public module functions.
return {
create = create,
create64 = create64,
disass = disass,
disass64 = disass64,
regname = regname,
regname64 = regname64
}
| mit |
AliKhodadad/Telebot | plugins/welcome.lua | 190 | 3526 | local add_user_cfg = load_from_file('data/add_user_cfg.lua')
local function template_add_user(base, to_username, from_username, chat_name, chat_id)
base = base or ''
to_username = '@' .. (to_username or '')
from_username = '@' .. (from_username or '')
chat_name = string.gsub(chat_name, '_', ' ') or ''
chat_id = "chat#id" .. (chat_id or '')
if to_username == "@" then
to_username = ''
end
if from_username == "@" then
from_username = ''
end
base = string.gsub(base, "{to_username}", to_username)
base = string.gsub(base, "{from_username}", from_username)
base = string.gsub(base, "{chat_name}", chat_name)
base = string.gsub(base, "{chat_id}", chat_id)
return base
end
function chat_new_user_link(msg)
local pattern = add_user_cfg.initial_chat_msg
local to_username = msg.from.username
local from_username = 'link (@' .. (msg.action.link_issuer.username or '') .. ')'
local chat_name = msg.to.print_name
local chat_id = msg.to.id
pattern = template_add_user(pattern, to_username, from_username, chat_name, chat_id)
if pattern ~= '' then
local receiver = get_receiver(msg)
send_msg(receiver, pattern, ok_cb, false)
end
end
function chat_new_user(msg)
local pattern = add_user_cfg.initial_chat_msg
local to_username = msg.action.user.username
local from_username = msg.from.username
local chat_name = msg.to.print_name
local chat_id = msg.to.id
pattern = template_add_user(pattern, to_username, from_username, chat_name, chat_id)
if pattern ~= '' then
local receiver = get_receiver(msg)
send_msg(receiver, pattern, ok_cb, false)
end
end
local function description_rules(msg, nama)
local data = load_data(_config.moderation.data)
if data[tostring(msg.to.id)] then
local about = ""
local rules = ""
if data[tostring(msg.to.id)]["description"] then
about = data[tostring(msg.to.id)]["description"]
about = "\nAbout :\n"..about.."\n"
end
if data[tostring(msg.to.id)]["rules"] then
rules = data[tostring(msg.to.id)]["rules"]
rules = "\nRules :\n"..rules.."\n"
end
local sambutan = "Hi "..nama.."\nWelcome to '"..string.gsub(msg.to.print_name, "_", " ").."'\nYou can use /help for see bot commands\n"
local text = sambutan..about..rules.."\n"
local receiver = get_receiver(msg)
send_large_msg(receiver, text, ok_cb, false)
end
end
local function run(msg, matches)
if not msg.service then
return "Are you trying to troll me?"
end
--vardump(msg)
if matches[1] == "chat_add_user" then
if not msg.action.user.username then
nama = string.gsub(msg.action.user.print_name, "_", " ")
else
nama = "@"..msg.action.user.username
end
chat_new_user(msg)
description_rules(msg, nama)
elseif matches[1] == "chat_add_user_link" then
if not msg.from.username then
nama = string.gsub(msg.from.print_name, "_", " ")
else
nama = "@"..msg.from.username
end
chat_new_user_link(msg)
description_rules(msg, nama)
elseif matches[1] == "chat_del_user" then
local bye_name = msg.action.user.first_name
return 'Bye '..bye_name
end
end
return {
description = "Welcoming Message",
usage = "send message to new member",
patterns = {
"^!!tgservice (chat_add_user)$",
"^!!tgservice (chat_add_user_link)$",
"^!!tgservice (chat_del_user)$",
},
run = run
}
| gpl-2.0 |
rlcevg/Zero-K | LuaUI/Widgets/camera_smooth_move.lua | 8 | 6635 | --------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- file: camera_smooth_scroll.lua
-- brief: Alternate camera scrolling for the middle mouse button
-- author: Dave Rodgers
--
-- Copyright (C) 2007.
-- Licensed under the terms of the GNU GPL, v2 or later.
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function widget:GetInfo()
return {
name = "SmoothScroll",
desc = "Alternate view movement for the middle mouse button",
author = "trepan",
date = "Feb 27, 2007",
license = "GNU GPL, v2 or later",
layer = 1, -- after the normal widgets
enabled = true -- loaded by default?
}
end
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Automatically generated local definitions
local GL_LINES = GL.LINES
local GL_POINTS = GL.POINTS
local glBeginEnd = gl.BeginEnd
local glColor = gl.Color
local glLineWidth = gl.LineWidth
local glPointSize = gl.PointSize
local glVertex = gl.Vertex
local glTexture = gl.Texture
local glTexRect = gl.TexRect
local spGetCameraState = Spring.GetCameraState
local spGetCameraVectors = Spring.GetCameraVectors
local spGetModKeyState = Spring.GetModKeyState
local spGetMouseState = Spring.GetMouseState
local spIsAboveMiniMap = Spring.IsAboveMiniMap
local spSendCommands = Spring.SendCommands
local spSetCameraState = Spring.SetCameraState
local spSetMouseCursor = Spring.SetMouseCursor
local spTraceScreenRay = Spring.TraceScreenRay
local spWarpMouse = Spring.WarpMouse
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--
-- NOTES:
--
-- 1. The GetCameraState() table is supposed to be opaque.
--
local blockModeSwitching = true
local vsx, vsy = widgetHandler:GetViewSizes()
function widget:ViewResize(viewSizeX, viewSizeY)
vsx = viewSizeX
vsy = viewSizeY
end
local decayFactor = 1
local speedFactor = 25
local mx, my
local active = false
local icon_size = 20
--------------------------------------------------------------------------------
function widget:Update(dt)
if (active) then
local x, y, lmb, mmb, rmb = spGetMouseState()
local cs = spGetCameraState()
local speed = dt * speedFactor
if (cs.name == 'free') then
local a,c,m,s = spGetModKeyState()
if (c) then
return
end
-- clear the velocities
cs.vx = 0; cs.vy = 0; cs.vz = 0
cs.avx = 0; cs.avy = 0; cs.avz = 0
end
if (cs.name == 'ta') then
local flip = -cs.flipped
-- simple, forward and right are locked
cs.px = cs.px + (speed * flip * (x - mx))
if (false) then
cs.py = cs.py + (speed * flip * (my - y))
else
cs.pz = cs.pz + (speed * flip * (my - y))
end
else
-- forward, up, right, top, bottom, left, right
local camVecs = spGetCameraVectors()
local cf = camVecs.forward
local len = math.sqrt((cf[1] * cf[1]) + (cf[3] * cf[3]))
local dfx = cf[1] / len
local dfz = cf[3] / len
local cr = camVecs.right
local len = math.sqrt((cr[1] * cr[1]) + (cr[3] * cr[3]))
local drx = cr[1] / len
local drz = cr[3] / len
local mxm = (speed * (x - mx))
local mym = (speed * (y - my))
cs.px = cs.px + (mxm * drx) + (mym * dfx)
cs.pz = cs.pz + (mxm * drz) + (mym * dfz)
end
spSetCameraState(cs, 0)
if (mmb) then
spSetMouseCursor('none')
end
end
end
function widget:MousePress(x, y, button)
if (button ~= 2) then
return false
end
if (spIsAboveMiniMap(x, y)) then
return false
end
local cs = spGetCameraState()
if (blockModeSwitching and (cs.name ~= 'ta') and (cs.name ~= 'free')) then
local a,c,m,s = spGetModKeyState()
return (c or s) -- block the mode toggling
end
if (cs.name == 'free') then
local a,c,m,s = spGetModKeyState()
if (m and (not (c or s))) then
return false
end
end
active = not active
if (active) then
mx = vsx * 0.5
my = vsy * 0.5
spWarpMouse(mx, my)
spSendCommands({'trackoff'})
end
return true
end
function widget:MouseRelease(x, y, button)
active = false
return -1
end
-- FIXME -- this algo could still use some lovin'
function widget:MouseWheel(up, value)
local cs = spGetCameraState()
local a,c,m,s = spGetModKeyState()
if (m) then
local py = math.abs(cs.py)
local dy = (1 + math.pow(py * 100, 0.25)) * (up and -1 or 1)
local dy = (py / 10) * (up and -1 or 1)
print(dy)
spSetCameraState({
py = py + dy,
}, 0)
return true
end
if (cs.name ~= 'free') then
return false
end
local scale = value * 10
local mx, my = spGetMouseState()
local _, gpos = spTraceScreenRay(mx, my, true)
if (not gpos) then
spSetCameraState({ vy = cs.vy + scale}, 0)
else
local dx = gpos[1] - cs.px
local dy = gpos[2] - cs.py
local dz = gpos[3] - cs.pz
local d = math.sqrt((dx * dx) + (dy * dy) + (dz * dz))
local s = (up and 1 or -1) * (1 / 8)
dx = dx * s
dy = dy * s
dz = dz * s
local newCS = {
px = cs.px + dx,
py = cs.py + dy,
pz = cs.pz + dz,
vx = 0,
vy = 0,
vz = 0,
}
spSetCameraState(newCS, 0)
end
return true
end
local function DrawPoint(x, y, c, s)
--glPointSize(s)
glColor(c)
--glBeginEnd(GL_POINTS, glVertex, x, y)
end
local function DrawLine(x0, y0, c0, x1, y1, c1)
glColor(c0); glVertex(x0, y0)
glColor(c1); glVertex(x1, y1)
end
local red = { 1, 0, 0 }
local green = { 0, 1, 0 }
local black = { 0, 0, 0 }
local white = { 1, 1, 1 }
function widget:DrawScreen()
if (active) then
local x, y = spGetMouseState()
DrawPoint(mx, my, black, 14)
DrawPoint(mx, my, white, 11)
DrawPoint(mx, my, black, 8)
DrawPoint(mx, my, red, 5)
glLineWidth(2)
glBeginEnd(GL_LINES, DrawLine, x, y, green, mx, my, red)
glLineWidth(1)
DrawPoint(x, y, { 0, 1, 0 }, 5)
glTexture(LUAUI_DIRNAME .. 'Images/ccc/arrows-dot.png')
glTexRect(x-icon_size, y-icon_size, x+icon_size, y+icon_size)
glTexture(false)
--glPointSize(1)
glColor(1,1,1,1)
end
end
--------------------------------------------------------------------------------
| gpl-2.0 |
rlcevg/Zero-K | effects/fires.lua | 17 | 9989 | -- flamer
-- fire1_burn1_flame1
-- fire1_smoke1
-- fire1_burnlight
-- fire1_burn1_flame3
-- fire1_burn1_flame4
-- fire1_burn1
-- fire1_burn1_flame2
-- fire1
return {
["flamer"] = {
fire = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.95,
colormap = [[0.7 0.7 0.7 0.01 1 0.3 0.3 0.5 0 0 0 0]],
directional = true,
--emitmul = [[0, 2, 0]],
emitrot = 0,
emitrotspread = 0,
emitvector = [[dir]],
gravity = [[0.2 r-0.4, 0.2, 0.2 r-0.4]],
numparticles = 1,
particlelife = 12,
particlelifespread = 6,
particlesize = 8,
particlesizespread = 4,
particlespeed = 0.1,
particlespeedspread = 0.1,
pos = [[6 r-12, 6 r-12, 6 r-12]],
sizegrowth = 1,
sizemod = 1.0,
texture = [[flame]],
},
},
},
["gravityless_flamer"] = {
fire = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.95,
colormap = [[0.7 0.7 0.7 0.01 1 0.3 0.3 0.5 0 0 0 0]],
directional = true,
--emitmul = [[0, 2, 0]],
emitrot = 0,
emitrotspread = 0,
emitvector = [[dir]],
gravity = [[0.2 r-0.4, 0.2-r0.4, 0.2 r-0.4]],
numparticles = 1,
particlelife = 12,
particlelifespread = 6,
particlesize = 8,
particlesizespread = 4,
particlespeed = 0.1,
particlespeedspread = 0.1,
pos = [[6 r-12, 6 r-12, 6 r-12]],
sizegrowth = 1,
sizemod = 1.0,
texture = [[flame]],
},
},
},
["fire1_burn1_flame1"] = {
fire = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.95,
colormap = [[0 0 0 0.01 1 1 1 0.01 0 0 0 0.01]],
directional = false,
emitrot = 0,
emitrotspread = 1,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 1,
particlelife = 15.3,
particlelifespread = 0,
particlesize = 5.23,
particlesizespread = 10.23,
particlespeed = 0,
particlespeedspread = 0,
pos = [[0, 0, 0]],
sizegrowth = 0,
sizemod = 1.0,
texture = [[fire1]],
},
},
},
["fire1_smoke1"] = {
fire = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 1,
colormap = [[0 0 0 0.01 1 1 1 1 0.7 0.7 0.7 1 0.5 0.5 0.5 0.7 0 0 0 0.01]],
directional = false,
emitrot = 0,
emitrotspread = 5,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0.05]],
numparticles = 1,
particlelife = 30,
particlelifespread = 30,
particlesize = 9,
particlesizespread = 11,
particlespeed = 2,
particlespeedspread = 0,
pos = [[0, 0, 0]],
sizegrowth = 0.05,
sizemod = 1.0,
texture = [[orangesmoke]],
},
},
},
["fire1_burnlight"] = {
air = true,
count = 1,
ground = true,
usedefaultexplosions = false,
water = true,
groundflash = {
circlealpha = 1,
circlegrowth = 1,
flashalpha = 1,
flashsize = 20,
ttl = 15,
color = {
[1] = 1,
[2] = 0.44999998807907,
[3] = 0.69999998807907,
},
},
},
["fire1_burn1_flame3"] = {
fire = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.95,
colormap = [[0 0 0 0.01 1 1 1 0.01 0 0 0 0.01]],
directional = false,
emitrot = 0,
emitrotspread = 1,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 1,
particlelife = 15.3,
particlelifespread = 0,
particlesize = 5.23,
particlesizespread = 10.23,
particlespeed = 0,
particlespeedspread = 0,
pos = [[0, 0, 0]],
sizegrowth = 0,
sizemod = 1.0,
texture = [[fire3]],
},
},
},
["fire1_burn1_flame4"] = {
fire = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.95,
colormap = [[0 0 0 0.01 1 1 1 0.01 0 0 0 0.01]],
directional = false,
emitrot = 0,
emitrotspread = 1,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 1,
particlelife = 15.3,
particlelifespread = 0,
particlesize = 5.23,
particlesizespread = 10.23,
particlespeed = 0,
particlespeedspread = 0,
pos = [[0, 0, 0]],
sizegrowth = 0,
sizemod = 1.0,
texture = [[fire4]],
},
},
},
["fire1_burn1"] = {
flame1 = {
air = true,
class = [[CExpGenSpawner]],
count = 1,
ground = true,
water = true,
properties = {
delay = 0,
explosiongenerator = [[custom:FIRE1_BURN1_FLAME1]],
pos = [[0, 1, 0]],
},
},
flame2 = {
air = true,
class = [[CExpGenSpawner]],
count = 1,
ground = true,
water = true,
properties = {
delay = 5,
explosiongenerator = [[custom:FIRE1_BURN1_FLAME2]],
pos = [[0, 1, 0]],
},
},
flame3 = {
air = true,
class = [[CExpGenSpawner]],
count = 1,
ground = true,
water = true,
properties = {
delay = 10,
explosiongenerator = [[custom:FIRE1_BURN1_FLAME3]],
pos = [[0, 1, 0]],
},
},
flame4 = {
air = true,
class = [[CExpGenSpawner]],
count = 1,
ground = true,
water = true,
properties = {
delay = 15,
explosiongenerator = [[custom:FIRE1_BURN1_FLAME4]],
pos = [[0, 1, 0]],
},
},
},
["fire1_burn1_flame2"] = {
fire = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.95,
colormap = [[0 0 0 0.01 1 1 1 0.01 0 0 0 0.01]],
directional = false,
emitrot = 0,
emitrotspread = 1,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 1,
particlelife = 15.3,
particlelifespread = 0,
particlesize = 5.23,
particlesizespread = 10.23,
particlespeed = 0,
particlespeedspread = 0,
pos = [[0, 0, 0]],
sizegrowth = 0,
sizemod = 1.0,
texture = [[fire2]],
},
},
},
["fire1"] = {
flame = {
air = true,
class = [[CExpGenSpawner]],
count = 5,
ground = true,
water = true,
properties = {
delay = [[0 i20]],
explosiongenerator = [[custom:FIRE1_BURN1]],
pos = [[0, 1, 0]],
},
},
groundflash = {
air = true,
class = [[CExpGenSpawner]],
count = 100,
ground = true,
water = true,
properties = {
delay = [[0 i1]],
explosiongenerator = [[custom:FIRE1_BURNLIGHT]],
pos = [[0, 1, 0]],
},
},
smoke1 = {
air = true,
class = [[CExpGenSpawner]],
count = 100,
ground = true,
water = true,
properties = {
delay = [[0 i1]],
explosiongenerator = [[custom:FIRE1_SMOKE1]],
pos = [[0, 1, 0]],
},
},
},
}
| gpl-2.0 |
rocketime/openwrt-shchool_spec-test | luci-mentohust/luasrc/model/cbi/mentohust/mentohust.lua | 1 | 3145 | --[[
LuCI mentohust
Author:a1ive
]]--
require("luci.tools.webadmin")
m = Map("mentohust", translate("MentoHUST"), translate("锐捷、赛尔认证客户端."))
function m.on_commit(self)
os.execute("/etc/init.d/mentohust start")
end
s = m:section(TypedSection, "option", translate("启动选项"),translate("设置mentohust启动选项"))
s.anonymous = true
s:option(Flag, "boot", translate("开机自启"), translate("开机时自动启动mentohust")).default="0"
s:option(Flag, "enable", translate("启用MentoHUST"), translate("启用或禁用mentohust")).default="0"
s:option(Flag, "rproxy", translate("Router Proxy"), translate("router proxy to fake single client")).default="0"
s = m:section(TypedSection, "mentohust", translate("设置mentohust"),translate("以下选项为mentohust的参数"))
s.anonymous = true
s:option(Value, "Username", translate("Username")).default="hust"
pw=s:option(Value, "Password", translate("Password"))
pw.password = true
pw.rmempty = false
pw.default= "test"
nic=s:option(ListValue, "Nic", translate("网卡"))
nic.anonymous = true
for k, v in pairs(luci.sys.net.devices()) do
nic:value(v)
end
s:option(Value, "IP", translate("IP"),translate("默认IP")).default="0.0.0.0"
s:option(Value, "Mask", translate("子网掩码"),translate("默认子网掩码")).default="255.255.255.0"
s:option(Value, "Gateway", translate("网关"),translate("默认为 0.0.0.0")).default="0.0.0.0"
s:option(Value, "DNS", translate("DNS"),translate("默认为 0.0.0.0")).default="0.0.0.0"
s:option(Value, "PingHost", translate("Ping主机"),translate("默认0.0.0.0,表示关闭该功能")).default="0.0.0.0"
s:option(Value, "Timeout", translate("认证超时"),translate("默认为 8s")).default="8"
s:option(Value, "EchoInterval", translate("心跳间隔"),translate("默认为 30s")).default="30"
s:option(Value, "RestartWait", translate("失败等待"),translate("默认为 15s")).default="15"
s:option(Value, "MaxFail", translate("允许失败次数"),translate("0表示无限制,默认8")).default="8"
t=s:option(ListValue, "StartMode", translate("组播地址"),translate("默认为 0"))
t:value("0", translate("0(标准)"))
t:value("1", translate("1(锐捷)"))
t:value("2", translate("2(赛尔)"))
t.default = "0"
t= s:option(ListValue, "DhcpMode", translate("DHCP方式"),translate("默认为 0"))
t:value("0", translate("0(不使用)"))
t:value("1", translate("1(二次认证)"))
t:value("2", translate("2(认证后)"))
t:value("3", translate("3(认证前)"))
t.default = "0"
t=s:option(ListValue, "DaemonMode", translate("是否后台运行"),translate("默认为 1"))
t:value("1", translate("1(是,关闭输出)"))
t:value("2", translate("2(是,保留输出)"))
t:value("3", translate("3(是,输出到文件)"))
t.default = "3"
s:option(Value, "Version", translate("客户端版本号"),translate("默认0.00表示兼容xrgsu")).default="0.00"
s:option(Value, "DataFile", translate("自定义数据文件"),translate("默认不使用")).default="/etc/mentohust"
s:option(Value, "dhcpscript", translate("DHCP脚本"),translate("默认dhclient")).default="udhcpc -i"
return m
| gpl-3.0 |
rlcevg/Zero-K | effects/gundam_kampferimpact.lua | 25 | 7159 | -- kampferimpact
return {
["kampferimpact"] = {
dirta = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[0.1 0.1 0.1 1.0 0.5 0.5 0.5 1.0 0 0 0 0.0]],
directional = true,
emitrot = 90,
emitrotspread = 0,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 8,
particlelife = 25,
particlelifespread = 10,
particlesize = 15,
particlesizespread = 5,
particlespeed = 1,
particlespeedspread = 15,
pos = [[r-1 r1, 1, r-1 r1]],
sizegrowth = 1.2,
sizemod = 1.0,
texture = [[dirt]],
useairlos = true,
},
},
dirtg = {
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[1 1 1 1.0 1 0.4 0.1 1.0 0.5 0.4 0.3 1.0 0 0 0 0.01]],
directional = true,
emitrot = 90,
emitrotspread = 0,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 20,
particlelife = 25,
particlelifespread = 5,
particlesize = 15,
particlesizespread = 5,
particlespeed = 10,
particlespeedspread = 1,
pos = [[r-1 r1, 1, r-1 r1]],
sizegrowth = 1.2,
sizemod = 1.0,
texture = [[dirt]],
useairlos = true,
},
},
dirtw1 = {
class = [[CSimpleParticleSystem]],
count = 1,
water = true,
properties = {
airdrag = 0.9,
alwaysvisible = true,
colormap = [[0.9 0.9 0.9 1.0 0.5 0.5 0.9 0.0]],
directional = true,
emitrot = 90,
emitrotspread = 0,
emitvector = [[0, 1, 0]],
gravity = [[0, -0.2, 0]],
numparticles = 18,
particlelife = 25,
particlelifespread = 10,
particlesize = 10,
particlesizespread = 5,
particlespeed = 1,
particlespeedspread = 15,
pos = [[r-1 r1, 1, r-1 r1]],
sizegrowth = 1.2,
sizemod = 1.0,
texture = [[randdots]],
useairlos = true,
},
},
dirtw2 = {
class = [[CSimpleParticleSystem]],
count = 1,
water = true,
properties = {
airdrag = 0.7,
alwaysvisible = true,
colormap = [[1.0 1.0 1.0 1.0 0.5 0.5 0.8 0.0]],
directional = true,
emitrot = 90,
emitrotspread = 0,
emitvector = [[0, 1, 0]],
gravity = [[0, 0, 0]],
numparticles = 5,
particlelife = 15,
particlelifespread = 10,
particlesize = 15,
particlesizespread = 5,
particlespeed = 1,
particlespeedspread = 15,
pos = [[r-1 r1, 1, r-1 r1]],
sizegrowth = 1.2,
sizemod = 1.0,
texture = [[dirt]],
useairlos = true,
},
},
explosionspikes = {
air = true,
class = [[explspike]],
count = 7,
ground = true,
water = true,
properties = {
alpha = 1,
alphadecay = 0.19,
alwaysvisible = true,
color = [[1, 0.5, 0.1]],
dir = [[-45 r90,-45 r90,-45 r90]],
length = 0.2,
width = 12,
},
},
groundflash = {
air = true,
alwaysvisible = true,
circlealpha = 0.6,
circlegrowth = 6,
flashalpha = 0.9,
flashsize = 150,
ground = true,
ttl = 13,
water = true,
color = {
[1] = 1,
[2] = 0.5,
[3] = 0,
},
},
poof1 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.8,
alwaysvisible = true,
colormap = [[0.9 0.8 0.7 0.03 0.9 0.5 0.2 0.01]],
directional = true,
emitrot = 45,
emitrotspread = 32,
emitvector = [[0, 1, 0]],
gravity = [[0, -0.01, 0]],
numparticles = 8,
particlelife = 8,
particlelifespread = 0,
particlesize = 25,
particlesizespread = 0,
particlespeed = 10,
particlespeedspread = 5,
pos = [[0, 2, 0]],
sizegrowth = 1,
sizemod = 1.0,
texture = [[flashside1]],
useairlos = false,
},
},
poof2 = {
air = true,
class = [[CSimpleParticleSystem]],
count = 1,
ground = true,
water = true,
properties = {
airdrag = 0.8,
alwaysvisible = true,
colormap = [[0.9 0.8 0.7 0.03 0.9 0.5 0.2 0.01]],
directional = true,
emitrot = 45,
emitrotspread = 32,
emitvector = [[0, 1, 0]],
gravity = [[0, -0.01, 0]],
numparticles = 8,
particlelife = 8,
particlelifespread = 0,
particlesize = 25,
particlesizespread = 0,
particlespeed = 10,
particlespeedspread = 5,
pos = [[0, 2, 0]],
sizegrowth = 1,
sizemod = 1.0,
texture = [[gunshot]],
useairlos = false,
},
},
whiteglow = {
air = true,
class = [[heatcloud]],
count = 1,
ground = true,
water = true,
properties = {
alwaysvisible = true,
heat = 10,
heatfalloff = 1.1,
maxheat = 15,
pos = [[r-2 r2, 5, r-2 r2]],
size = 10,
sizegrowth = 25,
speed = [[0, 1 0, 0]],
texture = [[laserend]],
},
},
},
}
| gpl-2.0 |
Jigoku/boxclip | src/mapio.lua | 1 | 5502 | --[[
* Copyright (C) 2015 - 2022 Ricky K. Thomson
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* u should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
--]]
--[[
TODO
remove functions from map files, store as table data; eg;
print (table.dump(world.entities))
^ this can be written to a map file.
loading maps only then relies on setting this data to world.entities
one problem right now is that;
meshdata is stored as ["mesh"] = Mesh: 0x0161e8c0
quads are stored as ["quad"] = Quad: 0x016bed50
this will obviously break things, needs adjusting
--]]
mapio = {}
mapio.path = love.filesystem.getSaveDirectory( )
--create maps folder if it doesn't exist
if not love.filesystem.getInfo(mapio.path .. "/maps/") then
love.filesystem.createDirectory("maps")
end
--create screenshots folder if it doesn't exist
if not love.filesystem.getInfo(mapio.path .. "/screenshots/") then
love.filesystem.createDirectory("screenshots")
end
function mapio:savemap(map)
local filename = "maps/"..map
local fh = love.filesystem.newFile(filename)
if not fh:open("w") then
local errortitle = "Error"
local errormessage = "Unable to save the map '"..filename.."'\n"..
love.window.showMessageBox(errortitle, errormessage, "error")
end
fh:write("world.gravity = ".. world.gravity .."\n")
fh:write("world.mapmusic = ".. world.mapmusic .."\n")
fh:write("world.mapambient = "..world.mapambient.."\n")
fh:write("world.maptitle = \"".. (world.maptitle or "unnamed map") .."\"\n")
fh:write("world.nextmap = \"".. (world.nextmap or "title") .."\"\n")
fh:write("world.deadzone = ".. world.deadzone .."\n")
fh:write("world:settheme(\""..world.theme.."\")\n")
--this is getting stupid, change how this is saved...
for _, e in ipairs(world.entities.platform) do
fh:write("platforms:add("..math.round(e.xorigin)..","..math.round(e.yorigin)..","..e.w..","..e.h..","..tostring(e.clip)..","..tostring(e.movex)..","..tostring(e.movey)..","..e.movespeed..","..e.movedist..","..tostring(e.swing)..","..e.angleorigin..","..e.texture..")\n")
end
for _, e in ipairs(world.entities.pickup) do
fh:write("pickups:add("..math.round(e.x)..","..math.round(e.y)..",\""..e.type.."\")\n")
end
for _, e in ipairs(world.entities.coin) do
fh:write("coins:add("..math.round(e.x)..","..math.round(e.y)..")\n")
end
for _, e in ipairs(world.entities.crate) do
fh:write("crates:add("..math.round(e.x)..","..math.round(e.y)..",\""..e.type.."\")\n")
end
for _, e in ipairs(world.entities.checkpoint) do
fh:write("checkpoints:add("..math.round(e.x)..","..math.round(e.y)..")\n")
end
for _, e in ipairs(world.entities.enemy) do
fh:write("enemies:add("..math.round(e.xorigin)..","..math.round(e.yorigin)..","..e.movespeed..","..e.movedist ..","..e.dir..",\""..e.type.."\")\n")
end
for _, e in ipairs(world.entities.prop) do
fh:write("props:add("..math.round(e.x)..","..math.round(e.y)..","..e.dir..","..tostring(e.flip)..",\""..e.type.."\")\n")
end
for _, e in ipairs(world.entities.spring) do
fh:write("springs:add("..math.round(e.x)..","..math.round(e.y)..","..e.dir.. ",\""..e.type.."\")\n")
end
for _, e in ipairs(world.entities.portal) do
fh:write("portals:add("..math.round(e.x)..","..math.round(e.y)..",\""..e.type.."\")\n")
end
for _, e in ipairs(world.entities.decal) do
fh:write("decals:add("..math.round(e.x)..","..math.round(e.y)..","..e.w..","..e.h..",".. e.scrollspeed..","..e.texture..")\n")
end
for _, e in ipairs(world.entities.bumper) do
fh:write("bumpers:add("..math.round(e.x)..","..math.round(e.y)..")\n")
end
for _, e in ipairs(world.entities.material) do
fh:write("materials:add("..math.round(e.x)..","..math.round(e.y)..","..e.w..","..e.h..",\""..e.type.."\")\n")
end
for _, e in ipairs(world.entities.trap) do
fh:write("traps:add("..math.round(e.x)..","..math.round(e.y)..",\""..e.type.."\")\n")
end
for _, e in ipairs(world.entities.tip) do
fh:write("tips:add("..math.round(e.xorigin)..","..math.round(e.yorigin)..",\""..e.text.."\")\n")
end
if fh:close() then
console:print("saved map: " ..self.path.."/"..filename)
end
end
function mapio:loadmap(mapname)
if love.filesystem.load("maps/".. mapname )( ) then
console:print("failed to load map: " .. mapname)
else
console:print("load map: " .. mapname)
end
end
--[[ broken
function mapio:getmaptitle(map)
local filename = "maps/"..map
local fh = love.filesystem.newFile(filename)
if not fh:open("r") then
local errortitle = "Error"
local errormessage = "Unable to read the map '"..filename.."'\n"..
love.window.showMessageBox(errortitle, errormessage, "error")
end
local file = fh:read()
local key = string.match(file, "^world.maptitle = .*")
fh:close()
end
--]]
function mapio:getmaps()
-- custom maps override built ins with the same name
return table.concat(
love.filesystem.getDirectoryItems( self.path .. "maps" ),--custom maps
love.filesystem.getDirectoryItems( "/maps" )--built in maps
)
end
| gpl-3.0 |
medialab-prado/Interactivos-15-Ego | minetest-ego/games/minetest_game/mods/wool/init.lua | 5 | 1815 | -- minetest/wool/init.lua
-- Backwards compatibility with jordach's 16-color wool mod
minetest.register_alias("wool:dark_blue", "wool:blue")
minetest.register_alias("wool:gold", "wool:yellow")
local wool = {}
-- This uses a trick: you can first define the recipes using all of the base
-- colors, and then some recipes using more specific colors for a few non-base
-- colors available. When crafting, the last recipes will be checked first.
wool.dyes = {
{"white", "White", nil},
{"grey", "Grey", "basecolor_grey"},
{"black", "Black", "basecolor_black"},
{"red", "Red", "basecolor_red"},
{"yellow", "Yellow", "basecolor_yellow"},
{"green", "Green", "basecolor_green"},
{"cyan", "Cyan", "basecolor_cyan"},
{"blue", "Blue", "basecolor_blue"},
{"magenta", "Magenta", "basecolor_magenta"},
{"orange", "Orange", "excolor_orange"},
{"violet", "Violet", "excolor_violet"},
{"brown", "Brown", "unicolor_dark_orange"},
{"pink", "Pink", "unicolor_light_red"},
{"dark_grey", "Dark Grey", "unicolor_darkgrey"},
{"dark_green", "Dark Green", "unicolor_dark_green"},
}
for _, row in ipairs(wool.dyes) do
local name = row[1]
local desc = row[2]
local craft_color_group = row[3]
-- Node Definition
minetest.register_node("wool:"..name, {
description = desc.." Wool",
tiles = {"wool_"..name..".png"},
is_ground_content = false,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=3,wool=1},
sounds = default.node_sound_defaults(),
})
if craft_color_group then
-- Crafting from dye and white wool
minetest.register_craft({
type = "shapeless",
output = 'wool:'..name,
recipe = {'group:dye,'..craft_color_group, 'group:wool'},
})
end
end
| mit |
joole/private-pkgs | luci/applications/luci-app-redsocks2/files/usr/lib/lua/luci/model/cbi/redsocks2/general.lua | 1 | 5169 |
local state_msg = "" --alex:添加运行状态指示
local listen_port = luci.sys.exec("uci get redsocks2.@redsocks2_redirect[0].local_port")
local red_on = string.len(luci.sys.exec("netstat -nlp | grep " .. listen_port))>0
if red_on then
state_msg = "<b><font color=\"green\">" .. translate("Running") .. "</font></b>"
else
state_msg = "<b><font color=\"red\">" .. translate("Not running") .. "</font></b>"
end
m=Map("redsocks2",translate("Redsocks2 - General Settings"),
translatef("A modified version of redsocks.Beside the basic function of redsocks,it can redirect TCP connections which are blocked via proxy automatically without a blacklist.") .. "<br><br>状态 - " .. state_msg)
s=m:section(TypedSection,"redsocks2_base",translate("Basic Settings"))
s.anonymous=true
o=s:option(ListValue,"loglevel",translate("Log Level"))
o:value("debug",translate("Verbose"))
o:value("info",translate("Normal"))
o:value("off",translate("Off"))
s=m:section(TypedSection,"redsocks2_redirect",translate("Redirector Settings"))
s.anonymous=true
s.addremove=false
o=s:option(Flag,"enabled",translate("启用透明代理"))
o=s:option(Value,"local_ip",translate("Local IP"))
o.datatype="ip4addr"
o=s:option(Value,"local_port",translate("Local Port"))
o.datatype="uinteger"
o=s:option(Value,"ip",translate("Proxy Server IP"))
o.datatype="ip4addr"
o:depends({proxy_type="shadowsocks"})
o:depends({proxy_type="socks5"})
o:depends({proxy_type="socks4"})
o:depends({proxy_type="http-connect"})
o:depends({proxy_type="http-relay"})
o=s:option(Value,"port",translate("Proxy Server Port"))
o.datatype="uinteger"
o:depends({proxy_type="shadowsocks"})
o:depends({proxy_type="socks5"})
o:depends({proxy_type="http-connect"})
o:depends({proxy_type="http-relay"})
o=s:option(ListValue,"proxy_type",translate("Proxy Server Type"))
o:value("shadowsocks",translate("Shadowsocks"))
o:value("socks5",translate("Socks5"))
o:value("socks4",translate("Socks4代理"))
o:value("http-connect",translate("Http代理"))
o:value("http-relay",translate("http-relay"))
o:value("direct",translate("转发流量至VPN"))
o:value("campus_router",translate("破解路由器限制"))
o=s:option(ListValue,"enc_type",translate("Cipher Method"))
o:depends({proxy_type="shadowsocks"})
o:value("table")
o:value("rc4")
o:value("rc4-md5")
o:value("aes-128-cfb")
o:value("aes-192-cfb")
o:value("aes-256-cfb")
o:value("bf-cfb")
o:value("cast5-cfb")
o:value("des-cfb")
o:value("camellia-128-cfb")
o:value("camellia-192-cfb")
o:value("camellia-256-cfb")
o:value("idea-cfb")
o:value("rc2-cfb")
o:value("seed-cfb")
o=s:option(Flag,"udp_relay",translate("启用UDP转发"),translate("注意不能与HAProxy配合使用"))
o:depends({proxy_type="shadowsocks"})
o=s:option(Value,"username",translate("Username"),translate("Leave empty if your proxy server doesn't need authentication."))
o:depends({proxy_type="socks5"})
o:depends({proxy_type="socks4"})
o:depends({proxy_type="http-connect"})
o:depends({proxy_type="http-relay"})
o=s:option(Value,"password",translate("Password"))
o:depends({proxy_type="shadowsocks"})
o:depends({proxy_type="socks5"})
o:depends({proxy_type="socks4"})
o:depends({proxy_type="http-connect"})
o:depends({proxy_type="http-relay"})
o.password=true
o=s:option(Value,"interface",translate("Outgoing interface"),translate("Outgoing interface for redsocks2."))
o:depends({proxy_type="direct"})
o:depends({proxy_type="campus_router"})
o.rmempty='eth0.2'
o=s:option(Flag,"out_ttl",translate("修改出路由的TTL为64"))
o:depends({proxy_type="campus_router"})
o.rmempty=false
o=s:option(Flag,"in_ttl",translate("修改入路由的TTL自动加1"))
o:depends({proxy_type="campus_router"})
o.rmempty=false
o=s:option(Flag,"autoproxy",translate("Enable Auto Proxy"),translate("不推荐开启"))
o.rmempty=false
o:depends({proxy_type="shadowsocks"})
o:depends({proxy_type="socks5"})
o:depends({proxy_type="direct"})
o:depends({proxy_type="socks4"})
o:depends({proxy_type="http-connect"})
o:depends({proxy_type="http-relay"})
o=s:option(Value,"timeout",translate("Timeout"))
o:depends({autoproxy=1})
o.datatype="uinteger"
o.rmempty=10
o=s:option(Flag,"adbyby",translate("配合Adbyby或koolproxy使用"),translate("未开启Adbyby或koolproxy时请不要勾选此项"))
o.rmempty=true
o.default=true
s=m:section(TypedSection,"redsocks2_iptables",translate("Iptables Redirect Settings"))
s.anonymous=true
o=s:option(Flag,"blacklist_enabled",translate("Enable Blacklist"),translate("Specify local IP addresses which won't be redirect to redsocks2."))
o.rmempty=false
o=s:option(Value,"ipset_blacklist",translate("Blacklist Path"))
o:depends({blacklist_enabled=1})
o=s:option(Flag,"whitelist_enabled",translate("Enable Whitelist"),translate("Specify destination IP addresses which won't be redirect to redsocks2."))
o.rmempty=false
o=s:option(Value,"ipset_whitelist",translate("Whitelist Path"))
o:depends({whitelist_enabled=1})
--o=s:option(Value,"dest_port",translate("Destination Port"))
--o.datatype="uinteger"
-- ---------------------------------------------------
local apply = luci.http.formvalue("cbi.apply")
if apply then
os.execute("/etc/init.d/redsocks2 restart >/dev/null 2>&1 &")
end
return m
| gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.