content
stringlengths 5
1.05M
|
|---|
local mt = require 'vm.manager'
local library = require 'vm.library'
---@param func emmyFunction
function mt:callIpairs(func, values, source)
local tbl = values[1]
func:setReturn(1, library.special['@ipairs'])
func:setReturn(2, tbl)
end
---@param func emmyFunction
function mt:callAtIpairs(func, values, source)
local tbl = values[1]
if tbl then
local emmy = tbl:getEmmy()
if emmy then
if emmy.type == 'emmy.arrayType' then
local value = self:createLibValue(emmy:getName(), source)
func:setReturn(2, value)
end
end
end
end
---@param func emmyFunction
function mt:callPairs(func, values, source)
local tbl = values[1]
func:setReturn(1, library.special['next'])
func:setReturn(2, tbl)
end
---@param func emmyFunction
function mt:callNext(func, values, source)
local tbl = values[1]
if tbl then
local key_index = 1
local value_index = 2
local emmy = tbl:getEmmy()
if emmy then
if emmy.type == 'emmy.arrayType' then
local key = self:createValue('integer', source)
local value = self:createLibValue(emmy:getName(), source)
func:setReturn(key_index, key)
func:setReturn(value_index, value)
elseif emmy.type == 'emmy.tableType' then
local key = self:createLibValue(emmy:getKeyType():getType(), source)
local value = self:createLibValue(emmy:getValueType():getType(), source)
func:setReturn(key_index, key)
func:setReturn(value_index, value)
end
else
local tp = tbl:getType()
local special = tp:match("%<[%w%.]+%>")
if special then
tp = tp:sub(1, #tp - #special)
special = special:sub(2, #special - 1)
end
if tp == "Objects" then
local key = self:createValue('integer', source)
local value = self:createLibValue(special or 'Instance', source)
func:setReturn(key_index, key)
func:setReturn(value_index, value)
elseif tp == "Array" then
local key = self:createValue('integer', source)
func:setReturn(key_index, key)
if special then
local value = self:createLibValue(special, source)
func:setReturn(value_index, value)
end
elseif tp == "Dictionary" then
local key = self:createValue('string', source)
func:setReturn(key_index, key)
if special then
local value = self:createLibValue(special, source)
func:setReturn(value_index, value)
end
end
end
end
end
|
project "libep"
kind "StaticLib"
language "C++"
flags { "FatalCompileWarnings", "OmitDefaultLibrary" }
pic "on"
files { "src/**" }
files { "public/**" }
files { "doc/**" }
files { "project.lua" }
filter { "system:windows" }
buildoptions { "/MP" }
filter { }
-- include common stuff
dofile "../common-proj.lua"
|
local Array = require("array_2d")
function range(start, stop, step)
local step = step or 1
local dataTable = {}
for i = start, stop, step do
table.insert(dataTable, {i})
end
local outArr = Array(#dataTable, 1)
outArr._data = dataTable
return outArr
end
a = range(1, 25):reshape(5, 5)
print(a)
print(a:slice(2, 4, 1, 2, 4, 1))
|
local filesystem = require("utils.filesystem")
local github = require("utils.github")
local configs = require("configs")
local persistence = require("persistence")
local utils = require("utils")
local meta = require("meta")
local versionParser = require("utils.version_parser")
local sceneHandler = require("scene_handler")
local threadHandler = require("utils.threads")
-- TODO - Prompt to restart the program afterwards
local updater = {}
-- Only allow if install is "fused" (.exe on Windows) or ran from a .love
function updater.canUpdate()
return love.filesystem.isFused() or filesystem.fileExtension(love.filesystem.getSource()) == "love"
end
function updater.getAvailableVersions(sort)
local releases = github.getReleases(configs.updater.githubAuthor, configs.updater.githubRepository)
local res = {}
for i, release in ipairs(releases or {}) do
if release.tag_name then
table.insert(res, versionParser(release.tag_name))
end
end
-- Newest first
if sort ~= false then
table.sort(res, function(lhs, rhs) return lhs > rhs end)
end
return res
end
-- Check if we are up to date or not
-- Assume we are up to date if we don't have any available versions
function updater.isLatestVersion()
local current = meta.version
local availableVersions = updater.getAvailableVersions()
if availableVersions and #availableVersions > 0 then
local latest = availableVersions[1]
return latest == current, latest
end
return true
end
function updater.getRelevantRelease(tagName)
local releases = github.getReleases(configs.updater.githubAuthor, configs.updater.githubRepository)
if tagName then
local targetVersion = versionParser(tagName)
for _, release in ipairs(releases or {}) do
local releaseVersion = versionParser(release.tag_name)
if targetVersion == releaseVersion then
return release
end
end
else
return releases[1]
end
end
function updater.getRelevantReleaseAsset(tagName, targetOS)
local release = updater.getRelevantRelease(tagName)
local userOS = targetOS or love.system.getOS()
local userOSLower = userOS:lower()
if release then
for _, asset in ipairs(release.assets) do
local assetOS = asset.name:match("-([A-Za-z0-9_]+)%.zip$")
if assetOS then
local assetOSLower = assetOS:lower()
if assetOSLower == userOSLower or assetOSLower:gsub("_", " ") == userOSLower then
return asset
end
end
end
end
end
function updater.openDownloadPage(tagNameOrAsset)
local asset = tagNameOrAsset
if type(tagNameOrAsset) == "string" then
asset = updater.getRelevantReleaseAsset(tagNameOrAsset)
end
if asset then
local url = asset.browser_download_url
local name = asset.name
love.system.openURL(url)
return true
end
return false
end
-- For now this should just start the download in the browser
-- Make it more sane for the user later on
-- Keep the if statements for now, they are pointless for this use case but sane for the future
function updater.update(tagName)
if updater.canUpdate() then
local asset = updater.getRelevantReleaseAsset(tagName)
if asset then
local url = asset.browser_download_url
local name = asset.name
local appDir = love.filesystem.getSourceBaseDirectory()
local userOS = love.system.getOS()
if userOS == "Windows" then
return updater.openDownloadPage(asset)
elseif userOS == "Linux" then
return updater.openDownloadPage(asset)
elseif userOS == "OS X" then
return updater.openDownloadPage(asset)
end
end
end
return false
end
-- Check for updates and queue up related events
function updater.checkForUpdates()
local code = [[
require("selene").load()
require("selene/selene/wrappers/searcher/love2d/searcher").load()
require("love.system")
local args = {...}
local channelName = unpack(args)
local channel = love.thread.getChannel(channelName)
local updater = require("updater")
local meta = require("meta")
if updater.canUpdate() then
channel:push({"updaterCheckingForUpdates"})
local isLatest, latestVersion = updater.isLatestVersion()
if not isLatest then
-- Metatables are lost over channels
channel:push({"updaterUpdateAvailable", tostring(latestVersion), tostring(meta.version)})
end
end
]]
return threadHandler.createStartWithCallback(code, function(event)
sceneHandler.sendEvent(unpack(event))
end)
end
function updater.startupUpdateCheck()
if configs.updater.checkOnStartup then
updater.checkForUpdates()
end
end
return updater
|
local mod = getfenv(1)
assert(mod)
--module(mod._NAME..".DARKWEAVER_SYTH",package.seeall)
local self = getfenv(1)
function OnCombat(unit,_,mTarget)
self[tostring(unit)] = {
shock = math.random(2,6),
chain = math.random(10,15),
summon_phase = 1,
isHeroic = (mTarget:IsPlayer() and mTarget:IsHeroic() )
}
unit:RegisterAIUpdateEvent(1000)
local say_text = math.random(1,3)
if(say_text == 1) then
unit:MonsterYell("Hrrmm.. Time to.. hrrm.. make my move.")
unit:PlaySoundToSet(10503)
elseif(say_text == 2) then
unit:MonsterYell("Nice pets..hrm.. Yes!")
unit:PlaySoundToSet(10504)
else
unit:MonsterYell("Nice pets have.. weapons. No so...nice.")
unit:PlaySoundToSet(10505)
end
end
function OnWipe(unit)
unit:RemoveAIUpdateEvent()
self[tostring(unit)] = nil
end
function OnTargetKill(unit)
local say_text = math.random()
if(say_text) then
unit:MonsterYell("Death.. meeting life is..")
unit:PlaySoundToSet(10506)
else
unit:MonsterYell("Uhn... Be free..")
unit:PlaySoundToSet(10507)
end
end
function OnDeath(unit)
unit:MonsterYell("No more life... hrm. No more pain.")
unit:PlaySoundToSet(10508)
end
function AIUpdate(unit)
if(unit:IsCasting() ) then return end
if(unit:GetNextTarget() == nil) then
unit:WipeThreatList()
return
end
local vars = self[tostring(unit)]
vars.shock = vars.shock -1
vars.chain = vars.chain - 1
if(vars.chain <= 0) then
local target = unit:GetRandomEnemy()
if(vars.isHeroic) then
unit:FullCastSpellOnTarget(15659,target)
else
unit:FullCastSpellOnTarget(15305,target)
end
vars.chain = math.random(10,20)
elseif(vars.shock <=0) then
local target = unit:GetRandomEnemy()
local spelltocast = math.random(4)
if(spelltocast == 1) then
if(vars.isHeroic) then
unit:FullCastSpellOnTarget(38135,target)
else
unit:FullCastSpellOnTarget(33534,target)
end
elseif(spelltocast == 2) then
if(vars.isHeroic) then
unit:FullCastSpellOnTarget(15616,target)
else
unit:FullCastSpellOnTarget(15039,target)
end
elseif(spelltocast == 3) then
if(vars.isHeroic) then
unit:FullCastSpellOnTarget(21401,target)
else
unit:FullCastSpellOnTarget(12548,target)
end
else
if(vars.isHeroic) then
unit:FullCastSpellOnTarget(38136,target)
else
unit:FullCastSpellOnTarget(33620,target)
end
end
vars.shock = math.random(5,15)
else
local hp = unit:GetHealthPct()
if( (hp <= 90 and vars.summon_phase == 1)
or (hp <= 55 and vars.summon_phase == 2)
or (hp <= 10 and vars.summon_phase == 3) ) then
local summon_spells = {33538,33537,33539,33540}
local angle = 0
for i = 1,4 do
local radius = math.random(5,10)
local x = unit:GetX()+math.cos(math.rad(angle))*radius
local y = unit:GetY()+math.sin(math.rad(angle))*radius
unit:CastSpellAoF(x,y,unit:GetZ(),summon_spells[i])
angle = angle+90
end
unit:MonsterYell("I have pets of my own!")
unit:PlaySoundToSet(10502)
vars.summon_phase = vars.summon_phase + 1
end
end
end
RegisterUnitEvent(18472, 1, OnCombat)
RegisterUnitEvent(18472, 2, OnWipe)
RegisterUnitEvent(18472, 3, OnTargetKill)
RegisterUnitEvent(18472, 4, OnDeath)
RegisterUnitEvent(18472, 21, AIUpdate)
function Elemental_Cast(unit,spell)
unit:FullCastSpell(spell)
end
function Elemental_OnSpawn(unit)
local entry = unit:GetEntry()
if(entry == 19205) then
unit:RegisterLuaEvent(Elemental_Cast,math.random(7,15)*1000,0,38138)
elseif(entry == 19203) then
unit:RegisterLuaEvent(Elemental_Cast,math.random(7,15)*1000,0,38141)
elseif(entry == 19204) then
unit:RegisterLuaEvent(Elemental_Cast,math.random(7,15)*1000,0,38142)
else
unit:RegisterLuaEvent(Elemental_Cast,math.random(7,15)*1000,0,38143)
end
local creator = unit:GetCreator()
if(creator) then
unit:AttackReaction(creator:GetNextTarget(),1,0)
else
unit:AttackReaction(unit:GetRandomEnemy(),1,0)
end
end
function Elemental_OnWipe(unit)
unit:RemoveLuaEvents()
unit:Despawn(1000,0)
end
RegisterUnitEvent(19205, 18, Elemental_OnSpawn)
RegisterUnitEvent(19205, 2, Elemental_OnWipe)
RegisterUnitEvent(19203, 18, Elemental_OnSpawn)
RegisterUnitEvent(19203, 2, Elemental_OnWipe)
RegisterUnitEvent(19204, 18, Elemental_OnSpawn)
RegisterUnitEvent(19204, 2, Elemental_OnWipe)
RegisterUnitEvent(19206, 18, Elemental_OnSpawn)
RegisterUnitEvent(19206, 2, Elemental_OnWipe)
|
local _, private = ...
--[[ Lua Globals ]]
-- luacheck: globals
--[[ Core ]]
local Aurora = private.Aurora
local Base = Aurora.Base
local Hook, Skin = Aurora.Hook, Aurora.Skin
local Color = Aurora.Color
do --[[ FrameXML\PetStable.lua ]]
function Hook.PetStable_SetSelectedPetInfo(icon, name, level, family, talent)
if family then
_G.PetStableTypeText:SetText(family)
else
_G.PetStableTypeText:SetText("")
end
end
function Hook.PetStable_Update()
for i = 1, _G.NUM_PET_STABLE_SLOTS do
local button = _G["PetStableStabledPet"..i]
if i <= _G.GetNumStableSlots() then
button:SetBackdropColor(Color.white, 0.75)
button:SetBackdropBorderColor(Color.frame, 1)
else
button:SetBackdropColor(Color.red, 0.75)
button:SetBackdropBorderColor(Color.red, 1)
end
end
end
end
do --[[ FrameXML\PetStable.xml ]]
if private.isRetail then
function Skin.PetStableSlotTemplate(Button)
local name = Button:GetName()
Base.CropIcon(_G[name.."IconTexture"])
Button.Background:SetColorTexture(0, 0, 0, 1)
Button.Background:SetPoint("TOPLEFT", Button, -1, 1)
Button.Background:SetPoint("BOTTOMRIGHT", Button, 1, -1)
Base.CropIcon(Button.Checked)
Base.CropIcon(Button:GetPushedTexture())
Base.CropIcon(Button:GetHighlightTexture())
end
function Skin.PetStableActiveSlotTemplate(Button)
Skin.PetStableSlotTemplate(Button)
Button.Border:Hide()
Button.PetName:SetPoint("BOTTOMLEFT", Button, "TOPLEFT", -16, 5)
Button.PetName:SetPoint("BOTTOMRIGHT", Button, "TOPRIGHT", 16, 5)
end
else
function Skin.PetStableSlotTemplate(CheckButton)
Base.CreateBackdrop(CheckButton, {
bgFile = [[Interface\PaperDoll\UI-Backpack-EmptySlot]],
tile = false,
offsets = {
left = -1,
right = -1,
top = -1,
bottom = -1,
}
})
Base.CropIcon(CheckButton:GetBackdropTexture("bg"))
Base.SetBackdrop(CheckButton, Color.black, Color.frame.a)
CheckButton._auroraIconBorder = CheckButton
CheckButton:SetBackdropColor(1, 1, 1, 0.75)
CheckButton:SetBackdropBorderColor(Color.frame, 1)
local name = CheckButton:GetName()
Base.CropIcon(_G[name.."IconTexture"])
_G[name.."Background"]:Hide()
CheckButton:SetNormalTexture("")
Base.CropIcon(CheckButton:GetPushedTexture())
Base.CropIcon(CheckButton:GetHighlightTexture())
Base.CropIcon(CheckButton:GetCheckedTexture())
end
end
end
function private.FrameXML.PetStable()
if private.isRetail then
_G.hooksecurefunc("PetStable_SetSelectedPetInfo", Hook.PetStable_SetSelectedPetInfo)
else
_G.hooksecurefunc("PetStable_Update", Hook.PetStable_Update)
end
local PetStableFrame = _G.PetStableFrame
if private.isRetail then
Skin.ButtonFrameTemplate(PetStableFrame)
PetStableFrame.Inset:SetPoint("TOPLEFT", PetStableFrame.LeftInset, "TOPRIGHT", 5)
PetStableFrame.Inset:SetPoint("BOTTOMRIGHT", -5, 126)
_G.PetStableFrameModelBg:SetAtlas("GarrFollower-Shadow")
_G.PetStableFrameModelBg:SetPoint("TOPLEFT", PetStableFrame.Inset, 0, -160)
_G.PetStableFrameModelBg:SetPoint("BOTTOMRIGHT", PetStableFrame.Inset, 0, 0)
_G.PetStableFrameModelBg:SetTexCoord(0.2, 0.8, 0, 0.8)
Skin.InsetFrameTemplate(PetStableFrame.LeftInset)
PetStableFrame.LeftInset:SetPoint("TOPLEFT", 0, -private.FRAME_TITLE_HEIGHT)
PetStableFrame.LeftInset:SetPoint("BOTTOMRIGHT", PetStableFrame, "BOTTOMLEFT", 91, 0)
_G.PetStableActiveBg:Hide()
Skin.InsetFrameTemplate(PetStableFrame.BottomInset)
_G.PetStableFrameStableBg:Hide()
_G.PetStableModel:SetPoint("TOPLEFT", PetStableFrame.Inset)
_G.PetStableModel:SetPoint("BOTTOMRIGHT", PetStableFrame.Inset)
_G.PetStableModelRotateLeftButton:Hide()
_G.PetStableModelRotateRightButton:Hide()
_G.PetStableModelShadow:Hide()
_G.PetStablePetInfo:SetPoint("TOPLEFT", PetStableFrame.Inset)
_G.PetStablePetInfo:SetPoint("BOTTOMRIGHT", PetStableFrame.Inset, "TOPRIGHT", 0, -52)
Base.CropIcon(_G.PetStableSelectedPetIcon)
_G.PetStableNameText:SetFontObject("GameFontNormalHuge2")
_G.PetStableNameText:SetPoint("TOPLEFT", _G.PetStableSelectedPetIcon, "TOPRIGHT", 2, 0)
if not private.isPatch then
_G.PetStableLevelText:SetPoint("BOTTOMLEFT", _G.PetStableSelectedPetIcon, "BOTTOMRIGHT", 2, 0)
end
_G.PetStableTypeText:SetPoint("BOTTOMRIGHT", -6, 6)
_G.PetStableDiet:SetSize(20, 20)
_G.PetStableDiet:SetPoint("TOPRIGHT", -6, -6)
_G.PetStableDietTexture:SetTexture([[Interface\Icons\Ability_Hunter_BeastTraining]])
_G.PetStableDietTexture:SetAllPoints()
Base.CropIcon(_G.PetStableDietTexture)
for i = 1, _G.NUM_PET_ACTIVE_SLOTS do
local slot = _G["PetStableActivePet"..i]
Skin.PetStableActiveSlotTemplate(slot)
if i > 1 then
slot:SetPoint("TOPLEFT", _G["PetStableActivePet"..(i - 1)], "BOTTOMLEFT", 0, -35)
end
end
for i = 1, _G.NUM_PET_STABLE_SLOTS do
Skin.PetStableSlotTemplate(_G["PetStableStabledPet"..i])
end
Skin.UIPanelSquareButton(_G.PetStableNextPageButton, "RIGHT")
Skin.UIPanelSquareButton(_G.PetStablePrevPageButton, "LEFT")
else
Base.SetBackdrop(PetStableFrame)
PetStableFrame:SetBackdropOption("offsets", {
left = 14,
right = 34,
top = 14,
bottom = 75,
})
local bg = PetStableFrame:GetBackdropTexture("bg")
local portrait, tl, tr, bl, br = PetStableFrame:GetRegions()
portrait:Hide()
tl:Hide()
tr:Hide()
bl:Hide()
br:Hide()
_G.PetStableTitleLabel:ClearAllPoints()
_G.PetStableTitleLabel:SetPoint("TOPLEFT", bg)
_G.PetStableTitleLabel:SetPoint("BOTTOMRIGHT", bg, "TOPRIGHT", 0, -private.FRAME_TITLE_HEIGHT)
--_G.PetStableModel:SetPoint("TOPLEFT", PetStableFrame.Inset)
--_G.PetStableModel:SetPoint("BOTTOMRIGHT", PetStableFrame.Inset)
_G.PetStableModelRotateLeftButton:Hide()
_G.PetStableModelRotateRightButton:Hide()
--_G.PetStablePetInfo:SetPoint("TOPLEFT", PetStableFrame.Inset)
--_G.PetStablePetInfo:SetPoint("BOTTOMRIGHT", PetStableFrame.Inset, "TOPRIGHT", 0, -52)
Skin.PetStableSlotTemplate(_G.PetStableCurrentPet)
Skin.PetStableSlotTemplate(_G.PetStableStabledPet1)
Skin.PetStableSlotTemplate(_G.PetStableStabledPet2)
Skin.UIPanelButtonTemplate(_G.PetStablePurchaseButton)
local moneyBG = _G.CreateFrame("Frame", nil, PetStableFrame)
Base.SetBackdrop(moneyBG, Color.frame)
moneyBG:SetBackdropBorderColor(1, 0.95, 0.15)
moneyBG:SetPoint("BOTTOMLEFT", bg, 5, 5)
moneyBG:SetPoint("TOPRIGHT", bg, "BOTTOMRIGHT", -5, 27)
Skin.SmallMoneyFrameTemplate(_G.PetStableMoneyFrame)
_G.PetStableMoneyFrame:SetPoint("BOTTOMRIGHT", moneyBG, 7, 5)
Skin.SmallMoneyFrameTemplate(_G.PetStableCostMoneyFrame)
Skin.UIPanelCloseButton(_G.PetStableFrameCloseButton)
end
end
|
--[[--
ui.field.hidden{
... -- generic ui.field.* arguments, as described for ui.autofield{...}
}
This function inserts a hidden form field in the active slot. It is a high level function compared to ui.hidden_field{...}. If called inside a read-only form, then this function does nothing.
--]]--
function ui.field.hidden(args)
ui.form_element(args, {fetch_value = true}, function(args)
if not args.readonly then
ui.hidden_field{
attr = args.attr,
name = args.html_name,
value = args.value
}
end
end)
end
|
local t = Def.ActorFrame {
LoadActor( THEME:GetPathS("", "_swoosh normal") ) .. {
StartTransitioningCommand=cmd(play);
};
---- DOOR OPEN > CLOSE CLOSE > OPEN
LoadActor(THEME:GetPathB("","2013Door01.png"))..{
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;);
OnCommand=cmd(sleep,0.25;linear,0.25;y,SCREEN_CENTER_Y-370;);
};
LoadActor(THEME:GetPathB("","2013Door02.png"))..{
InitCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;);
OnCommand=cmd(sleep,0.25;linear,0.25;y,SCREEN_CENTER_Y+370;);
};
LoadActor("Score.mp3")..{
StartTransitioningCommand=cmd(stop;sleep,0.5;play);
};
};
return t;
|
-- Run Hello autonomous entities, adapted for Lovr
-- Assumes in namespace: "ent", pl "class" and "stringx"
-- IMPORTS ALL ON REQUIRE
namespace "standard"
require "engine.types"
require "engine.ent"
-- Ent that loads a series of classes, creates them and sets them as children
-- Constructor treats its positional arguments as classes to load on onLoad
class.LoaderEnt(OrderedEnt)
function LoaderEnt:_init(spec)
self.spec = spec
self:super() -- spec not passed through. This class is "sealed"
end
-- Call to load and insert one class by name
function LoaderEnt:load(name, arg)
if stringx.endswith(name, ".txt") then
if arg then print("Warning: Argument to txt file ignored") end
local liststring = lovr.filesystem.load(v)
local list = stringx.split("\n")
for i,v in list do
v = stringx.partition(v, "#")
v = stringx.strip(v, " \r\t")
self:load(v)
end
else
-- Allow (by removing) any accidental .lua files.
-- FIXME?: This means that it is naturally impossible to include a file named lua/init.lua. Oh well.
if stringx.endswith(name, ".lua") then
name = name:sub(1,-5)
end
local CLS = require(name)
if arg then arg = {arg=arg} end
if type(CLS) ~= "table" then
error(string.format("Loaded \"%s\" but it didn't return an entity", name))
end
CLS(arg):insert(self)
end
end
function LoaderEnt:onLoad()
local spec = self.spec
self.spec = nil
local i = 1
while true do -- Iterate over spec
local v = spec[i]
if not v then break end
i = i + 1
-- Potentially create an args array passed to previous ent constructor as "arg"
-- Every argument prefixed with : will be treated as a positional arg
-- Every argument of form --x or --x=v will be set as a named key
local arg
while spec[i] do
local posArg = spec[i]:sub(1,1) == ":"
local flagArg = not posArg and spec[i]:sub(1,1) == "-"
if not posArg and not flagArg then break end
if not arg then arg = {} end
if posArg then
table.insert(arg, spec[i]:sub(2))
else -- Kludge: This will accept ----arg
local k,_,v = stringx.partition(stringx.lstrip(spec[i], "-"), "=")
if #v == 0 then v = true end
arg[k] = v
end
i = i + 1
end
self:load(v, arg)
end
end
|
local game = require('game')
local shader = require('shader')
_G.lg = love.graphics
_G.lk = love.keyboard
_G.lm = love.mouse
-- configuration settings go here:
-- width and height of the window
_G.WIN_WIDTH = 800
_G.WIN_HEIGHT = 600
-- width and height of the cursor in pixels
local CURSOR_SCALE_X = 4
local CURSOR_SCALE_Y = 4
-- if true then the default mouse pointer is visible over the cursor.
local IS_MOUSE_POINTER_VISIBLE = false
-- the variables here are modified by `love.load`
local CURSOR_OFFSET_X, CURSOR_OFFSET_Y = 0, 0
local crosshair = nil
-- mouse helper functions and custom cursor.
_G.mouseX = love.mouse.getX
_G.mouseY = love.mouse.getY
-- @return Vec2: current mouse position as a 2D vector.
function _G.mousePos()
return Vec2(mouseX(), mouseY())
end
-- draws the custom cursor image at current mouse location.
local function draw_cursor()
local x = love.mouse.getX() + CURSOR_OFFSET_X
local y = love.mouse.getY() + CURSOR_OFFSET_Y
lg.setColor(1, 1, 1, 1)
lg.draw(crosshair, x, y, 0, CURSOR_SCALE_X, CURSOR_SCALE_Y)
end
math.randomseed(os.time())
local display_scale = 1
function love.load()
-- record the screen width and screen height of the player's monitor
if GameSettings.fullscreen then love.window.setMode(0, 0) end
_G.SC_WIDTH = love.graphics.getWidth()
_G.SC_HEIGHT = love.graphics.getHeight()
display_scale = SC_HEIGHT / WIN_HEIGHT
SCREEN_OFFSET_X = (SC_WIDTH - WIN_WIDTH) / 4
love.window
.setMode(SC_WIDTH, SC_HEIGHT, {fullscreen = GameSettings.fullscreen})
_G.DISPLAY_WIDTH = SC_WIDTH * display_scale
_G.DISPLAY_HEIGHT = SC_HEIGHT * display_scale
lg.setLineStyle('rough')
love.mouse.setVisible(IS_MOUSE_POINTER_VISIBLE)
lg.setDefaultFilter('nearest', 'nearest')
crosshair = love.graphics.newImage('assets/cursor.png')
local cursorWidth = crosshair:getWidth()
local cursorHeight = crosshair:getHeight()
CURSOR_OFFSET_X = -(cursorWidth / 2) * CURSOR_SCALE_X
CURSOR_OFFSET_Y = -(cursorHeight / 2) * CURSOR_SCALE_Y
game.load()
end
local main_canvas = love.graphics.newCanvas()
function love.draw()
main_canvas:renderTo(function()
lg.clear()
game.draw()
draw_cursor()
end)
-- send data to `shader` here.
love.graphics.setShader(shader)
lg.draw(main_canvas, SCREEN_OFFSET_X, 0, 0, display_scale, display_scale)
love.graphics.setShader()
end
function love.update(dt)
game.update(dt)
end
|
-- 8
--2 O 1
-- 4
function updateAutotiles()
-- calculates auxillary tables for autotile manipulation
project.autotilet, project.autotilet_strict = {}, {}
-- n => set of autotiles n belongs to
-- strict excludes extra autotiles (>=16)
for n = 0, 255 do
project.autotilet[n] = {}
project.autotilet_strict[n] = {}
end
for k, auto in pairs(project.conf.autotiles) do
for o, n in pairs(auto) do
project.autotilet[n][k] = true
if o >= 0 and o < 16 then
project.autotilet_strict[n][k] = true
end
end
end
end
function defaultAutotiles()
local autotiles = {
-- snow
[1] = {
[0] = 32,
[1] = 52,
[2] = 54,
[3] = 53,
[4] = 39,
[5] = 33,
[6] = 35,
[7] = 34,
[8] = 55,
[9] = 49,
[10] = 51,
[11] = 50,
[12] = 48,
[13] = 36,
[14] = 38,
[15] = 37,
-- indexes beyond 15 can be used to allow connecting to extra tiles
[16] = 72,
},
-- ice
[2] = {
[0] = 117,
[1] = 114,
[2] = 116,
[3] = 115,
[4] = 69,
[5] = 66,
[6] = 68,
[7] = 67,
[8] = 101,
[9] = 98,
[10] = 100,
[11] = 99,
[12] = 85,
[13] = 82,
[14] = 84,
[15] = 83,
},
-- bg dirt (simplistic - only corner tiles are used)
[3] = {
[0] = 40,
[1] = 40,
[2] = 40,
[3] = 40,
[4] = 40,
[5] = 58,
[6] = 57,
[7] = 40,
[8] = 40,
[9] = 42,
[10] = 41,
[11] = 40,
[12] = 40,
[13] = 40,
[14] = 40,
[15] = 40,
-- extra
[16] = 16,
[17] = 56,
[18] = 88,
[19] = 103,
[20] = 104,
},
}
return autotiles
end
-- out of bounds matched all tilesets
local oob = {}
for n = 0, 255 do
oob[n] = true
end
local function matchAutotile(room, i, j, strict)
if i >= 0 and i < room.w and j >= 0 and j < room.h then
local t = strict and project.autotilet_strict or project.autotilet
return t[room.data[i][j]]
else
return oob
end
end
local function b1(b) -- converts truthy to 1, falsy to 0
return b and 1 or 0
end
function autotile(room, i, j, k)
local match = matchAutotile(room, i, j, true)
if k and match ~= oob and match[k] then
local nb = b1(matchAutotile(room, i + 1, j)[k])
+ b1(matchAutotile(room, i - 1, j)[k]) * 2
+ b1(matchAutotile(room, i, j + 1)[k]) * 4
+ b1(matchAutotile(room, i, j - 1)[k]) * 8
room.data[i][j] = project.conf.autotiles[k][nb]
end
end
function autotileWithNeighbors(room, i, j, k)
autotile(room, i, j, k)
autotile(room, i + 1, j, k)
autotile(room, i - 1, j, k)
autotile(room, i, j + 1, k)
autotile(room, i, j - 1, k)
end
|
object_draft_schematic_reverse_engineering_shared_enhancement_module = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/reverse_engineering/shared_enhancement_module.iff"
}
ObjectTemplates:addClientTemplate(object_draft_schematic_reverse_engineering_shared_enhancement_module, "object/draft_schematic/reverse_engineering/shared_enhancement_module.iff")
------------------------------------------------------------------------------------------------------------------------------------
object_draft_schematic_reverse_engineering_shared_skill_attachment_1 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/reverse_engineering/shared_skill_attachment_1.iff"
}
ObjectTemplates:addClientTemplate(object_draft_schematic_reverse_engineering_shared_skill_attachment_1, "object/draft_schematic/reverse_engineering/shared_skill_attachment_1.iff")
------------------------------------------------------------------------------------------------------------------------------------
object_draft_schematic_reverse_engineering_shared_skill_attachment_2 = SharedDraftSchematicObjectTemplate:new {
clientTemplateFileName = "object/draft_schematic/reverse_engineering/shared_skill_attachment_2.iff"
}
ObjectTemplates:addClientTemplate(object_draft_schematic_reverse_engineering_shared_skill_attachment_2, "object/draft_schematic/reverse_engineering/shared_skill_attachment_2.iff")
------------------------------------------------------------------------------------------------------------------------------------
|
local sessionutils = require ("sessionutils")
local buildkey = sessionutils.buildkey
local should_exclude = sessionutils.should_exclude
local should_include = sessionutils.should_include
--[===[
[
{
"id": "b7323e78a3ec",
"name": "New Flow Control",
"ttl": 60,
"active": true,
"notes": "New Flow Control Notes and Remarks",
"key": [
{
"attrs": "ip"
}
],
"action": {
"type": "default",
"params": {
"action": {
"type": "default",
"params": {}
}
}
},
"exclude": [],
"include": [
"all"
],
"sequence": [
{
"method": "GET",
"uri": "/",
"cookies": {},
"headers": {
"host": "www.example.com"
},
"args": {}
},
{
"method": "GET",
"uri": "/assets/app.js",
"cookies": {},
"headers": {
"host": "www.example.com"
},
"args": {}
},
{
"method": "POST",
"uri": "/api/v1/login",
"cookies": {},
"headers": {
"host": "api.example.com"
},
"args": {}
}
]
}
]
]===]--
--[[
Flow controls are globals
hence can cause huge performance hurdle.
to minimize the risk, given Host, Method Path are mandatory
map for each request those for quick relevant check
only if match, start the actual checks with optionally other entries matching (headers, attrs)
and redis state etc.
In other words, given the above example
{
"id": "b7323e78a3ec",
"name": "New Flow Control",
"quickmatch": {
"www.example.comGET/": true,
"www.example.comGET/assets/app.js": true,
"api.example.comPOST/api/v1/login": true
},
"ttl": 60,
"active": true,
"notes": "New Flow Control Notes and Remarks",
"key": [
{
"attrs": "ip"
}
],
...
}
chronological order matter to some extent
sequence matter
if not should exclude and should include
scan sequence from end to start
if match the last entry of the sequence
redis set should be at length of (sequence -1 or sequence).
for each item in the seq
if match item
if redis set length equals to index - 1
add to redis
]]
function flow_check(flow_ids, request_map)
local must_match = false
for _, id in ipairs(flow_ids) do
local rule = globals.FlowControlRules[id]
if rule then
if should_exclude(rule.exclude, request_map) then return false end
if not should_include(rule.include, request_map) then return false end
local rule_sequence = rule.sequence
local seqlen = #rule_sequence
local pre_entries = slice(rule_sequence, 1, seqlen - 1)
local last_entry = rule_sequence[seqlen]
if request_sequence_entry_matched(request_map, last_entry) then
must_match = true
if redis_list_length ~= seqlen then
-- BLOCK
else
-- reset list
end
end
for idx, sequence in ipairs(pre_entries) do
if request_sequence_entry_matched(request_map, sequence) then
-- check redis current state for this key and
-- compare list length vs idx.
-- length ~= idx ignore // user can refresh the page, hit "back", etc.
if idx == redis_list_length then
-- add to the list
add_to_sequence(sequence, request_map)
end
end
end
end
end
end
|
return function(Modules, ReplicatedModules)
local public = {}
local private = {}
local GameGui
local PlayerData = {}
local Bindings = {}
function public.Awake()
GameGui = Modules.GuiLibrary.GetGameGui()
end
function public.Init()
Modules.Remotes.Bind("UpdateStats", private.UpdateStats)
end
function private.UpdateStats(stats)
assert(type(stats) == "table", "Data sent from server must be a table to be updated")
-- Before updating the ui, we'll make sure we set all data!
for key, value in pairs(stats) do
PlayerData[key] = value
end
for key, value in pairs(stats) do
if Bindings[key] then
for _, f in pairs(Bindings[key]) do
f(value)
end
end
end
end
function public.GetPlayerData()
return PlayerData
end
function private.Bind(key, func)
if not Bindings[key] then
Bindings[key] = {}
end
table.insert(Bindings[key], func)
end
return public
end
|
-- Key: model name
-- Value: Model
Race.modelCache = {}
function Race:__init(args)
if settings.debugLevel >= 2 then
print("Race:__init")
end
self.state = nil
self.stateName = nil
self.version = args.version
self.numPlayers = -1
self.playerIdToInfo = {}
self.courseInfo = {}
self.recordTime = -1
self.recordTimePlayerName = ""
self.assignedVehicleId = -2
self.checkpoints = {}
self.lapTimes = {}
self.leaderboard = {}
self:SetState(args)
-- Request Models from server, if we don't have them already.
if Race.modelCache.TargetArrow == nil then
OBJLoader.Request("TargetArrow" , self , self.ModelReceive)
end
Utility.EventSubscribe(self , "Render")
Utility.NetSubscribe(self , "SetState")
end
function Race:Terminate()
local args = {}
args.stateName = "StateNone"
self:SetState(args)
Utility.EventUnsubscribeAll(self)
Utility.NetUnsubscribeAll(self)
end
function Race:Render()
if self.state then
self.state:Run()
end
end
function Race:SetState(args)
if settings.debugLevel >= 2 then
print("Changing state to "..args.stateName)
end
-- Call End function on previous state.
if self.state and self.state.End then
self.state:End()
end
self.state = _G[args.stateName](self , args)
self.stateName = args.stateName
end
function Race:UpdateLeaderboard(racePosTracker , currentCheckpoint , finishedPlayerIds)
--
-- Transform the (playerId , bool) maps into arrays and fill checkpoint distance array.
--
local racePosTrackerArray = {}
local playerIdToCheckpointDistanceSqr = {}
for cp , array in pairs(racePosTracker) do
racePosTrackerArray[cp] = {}
for id , distSqr in pairs(racePosTracker[cp]) do
table.insert(racePosTrackerArray[cp] , id)
playerIdToCheckpointDistanceSqr[id] = distSqr[1]
end
-- Sort player id array by players' distances to their target checkpoints.
table.sort(
racePosTrackerArray[cp] ,
function(id1 , id2)
return (
playerIdToCheckpointDistanceSqr[id1] <
playerIdToCheckpointDistanceSqr[id2]
)
end
)
end
--
-- Calculate top player positions.
--
self.leaderboard = {}
self.numPlayers = 0
-- Finished players
for n = 1 , #finishedPlayerIds do
table.insert(self.leaderboard , finishedPlayerIds[n])
self.numPlayers = self.numPlayers + 1
end
-- Racing players.
for cpIndex = currentCheckpoint , 0 , -1 do
local numPlayerIds = #racePosTrackerArray[cpIndex]
for playerIdIndex = 1 , numPlayerIds do
local playerId = racePosTrackerArray[cpIndex][playerIdIndex]
table.insert(self.leaderboard , playerId)
self.numPlayers = self.numPlayers + 1
end
end
end
function Race:ModelReceive(model , name)
Race.modelCache[name] = model
end
|
function dorelease()
--
-- Helper function: runs a command (formatted, with optional arguments) and
-- suppresses any output. Works on both Windows and POSIX. Might be a good
-- candidate for a core function.
--
local function exec(cmd, ...)
cmd = string.format(cmd, ...)
local z = os.execute(cmd .. " > output.log 2> error.log")
os.remove("output.log")
os.remove("error.log")
return z
end
print("Updating version number...")
local f = io.popen("git rev-list --count HEAD")
local rev = string.match(f:read("*a"), ".*%S")
f:close()
f = io.popen("git log --format=format:%H -1")
local sha1 = f:read("*a")
f:close()
io.output("Decoder/version.h")
io.write("#define BROADWAY_VERSION " ..rev .. "\n")
io.write("#define BROADWAY_VERSION_STR \"version " ..rev .. " (commit " .. sha1 .. ")\"\n")
io.close()
print( "Finished.")
print("")
print( "Now run `make release`")
end
|
local dns = require('dns')
local nb = require('dns.nbio')
-- Parse config options
local tx, rx = 0, 0
local udp = false
local count = 65536
local reps = 1
local host, port = '127.0.0.1', 53
local receiver = false
local k = 1 while k <= #arg do
local o = arg[k]
if o == '-r' then
receiver = true
elseif o == '-u' then
udp = true
elseif o == '-n' then
reps, k = tonumber(arg[k + 1]), k + 1
elseif o == '-s' then
host, k = arg[k + 1], k + 1
elseif o == '-p' then
port, k = tonumber(arg[k + 1]), k + 1
end
k = k + 1
end
local function client(sock, xchg, resp, i)
tx = tx + 1
local query = dns.packet(32)
query:question('\4test', dns.type.SOA)
query:id(i)
assert(xchg(sock, query, resp, true))
assert(resp:parse())
rx = rx + 1
end
local function ping(sock, xchg, tries)
local resp = dns.packet(64)
for i = 0, tries - 1 do
assert(nb.go(client, sock, xchg, resp, i))
end
end
local function pong(sock, send, recv, addr)
local msg = dns.packet(64)
while true do
msg:clear()
local n = recv(sock, msg, addr)
if not n then break end
rx = rx + 1
assert(msg:parse())
msg:qr(true)
assert(send(sock, msg, addr))
tx = tx + 1
end
end
-- Receiver mode
local ts = nb.now()
if receiver and udp then
local server = nb.socket(nb.family(host), 'dgram')
server:bind(host, port)
assert(nb.go(pong, server, nb.udpsend, nb.udprecv, nb.addr()))
elseif receiver and not udp then
local server = nb.socket(nb.family(host), 'stream')
server:bind(host, port)
assert(nb.go(function()
while true do
local c = assert(server:accept())
nb.go(pong, c, nb.tcpsend, nb.tcprecv)
end
end))
elseif udp then
local c = nb.socket(nb.family(host), 'dgram')
assert(nb.go(function ()
assert(c:connect(host, port))
for _ = 1, reps do
ping(client, nb.udpxchg, count)
end
end))
else
local c = nb.socket(nb.family(host), 'stream')
assert(nb.go(function ()
assert(c:connect(host, port))
for _ = 1, reps do
ping(client, nb.tcpxchg, count)
end
end))
end
local ok, err, co = nb.run()
if not ok then
print(err, debug.traceback(co))
end
-- Print metrics
local elapsed = (nb.now() - ts)
print(string.format('rx: %d, tx: %d, elapsed: %.02fs, rate: %.02f req/s', rx, tx, elapsed, rx/elapsed))
|
strfile = { }
function strfile.open(s)
return {
_buf = s,
_pos = 1,
_readline = function(self)
if self._pos == nil then
return nil
end
local nl = self._buf:find("\n", self._pos, true)
local line
if nl then
line = self._buf:sub(self._pos, nl - 1)
nl = nl + 1
else
line = self._buf:sub(self._pos)
end
self._pos = nl
return line
end,
lines = function(self)
return self._readline, self, true
end,
close = function(self) end,
}
end
|
local ok, nvimtree = pcall(require, "nvim-tree")
if not ok then
return
end
local signs = require("utils").signs
local colors = require("theme").colors
vim.g.nvim_tree_special_files = {}
vim.g.nvim_tree_add_trailing = 1
vim.g.nvim_tree_show_icons = {
git = 0,
folders = 1,
files = 1,
folder_arrows = 0,
}
vim.g.nvim_tree_icons = {
default = "",
symlink = "",
git = {
unstaged = "✗",
staged = "✓",
unmerged = "",
renamed = "➜",
untracked = "★",
deleted = "",
ignored = "◌",
},
folder = {
arrow_open = "",
arrow_closed = "",
default = "",
open = "",
empty = "",
empty_open = "",
symlink = "",
symlink_open = "",
},
}
nvimtree.setup {
disable_netrw = true,
renderer = {
indent_markers = {
enable = true,
icons = {
corner = "└ ",
edge = "│ ",
none = " ",
},
},
},
hijack_netrw = true,
open_on_setup = false,
ignore_ft_on_setup = {},
open_on_tab = false,
hijack_cursor = false,
update_cwd = false,
update_to_buf_dir = {
enable = true,
auto_open = true,
},
diagnostics = {
enable = false,
icons = {
hint = signs.Hint,
info = signs.Info,
warning = signs.Warning,
error = signs.Error,
},
},
update_focused_file = {
enable = false,
update_cwd = false,
ignore_list = {},
},
system_open = {
cmd = nil,
args = {},
},
filters = {
dotfiles = false,
custom = {
".git",
},
},
git = {
enable = false,
ignore = false,
timeout = 500,
},
view = {
width = 30,
height = 30,
hide_root_folder = true,
side = "left",
auto_resize = true,
mappings = {
custom_only = false,
list = {},
},
number = false,
relativenumber = false,
signcolumn = "yes",
},
trash = {
cmd = "trash",
require_confirm = true,
},
actions = {
change_dir = {
global = false,
},
open_file = {
quit_on_open = true,
},
},
}
|
-- This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
--
-- This file is compatible with Lua 5.3
local class = require("class")
require("kaitaistruct")
local str_decode = require("string_decode")
ValidEqStrEncodings = class.class(KaitaiStruct)
function ValidEqStrEncodings:_init(io, parent, root)
KaitaiStruct._init(self, io)
self._parent = parent
self._root = root or self
self:_read()
end
function ValidEqStrEncodings:_read()
self.len_of_1 = self._io:read_u2le()
self.str1 = str_decode.decode(self._io:read_bytes(self.len_of_1), "ASCII")
if not(self.str1 == "Some ASCII") then
error("not equal, expected " .. "Some ASCII" .. ", but got " .. self.str1)
end
self.len_of_2 = self._io:read_u2le()
self.str2 = str_decode.decode(self._io:read_bytes(self.len_of_2), "UTF-8")
if not(self.str2 == "\u{3053}\u{3093}\u{306b}\u{3061}\u{306f}") then
error("not equal, expected " .. "\u{3053}\u{3093}\u{306b}\u{3061}\u{306f}" .. ", but got " .. self.str2)
end
self.len_of_3 = self._io:read_u2le()
self.str3 = str_decode.decode(self._io:read_bytes(self.len_of_3), "SJIS")
if not(self.str3 == "\u{3053}\u{3093}\u{306b}\u{3061}\u{306f}") then
error("not equal, expected " .. "\u{3053}\u{3093}\u{306b}\u{3061}\u{306f}" .. ", but got " .. self.str3)
end
self.len_of_4 = self._io:read_u2le()
self.str4 = str_decode.decode(self._io:read_bytes(self.len_of_4), "CP437")
if not(self.str4 == "\u{2591}\u{2592}\u{2593}") then
error("not equal, expected " .. "\u{2591}\u{2592}\u{2593}" .. ", but got " .. self.str4)
end
end
|
local lspconfig = require('lspconfig')
local lsp = require('sh.lsp')
local M = {}
function M.lua_setup()
return {
{
formatCommand = 'lua-format --tab-width=2 --indent-width 2 --column-limit=150 --align-parameter --chop-down-table --chop-down-kv-table -i',
formatStdin = true,
rootMarkers = {".git"}
}
}
end
function M.setup()
lspconfig.efm.setup {
on_attach = lsp.common_on_attach,
capabilities = lsp.capabilities,
init_options = {documentFormatting = true, documentSymbol = true, codeAction = true, hover = true},
filetypes = {"python", "lua"},
settings = {languages = {lua = M.lua_setup()}}
}
end
return M
|
local schema = require('vn-night.schema').schema
local u = require('vn-night.utils')
function load_syntax()
local syntax = {
Normal = { fg=schema.fg, bg=schema.none };
Terminal = { fg=schema.fg, bg=schema.none };
SignColumn = { fg=schema.fg, bg=schema.none };
FoldColumn = { fg=schema.fg_disabled, bg=schema.none };
VertSplit = { fg=schema.gray4, bg=schema.none };
Folded = { fg=schema.gray3, bg=schema.bg_highlight };
EndOfBuffer = { fg=schema.bg, bg=schema.none};
IncSearch = { fg=schema.fg_invert, bg=schema.orange };
Search = { bg=schema.bg_visual };
Visual = { bg=schema.bg_visual};
VisualNOS = { bg=schema.bg_visual};
ColorColumn = { fg=schema.none, bg=schema.bg_highlight };
Conceal = { fg=schema.gray3, bg=schema.none};
Cursor = { fg=schema.fg_invert, bg=schema.gray7, };
lCursor = { fg=schema.fg_invert, bg=schema.gray7, };
CursorIM = { fg=schema.fg_invert, bg=schema.gray7, };
CursorColumn = { fg=schema.none, bg=schema.bg_highlight, style='underline' };
CursorLine = { fg=schema.none, bg=schema.bg_highlight };
LineNr = { fg=schema.gray2, bg=schema.none }; -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set.
CursorLineNr = { fg=schema.orange, bg=schema.none, style="bold" }; -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. This is for current line.
DiffAdd = { fg=schema.fg_invert, bg=schema.green };
DiffChange = { fg=schema.fg_invert, bg=schema.yellow };
DiffDelete = { fg=schema.fg_invert, bg=schema.red };
DiffText = { fg=schema.fg_invert, bg=schema.fg };
Directory = { fg=schema.blue, bg=schema.none};
ErrorMsg = { fg=schema.red, bg=schema.none, style='bold'};
WarningMsg = { fg=schema.yellow, bg=schema.none, style='bold'};
ModeMsg = { fg=schema.fg, bg=schema.none, style='bold'};
MatchParen = { fg=schema.orange, bg=schema.none, style='bold'};
NonText = { fg=schema.fg_disabled, bg=schema.none };
Whitespace = { fg=schema.gray2, bg=schema.none };
SpecialKey = { fg=schema.fg_disabled, bg=schema.none };
Pmenu = { fg=schema.fg_popup, bg=schema.bg_popup };
PmenuSel = { fg=schema.fg_popup, bg=schema.bg_popup_sel };-- Popup menu: selected item.
PmenuSbar = { bg=schema.bg_popup };-- Popup menu: scrollbar.
PmenuThumb = { bg=schema.bg_popup_sel };-- Popup menu: Thumb of the scrollbar.
NormalFloat = { fg=schema.fg,bg=schema.bg_popup };
WildMenu = { fg=schema.fg, bg=schema.green };
Question = { fg=schema.yellow, bg=schema.none };
TabLineFill = { fg=schema.none, bg=schema.none };
TabLineSel = { fg=schema.blue, bg=schema.none };
StatusLine = { fg=schema.fg, bg=schema.gray2 };-- status line of current window
StatusLineNC = { fg=schema.fg, bg=schema.gray2 };-- status lines of not-current windows
SpellBad = { fg=schema.red, bg=schema.none, style='undercurl'};
SpellCap = { fg=schema.blue, bg=schema.none, style='undercurl'};
SpellLocal = { fg=schema.cyan, bg=schema.none, style='undercurl'};
SpellRare = { fg=schema.purple, bg=schema.none, style='undercurl'};
QuickFixLine = { fg=schema.purple, bg=schema.none, style='bold' };
Debug = { fg=schema.orange, bg=schema.none };
Boolean = { fg=schema.orange, bg=schema.none, style='italic' };
Number = { fg=schema.purple, bg=schema.none };
Float = { fg=schema.purple, bg=schema.none };
PreProc = { fg=schema.purple, bg=schema.none };
PreCondit = { fg=schema.purple, bg=schema.none };
Include = { fg=schema.purple, bg=schema.none };
Define = { fg=schema.purple, bg=schema.none };
Conditional = { fg=schema.purple, bg=schema.none };
Repeat = { fg=schema.purple, bg=schema.none };
Keyword = { fg=schema.red, bg=schema.none };
Typedef = { fg=schema.red, bg=schema.none };
Exception = { fg=schema.red, bg=schema.none };
Statement = { fg=schema.red, bg=schema.none };
Error = { fg=schema.red, bg=schema.none };
StorageClass = { fg=schema.orange, bg=schema.none };
Tag = { fg=schema.orange, bg=schema.none };
Label = { fg=schema.orange, bg=schema.none };
Structure = { fg=schema.orange, bg=schema.none };
Operator = { fg=schema.purple, bg=schema.none };
Title = { fg=schema.orange, bg=schema.none, style='bold'};
Special = { fg=schema.yellow, bg=schema.none };
SpecialChar = { fg=schema.yellow, bg=schema.none };
Type = { fg=schema.teal, bg=schema.none };
Function = { fg=schema.yellow, bg=schema.none };
String = { fg=schema.green, bg=schema.none };
Character = { fg=schema.green, bg=schema.none };
Constant = { fg=schema.cyan, bg=schema.none };
Macro = { fg=schema.cyan, bg=schema.none };
Identifier = { fg=schema.blue, bg=schema.none };
Comment = { fg=schema.fg_disabled, bg=schema.none, style='italic'};
SpecialComment = { fg=schema.gray3, bg=schema.none};
Todo = { fg=schema.cyan, bg=schema.none};
Delimiter = { fg=schema.fg, bg=schema.none};
Ignore = { fg=schema.gray3, bg=schema.none};
Underlined = { fg=schema.none, bg=schema.none, style='underline'};
GitGutterAdd = { fg=schema.green, bg=schema.none};
GitGutterChange = { fg=schema.blue, bg=schema.none};
GitGutterDelete = { fg=schema.red, bg=schema.none};
GitGutterChangeDelete = { fg=schema.purple, bg=schema.none};
NvimTreeFolderName = { fg=schema.blue, bg=schema.none};
NvimTreeRootFolder = { fg=schema.red, bg=schema.none, style='bold' };
NvimTreeOpenedFolderName = { fg=schema.blue, bg=schema.none, style='bold' };
TSParameter = { fg=schema.fg, bg=schema.none };
LspReferenceRead = { fg=schema.none, bg=schema.bg_highlight, style='bold' };
LspReferenceWrite = { fg=schema.none, bg=schema.bg_highlight, style='bold' };
LspReferenceText = { fg=schema.none, bg=schema.bg_highlight, style='bold' };
LspDiagnosticsSignError = { fg=schema.diag.danger.fg, style='bold'};
LspDiagnosticsSignWarning = { fg=schema.diag.warning.fg, style='bold'};
LspDiagnosticsSignInformation = { fg=schema.diag.info.fg, style='bold'};
LspDiagnosticsSignHint = { fg=schema.diag.hint.fg, style='bold'};
LspDiagnosticsVirtualTextError = { fg=schema.diag.danger.fg, bg=schema.diag.danger.bg, style='bold'};
LspDiagnosticsVirtualTextWarning = { fg=schema.diag.warning.fg, bg=schema.diag.warning.bg, style='bold' };
LspDiagnosticsVirtualTextInfomation = { fg=schema.diag.info.fg, bg=schema.diag.info.bg, style='bold'};
LspDiagnosticsVirtualTextHint = { fg=schema.diag.hint.fg, bg=schema.diag.hint.bg, style='bold'};
LspDiagnosticsUnderlineError = { fg=schema.diag.danger.fg, bg=schema.diag.danger.bg, style='undercurl,bold'};
LspDiagnosticsUnderlineWarning = { fg=schema.diag.warning.fg, bg=schema.diag.warning.bg, style='undercurl,bold'};
LspDiagnosticsUnderlineInformation = { fg=schema.diag.info.fg, bg=schema.diag.info.bg, style='undercurl,bold'};
LspDiagnosticsUnderlineHint = { fg=schema.diag.hint.fg, bg=schema.diag.hint.bg, style='undercurl,bold'};
LspDiagnosticsDefaultError = { fg=schema.diag.danger.fg, };
LspDiagnosticsDefaultWarning = { fg=schema.diag.warning.fg,};
LspDiagnosticsDefaultInformation = { fg=schema.diag.info.fg, };
LspDiagnosticsDefaultHint = { fg=schema.diag.hint.fg, };
CocErrorHighlight = { fg=schema.diag.danger.fg, bg=schema.diag.danger.bg, style='undercurl,bold'};
CocWarningHighlight = { fg=schema.diag.warning.fg, bg=schema.diag.warning.bg, style='undercurl,bold'};
CocInfoHighlight = { fg=schema.diag.info.fg, bg=schema.diag.info.bg, style='undercurl,bold'};
CocHintHighlight = { fg=schema.diag.hint.fg, bg=schema.diag.hint.bg, style='undercurl,bold'};
CocHighlightRead = { fg=schema.none, bg=schema.bg_highlight, style='bold' };
CocHighlightWrite = { fg=schema.none, bg=schema.bg_highlight, style='bold' };
CocHighlightText = { fg=schema.none, bg=schema.bg_highlight, style='bold' };
CocErrorSign = { fg=schema.diag.danger.fg, style='bold'};
CocWarningSign = { fg=schema.diag.warning.fg, style='bold'};
CocInfoSign = { fg=schema.diag.info.fg, style='bold'};
CocHintSign = { fg=schema.diag.hint.fg, style='bold'};
StartifyPath = { fg=schema.fg_disabled }
}
return syntax
end
function setup()
vim.api.nvim_command('hi clear')
if vim.fn.exists('syntax_on') then
vim.api.nvim_command('syntax reset')
end
vim.o.background = 'dark'
vim.o.termguicolors = true
local syntax = load_syntax()
for group,colors in pairs(syntax) do
u.highlight(group,colors)
end
end
return {
schema = schema;
setup = setup;
}
|
-- Converted From LST file data\pathfinder\paizo\roleplaying_game\core_essentials\ce_abilities_familiar_cr.lst
-- From repository https://github.com/pcgen/pcgen at commit 11ceb52482855f2e5f0f6c108c3dc665b12af237
SetSource({
SourceLong="Core Rulebook",
SourceShort="CR",
SourceWeb="http://paizo.com/store/downloads/pathfinder/pathfinderRPG/v5748btpy88yj",
SourceDate="2009-08",
})
ModifyAbility({
Name="Default",
Category="Internal",
Bonuses={
{
Category="VAR",
Formula=Formula("1"),
Variables={
"FamiliarGrantedBonus_1",
},
},
},
})
ModifyAbility({
Name="Default",
Category="Internal",
Bonuses={
{
Category="VAR",
Formula=Formula("2"),
Variables={
"FamiliarGrantedBonus_2",
},
},
},
})
ModifyAbility({
Name="Default",
Category="Internal",
Bonuses={
{
Category="VAR",
Formula=Formula("3"),
Variables={
"FamiliarGrantedBonus_3",
},
},
},
})
ModifyAbility({
Name="Default",
Category="Internal",
Bonuses={
{
Category="VAR",
Formula=Formula("4"),
Variables={
"FamiliarGrantedBonus_4",
},
},
},
})
DefineAbility({
Name="Standard Familiar List",
Category="Internal",
FollowerTypes={
{
Type="Familiar",
IsValidFollower=function (follower)
return follower.Name == "Bat" or follower.Name == "Cat" or follower.Name == "Hawk" or follower.Name == "Lizard" or follower.Name == "Monkey" or follower.Name == "Owl" or follower.Name == "Rat" or follower.Name == "Raven" or follower.Name == "Toad" or follower.Name == "Viper" or follower.Name == "Weasel"
end,
FollowerLevelAdjustment=0,
},
},
})
DefineAbility({
Name="Improved Familiar List",
Category="Internal",
})
ModifyAbility({
Name="Improved Familiar List",
Category="Internal",
Abilities={
{
Category="Internal",
Nature="AUTOMATIC",
Names={
"Improved Familiar List (3rd Level)",
},
Conditions={
function (character, item, sources)
return (character.Variables["FamiliarMasterLVL"] >= 3) or (character.Variables["Caster_Level_Highest__Arcane"] >= 3) or (character.Variables["ImprovedFamiliarQualifierLVL"] >= 3)
end,
},
},
},
})
ModifyAbility({
Name="Improved Familiar List",
Category="Internal",
Abilities={
{
Category="Internal",
Nature="AUTOMATIC",
Names={
"Improved Familiar List (5th Level)",
},
Conditions={
function (character, item, sources)
return (character.Variables["FamiliarMasterLVL"] >= 5) or (character.Variables["Caster_Level_Highest__Arcane"] >= 5) or (character.Variables["ImprovedFamiliarQualifierLVL"] >= 5)
end,
},
},
},
})
ModifyAbility({
Name="Improved Familiar List",
Category="Internal",
Abilities={
{
Category="Internal",
Nature="AUTOMATIC",
Names={
"Improved Familiar List (7th Level)",
},
Conditions={
function (character, item, sources)
return (character.Variables["FamiliarMasterLVL"] >= 7) or (character.Variables["Caster_Level_Highest__Arcane"] >= 7) or (character.Variables["ImprovedFamiliarQualifierLVL"] >= 7)
end,
},
},
},
})
DefineAbility({
Name="Improved Familiar List (3rd Level)",
Category="Internal",
})
ModifyAbility({
Name="Improved Familiar List (3rd Level)",
Category="Internal",
FollowerTypes={
{
Type="Familiar",
IsValidFollower=function (follower)
return follower.Name == "Rat (Dire)"
end,
FollowerLevelAdjustment=0,
},
},
})
ModifyAbility({
Name="Improved Familiar List (3rd Level)",
Category="Internal",
FollowerTypes={
{
Type="Familiar",
IsValidFollower=function (follower)
return follower.Name == "Bat (Celestial)" or follower.Name == "Cat (Celestial)" or follower.Name == "Hawk (Celestial)" or follower.Name == "Lizard (Celestial)" or follower.Name == "Monkey (Celestial)" or follower.Name == "Owl (Celestial)" or follower.Name == "Rat (Celestial)" or follower.Name == "Raven (Celestial)" or follower.Name == "Toad (Celestial)" or follower.Name == "Viper (Celestial)" or follower.Name == "Weasel (Celestial)"
end,
FollowerLevelAdjustment=0,
Conditions={
function (character, item, sources)
return character.IsAlignment("LG") or character.IsAlignment("NG") or character.IsAlignment("CG") or character.IsAlignment("LN") or character.IsAlignment("TN") or character.IsAlignment("CN")
end,
},
},
},
})
ModifyAbility({
Name="Improved Familiar List (3rd Level)",
Category="Internal",
FollowerTypes={
{
Type="Familiar",
IsValidFollower=function (follower)
return follower.Name == "Bat (Fiendish)" or follower.Name == "Cat (Fiendish)" or follower.Name == "Hawk (Fiendish)" or follower.Name == "Lizard (Fiendish)" or follower.Name == "Monkey (Fiendish)" or follower.Name == "Owl (Fiendish)" or follower.Name == "Rat (Fiendish)" or follower.Name == "Raven (Fiendish)" or follower.Name == "Toad (Fiendish)" or follower.Name == "Viper (Fiendish)" or follower.Name == "Weasel (Fiendish)"
end,
FollowerLevelAdjustment=0,
Conditions={
function (character, item, sources)
return character.IsAlignment("LE") or character.IsAlignment("NE") or character.IsAlignment("CE") or character.IsAlignment("LN") or character.IsAlignment("TN") or character.IsAlignment("CN")
end,
},
},
},
})
DefineAbility({
Name="Improved Familiar List (5th Level)",
Category="Internal",
})
ModifyAbility({
Name="Improved Familiar List (5th Level)",
Category="Internal",
FollowerTypes={
{
Type="Familiar",
IsValidFollower=function (follower)
return follower.Name == "Elemental (Air/Small)" or follower.Name == "Elemental (Earth/Small)" or follower.Name == "Elemental (Fire/Small)" or follower.Name == "Elemental (Water/Small)" or follower.Name == "Stirge"
end,
FollowerLevelAdjustment=0,
},
},
})
DefineAbility({
Name="Improved Familiar List (7th Level)",
Category="Internal",
})
ModifyAbility({
Name="Improved Familiar List (7th Level)",
Category="Internal",
FollowerTypes={
{
Type="Familiar",
IsValidFollower=function (follower)
return follower.Name == "Homunculus" or follower.Name == "Mephit (Air)" or follower.Name == "Mephit (Dust)" or follower.Name == "Mephit (Earth)" or follower.Name == "Mephit (Fire)" or follower.Name == "Mephit (Ice)" or follower.Name == "Mephit (Magma)" or follower.Name == "Mephit (Ooze)" or follower.Name == "Mephit (Salt)" or follower.Name == "Mephit (Steam)" or follower.Name == "Mephit (Water)"
end,
FollowerLevelAdjustment=0,
},
},
})
ModifyAbility({
Name="Improved Familiar List (7th Level)",
Category="Internal",
FollowerTypes={
{
Type="Familiar",
IsValidFollower=function (follower)
return follower.Name == "Pseudodragon"
end,
FollowerLevelAdjustment=0,
Conditions={
function (character, item, sources)
return not (character.IsAlignment("LE") or character.IsAlignment("NE") or character.IsAlignment("CE"))
end,
},
},
},
})
ModifyAbility({
Name="Improved Familiar List (7th Level)",
Category="Internal",
FollowerTypes={
{
Type="Familiar",
IsValidFollower=function (follower)
return follower.Name == "Devil (Imp)"
end,
FollowerLevelAdjustment=0,
Conditions={
function (character, item, sources)
return not (character.IsAlignment("LG") or character.IsAlignment("NG") or character.IsAlignment("CG") or character.IsAlignment("CN") or character.IsAlignment("CE"))
end,
},
},
},
})
ModifyAbility({
Name="Improved Familiar List (7th Level)",
Category="Internal",
FollowerTypes={
{
Type="Familiar",
IsValidFollower=function (follower)
return follower.Name == "Demon (Quasit)"
end,
FollowerLevelAdjustment=0,
Conditions={
function (character, item, sources)
return not (character.IsAlignment("LG") or character.IsAlignment("LN") or character.IsAlignment("LE") or character.IsAlignment("NG") or character.IsAlignment("CG"))
end,
},
},
},
})
ModifyAbility({
Name="Default",
Category="Internal",
Bonuses={
{
Category="ABILITYPOOL",
Formula=Formula("1"),
Conditions={
function (character, item, sources)
return (character.Variables["FamiliarLVL"] >= 1)
end,
},
Variables={
"Familiar Alertness Choice",
},
},
},
})
DefineAbility({
Name="Familiar's Alertness ability Active",
Key="Familiar Alertness Choice ~ Alertness Active",
Category="Special Ability",
Description={
Format="PC has a familiar that has the Alertness (Ex) ability and it is within arms' reach, the master gains the Alertness feat.",
},
Abilities={
{
Category="FEAT",
Nature="VIRTUAL",
Names={
"Alertness",
},
},
},
Types={
"FamiliarAlertnessChoice",
"SpecialQuality",
"Extraordinary",
},
})
DefineAbility({
Name="Familiar's Alertness ability Inactive",
Key="Familiar Alertness Choice ~ Alertness Inactive",
Category="Special Ability",
Description={
Format="PC does not have a familiar with the Alertness class feature or is not within arm's reach.",
},
Types={
"FamiliarAlertnessChoice",
"SpecialQuality",
"Extraordinary",
},
})
DefineAbility({
Name="Familiar Type",
Key="Familiar ~ Augmented Animal",
Category="Internal",
Templates={
"Familiar ~ Augmented Animal",
},
})
DefineAbility({
Name="Familiar",
Key="Companion ~ Familiar",
Category="Internal",
})
ModifyAbility({
Name="Companion ~ Familiar",
Category="Internal",
Abilities={
{
Category="Familiar Class Feature",
Nature="AUTOMATIC",
Names={
"Familiar ~ Natural Armor Bonus",
},
Conditions={
function (character, item, sources)
return (character.Variables["MasterLevel"] >= 1)
end,
function (character, item, sources)
return (character.Variables["CF_FamiliarNaturalArmorBonus"] == 0)
end,
},
},
},
Bonuses={
{
Category="VAR",
Formula=Formula("1"),
Type={
Name="Boolean",
},
Conditions={
function (character, item, sources)
return character.HasAnyAbility(function (ability)
if ability.Category ~= "Archetype" then return false end
if ability.IsAnyType("CF_FamiliarNaturalArmorBonus") then return true end
return false
end) or character.Facts["ABILITY"]["CF_FamiliarNaturalArmorBonus"] == "true"
end,
},
Variables={
"CF_FamiliarNaturalArmorBonus",
},
},
},
})
ModifyAbility({
Name="Companion ~ Familiar",
Category="Internal",
Abilities={
{
Category="Familiar Class Feature",
Nature="AUTOMATIC",
Names={
"Familiar ~ Intelligence Score",
},
Conditions={
function (character, item, sources)
return (character.Variables["MasterLevel"] >= 1)
end,
function (character, item, sources)
return (character.Variables["CF_FamiliarIntelligenceScore"] == 0)
end,
},
},
},
Bonuses={
{
Category="VAR",
Formula=Formula("1"),
Type={
Name="Boolean",
},
Conditions={
function (character, item, sources)
return character.HasAnyAbility(function (ability)
if ability.Category ~= "Archetype" then return false end
if ability.IsAnyType("CF_FamiliarIntelligenceScore") then return true end
return false
end) or character.Facts["ABILITY"]["CF_FamiliarIntelligenceScore"] == "true"
end,
},
Variables={
"CF_FamiliarIntelligenceScore",
},
},
},
})
ModifyAbility({
Name="Companion ~ Familiar",
Category="Internal",
Abilities={
{
Category="Familiar Class Feature",
Nature="AUTOMATIC",
Names={
"Familiar ~ Alertness",
},
Conditions={
function (character, item, sources)
return (character.Variables["MasterLevel"] >= 1)
end,
function (character, item, sources)
return (character.Variables["CF_FamiliarAlertness"] == 0)
end,
},
},
},
Bonuses={
{
Category="VAR",
Formula=Formula("1"),
Type={
Name="Boolean",
},
Conditions={
function (character, item, sources)
return character.HasAnyAbility(function (ability)
if ability.Category ~= "Archetype" then return false end
if ability.IsAnyType("CF_FamiliarAlertness") then return true end
return false
end) or character.Facts["ABILITY"]["CF_FamiliarAlertness"] == "true"
end,
},
Variables={
"CF_FamiliarAlertness",
},
},
},
})
ModifyAbility({
Name="Companion ~ Familiar",
Category="Internal",
Abilities={
{
Category="Familiar Class Feature",
Nature="AUTOMATIC",
Names={
"Familiar ~ Improved Evasion",
},
Conditions={
function (character, item, sources)
return (character.Variables["MasterLevel"] >= 1)
end,
function (character, item, sources)
return (character.Variables["CF_FamiliarImprovedEvasion"] == 0)
end,
},
},
},
Bonuses={
{
Category="VAR",
Formula=Formula("1"),
Type={
Name="Boolean",
},
Conditions={
function (character, item, sources)
return character.HasAnyAbility(function (ability)
if ability.Category ~= "Archetype" then return false end
if ability.IsAnyType("CF_FamiliarImprovedEvasion") then return true end
return false
end) or character.Facts["ABILITY"]["CF_FamiliarImprovedEvasion"] == "true"
end,
},
Variables={
"CF_FamiliarImprovedEvasion",
},
},
},
})
ModifyAbility({
Name="Companion ~ Familiar",
Category="Internal",
Abilities={
{
Category="Familiar Class Feature",
Nature="AUTOMATIC",
Names={
"Familiar ~ Share Spells",
},
Conditions={
function (character, item, sources)
return (character.Variables["MasterLevel"] >= 1)
end,
function (character, item, sources)
return (character.Variables["CF_FamiliarShareSpells"] == 0)
end,
},
},
},
Bonuses={
{
Category="VAR",
Formula=Formula("1"),
Type={
Name="Boolean",
},
Conditions={
function (character, item, sources)
return character.HasAnyAbility(function (ability)
if ability.Category ~= "Archetype" then return false end
if ability.IsAnyType("CF_FamiliarShareSpells") then return true end
return false
end) or character.Facts["ABILITY"]["CF_FamiliarShareSpells"] == "true"
end,
},
Variables={
"CF_FamiliarShareSpells",
},
},
},
})
ModifyAbility({
Name="Companion ~ Familiar",
Category="Internal",
Abilities={
{
Category="Familiar Class Feature",
Nature="AUTOMATIC",
Names={
"Familiar ~ Empathic Link",
},
Conditions={
function (character, item, sources)
return (character.Variables["MasterLevel"] >= 1)
end,
function (character, item, sources)
return (character.Variables["CF_FamiliarEmpathicLink"] == 0)
end,
},
},
},
Bonuses={
{
Category="VAR",
Formula=Formula("1"),
Type={
Name="Boolean",
},
Conditions={
function (character, item, sources)
return character.HasAnyAbility(function (ability)
if ability.Category ~= "Archetype" then return false end
if ability.IsAnyType("CF_FamiliarEmpathicLink") then return true end
return false
end) or character.Facts["ABILITY"]["CF_FamiliarEmpathicLink"] == "true"
end,
},
Variables={
"CF_FamiliarEmpathicLink",
},
},
},
})
ModifyAbility({
Name="Companion ~ Familiar",
Category="Internal",
Abilities={
{
Category="Familiar Class Feature",
Nature="AUTOMATIC",
Names={
"Familiar ~ Deliver Touch Spells",
},
Conditions={
function (character, item, sources)
return (character.Variables["MasterLevel"] >= 3)
end,
function (character, item, sources)
return (character.Variables["CF_FamiliarDeliverTouchSpells"] == 0)
end,
},
},
},
Bonuses={
{
Category="VAR",
Formula=Formula("1"),
Type={
Name="Boolean",
},
Conditions={
function (character, item, sources)
return character.HasAnyAbility(function (ability)
if ability.Category ~= "Archetype" then return false end
if ability.IsAnyType("CF_FamiliarDeliverTouchSpells") then return true end
return false
end) or character.Facts["ABILITY"]["CF_FamiliarDeliverTouchSpells"] == "true"
end,
},
Variables={
"CF_FamiliarDeliverTouchSpells",
},
},
},
})
ModifyAbility({
Name="Companion ~ Familiar",
Category="Internal",
Abilities={
{
Category="Familiar Class Feature",
Nature="AUTOMATIC",
Names={
"Familiar ~ Speak with Master",
},
Conditions={
function (character, item, sources)
return (character.Variables["MasterLevel"] >= 5)
end,
function (character, item, sources)
return (character.Variables["CF_FamiliarSpeakwithMaster"] == 0)
end,
},
},
},
Bonuses={
{
Category="VAR",
Formula=Formula("1"),
Type={
Name="Boolean",
},
Conditions={
function (character, item, sources)
return character.HasAnyAbility(function (ability)
if ability.Category ~= "Archetype" then return false end
if ability.IsAnyType("CF_FamiliarSpeakwithMaster") then return true end
return false
end) or character.Facts["ABILITY"]["CF_FamiliarSpeakwithMaster"] == "true"
end,
},
Variables={
"CF_FamiliarSpeakwithMaster",
},
},
},
})
ModifyAbility({
Name="Companion ~ Familiar",
Category="Internal",
Abilities={
{
Category="Familiar Class Feature",
Nature="AUTOMATIC",
Names={
"Familiar ~ Speak with Animals of Its Kind",
},
Conditions={
function (character, item, sources)
return (character.Variables["MasterLevel"] >= 7)
end,
function (character, item, sources)
return (character.Variables["CF_FamiliarSpeakwithAnimalsofItsKind"] == 0)
end,
function (character, item, sources)
return (any(character.Race.RaceSubTypes, function (type) stringMatch(type, "Augmented Animal") end))
end,
},
},
},
Bonuses={
{
Category="VAR",
Formula=Formula("1"),
Type={
Name="Boolean",
},
Conditions={
function (character, item, sources)
return character.HasAnyAbility(function (ability)
if ability.Category ~= "Archetype" then return false end
if ability.IsAnyType("CF_FamiliarSpeakwithAnimalsofItsKind") then return true end
return false
end) or character.Facts["ABILITY"]["CF_FamiliarSpeakwithAnimalsofItsKind"] == "true"
end,
},
Variables={
"CF_FamiliarSpeakwithAnimalsofItsKind",
},
},
},
})
ModifyAbility({
Name="Companion ~ Familiar",
Category="Internal",
Abilities={
{
Category="Familiar Class Feature",
Nature="AUTOMATIC",
Names={
"Familiar ~ Spell Resistance",
},
Conditions={
function (character, item, sources)
return (character.Variables["MasterLevel"] >= 11)
end,
function (character, item, sources)
return (character.Variables["CF_FamiliarSpellResistance"] == 0)
end,
},
},
},
Bonuses={
{
Category="VAR",
Formula=Formula("1"),
Type={
Name="Boolean",
},
Conditions={
function (character, item, sources)
return character.HasAnyAbility(function (ability)
if ability.Category ~= "Archetype" then return false end
if ability.IsAnyType("CF_FamiliarSpellResistance") then return true end
return false
end) or character.Facts["ABILITY"]["CF_FamiliarSpellResistance"] == "true"
end,
},
Variables={
"CF_FamiliarSpellResistance",
},
},
},
})
ModifyAbility({
Name="Companion ~ Familiar",
Category="Internal",
Abilities={
{
Category="Familiar Class Feature",
Nature="AUTOMATIC",
Names={
"Familiar ~ Scry on Familiar",
},
Conditions={
function (character, item, sources)
return (character.Variables["MasterLevel"] >= 13)
end,
function (character, item, sources)
return (character.Variables["CF_FamiliarScryonFamiliar"] == 0)
end,
},
},
},
Bonuses={
{
Category="VAR",
Formula=Formula("1"),
Type={
Name="Boolean",
},
Conditions={
function (character, item, sources)
return character.HasAnyAbility(function (ability)
if ability.Category ~= "Archetype" then return false end
if ability.IsAnyType("CF_FamiliarScryonFamiliar") then return true end
return false
end) or character.Facts["ABILITY"]["CF_FamiliarScryonFamiliar"] == "true"
end,
},
Variables={
"CF_FamiliarScryonFamiliar",
},
},
},
})
DefineAbility({
Name="Natural Armor Bonus",
Key="Familiar ~ Natural Armor Bonus",
Category="Special Ability",
Description={
Format="The number noted here is in addition to the familiar's existing natural armor bonus.",
},
SourcePage="p.83",
Bonuses={
{
Category="VAR",
Formula=Formula("(1+MASTERVAR(\"FamiliarLVL\"))/2"),
Type={
Name="NaturalArmor",
Stack=true,
},
Variables={
"AC_Natural_Armor",
},
},
},
Types={
"Class Feature",
"Familiar Class Feature",
"SpecialQuality",
},
})
DefineAbility({
Name="Intelligence Score",
Key="Familiar ~ Intelligence Score",
Category="Special Ability",
Description={
Format="The familiar's Intelligence score.",
},
SourcePage="p.83",
StatModifications={
{
},
},
Types={
"Class Feature",
"Familiar Class Feature",
"SpecialQuality",
},
})
DefineAbility({
Name="Alertness",
Key="Familiar ~ Alertness",
Category="Special Ability",
Description={
Format="While a familiar is within arm's reach, the master gains the Alertness feat.",
},
SourcePage="p.83",
Types={
"Class Feature",
"Familiar Class Feature",
"SpecialQuality",
"Extraordinary",
},
})
DefineAbility({
Name="Improved Evasion",
Key="Familiar ~ Improved Evasion",
Category="Special Ability",
Description={
Format="When subjected to an attack that normally allows a Reflex saving throw for half damage, a familiar takes no damage if it makes a successful saving throw and half damage even if the saving throw fails.",
},
SourcePage="p.83",
Types={
"Class Feature",
"Familiar Class Feature",
"SpecialQuality",
"Extraordinary",
"Defensive",
},
})
DefineAbility({
Name="Share Spells",
Key="Familiar ~ Share Spells",
Category="Special Ability",
Description={
Format="The wizard may cast a spell with a target of \"You\" on his familiar (as a touch spell) instead of on himself. A wizard may cast spells on his familiar even if the spells do not normally affect creatures of the familiar's type (magical beast).",
},
SourcePage="p.83",
Types={
"Class Feature",
"Familiar Class Feature",
"SpecialQuality",
"Special Quality",
"Extraordinary",
},
})
DefineAbility({
Name="Empathic Link",
Key="Familiar ~ Empathic Link",
Category="Special Ability",
Description={
Format="The master has an empathic link with his familiar to a 1 mile distance. The master can communicate emphatically with the familiar, but cannot see through its eyes. Because of the link's limited nature, only general emotions can be shared. The master has the same connection to an item or place that his familiar does.",
},
SourcePage="p.83",
Types={
"Class Feature",
"Familiar Class Feature",
"SpecialQuality",
"Supernatural",
"Communicate",
},
})
DefineAbility({
Name="Deliver Touch Spells",
Key="Familiar ~ Deliver Touch Spells",
Category="Special Ability",
Description={
Format="If the master is 3rd level or higher, a familiar can deliver touch spells for him. If the master and the familiar are in contact at the time the master casts a touch spell, he can designate his familiar as the \"toucher.\" The familiar can then deliver the touch spell just as the master would. As usual, if the master casts another spell before the touch is delivered, the touch spell dissipates.",
},
SourcePage="p.83",
Types={
"Class Feature",
"Familiar Class Feature",
"SpecialAttack",
"Special Attack",
"Supernatural",
},
})
DefineAbility({
Name="Speak with Master",
Key="Familiar ~ Speak with Master",
Category="Special Ability",
Description={
Format="If the master is 5th level or higher, a familiar and the master can communicate verbally as if they were using a common language. Other creatures do not understand the communication without magical help.",
},
SourcePage="p.83",
Types={
"Class Feature",
"Familiar Class Feature",
"SpecialQuality",
"Extraordinary",
"Communicate",
},
})
DefineAbility({
Name="Speak with Animals of Its Kind",
Key="Familiar ~ Speak with Animals of Its Kind",
Category="Special Ability",
Description={
Format="If the master is 7th level or higher, a familiar can communicate with animals of approximately the same kind as itself (including dire varieties): bats with bats, cats with felines, hawks and owls and ravens with birds, lizards and snakes with reptiles, monkeys with other simians, rats with rodents, toads with amphibians, and weasels with ermines and minks. Such communication is limited by the Intelligence of the conversing creatures.",
},
SourcePage="p.83",
Types={
"Class Feature",
"Familiar Class Feature",
"SpecialQuality",
"Extraordinary",
"Communicate",
},
})
DefineAbility({
Name="Spell Resistance",
Key="Familiar ~ Spell Resistance",
Category="Special Ability",
Description={
Format="If the master is 11th level or higher, a familiar gains spell resistance equal to the master's level + 5. To affect the familiar with a spell, another spellcaster must get a result on a caster level check (1d20 + caster level) that equals or exceeds the familiar's spell resistance.",
},
SourcePage="p.83",
SpellResistance=Formula("mastervar(\"FamiliarLVL\")+5"),
Types={
"Class Feature",
"Familiar Class Feature",
"SpecialQuality",
"Extraordinary",
},
})
DefineAbility({
Name="Scry on Familiar",
Key="Familiar ~ Scry on Familiar",
Category="Special Ability",
Description={
Format="If the master is 13th level or higher, he may scry on his familiar (as if casting the scrying spell) once per day.",
},
SourcePage="p.83",
Types={
"Class Feature",
"Familiar Class Feature",
"SpecialQuality",
"Special Quality",
"SpellLike",
},
})
DefineAbility({
Name="Speak One Language",
Key="Familiar ~ Speak One Language",
Category="Special Ability",
Description={
Format="The familiar can speak one language of its master's choice as a supernatural ability.",
},
SourcePage="p.82",
Templates={
"Familiar Speaks One Language",
},
Types={
"Class Feature",
"Familiar Class Feature",
"SpecialQuality",
"Supernatural",
},
})
DefineAbility({
Name="Familiar Granted Bonus (Bat)",
Category="Internal",
Bonuses={
{
Category="SKILL",
Formula=Formula("FamiliarGrantedBonus_3"),
Type={
Name="Familiar",
},
Variables={
"Fly",
},
},
},
})
DefineAbility({
Name="Familiar Granted Bonus (Cat)",
Category="Internal",
Bonuses={
{
Category="SKILL",
Formula=Formula("FamiliarGrantedBonus_3"),
Type={
Name="Familiar",
},
Variables={
"Stealth",
},
},
},
})
DefineAbility({
Name="Familiar Granted Bonus (Hawk)",
Category="Internal",
Bonuses={
{
Category="SKILL",
Formula=Formula("FamiliarGrantedBonus_3"),
Type={
Name="Familiar",
},
Variables={
"Perception",
},
},
},
})
DefineAbility({
Name="Familiar Granted Bonus (Lizard)",
Category="Internal",
Bonuses={
{
Category="SKILL",
Formula=Formula("FamiliarGrantedBonus_3"),
Type={
Name="Familiar",
},
Variables={
"Climb",
},
},
},
})
DefineAbility({
Name="Familiar Granted Bonus (Monkey)",
Category="Internal",
Bonuses={
{
Category="SKILL",
Formula=Formula("FamiliarGrantedBonus_3"),
Type={
Name="Familiar",
},
Variables={
"Acrobatics",
},
},
},
})
DefineAbility({
Name="Familiar Granted Bonus (Owl)",
Category="Internal",
Bonuses={
{
Category="SKILL",
Formula=Formula("FamiliarGrantedBonus_3"),
Type={
Name="Familiar",
},
Variables={
"Perception",
},
},
},
})
DefineAbility({
Name="Familiar Granted Bonus (Rat)",
Category="Internal",
Bonuses={
{
Category="SAVE",
Formula=Formula("FamiliarGrantedBonus_2"),
Type={
Name="Familiar",
},
Variables={
"Fortitude",
},
},
},
})
DefineAbility({
Name="Familiar Granted Bonus (Raven)",
Category="Internal",
Bonuses={
{
Category="SKILL",
Formula=Formula("FamiliarGrantedBonus_3"),
Type={
Name="Familiar",
},
Variables={
"Appraise",
},
},
},
})
DefineAbility({
Name="Familiar Granted Bonus (Viper)",
Category="Internal",
Bonuses={
{
Category="SKILL",
Formula=Formula("FamiliarGrantedBonus_3"),
Type={
Name="Familiar",
},
Variables={
"Bluff",
},
},
},
})
DefineAbility({
Name="Familiar Granted Bonus (Toad)",
Category="Internal",
Bonuses={
{
Category="HP",
Formula=Formula("FamiliarGrantedBonus_3"),
Type={
Name="Familiar",
},
Variables={
"CURRENTMAX",
},
},
},
})
DefineAbility({
Name="Familiar Granted Bonus (Weasel)",
Category="Internal",
Bonuses={
{
Category="SAVE",
Formula=Formula("FamiliarGrantedBonus_2"),
Type={
Name="Familiar",
},
Variables={
"Reflex",
},
},
},
})
|
local Plugin = script.Parent.Parent.Parent
local InstanceStorage = Plugin.InstanceStorage
local wrapStrictTable = require(Plugin.Core.Util.wrapStrictTable)
local Types = require(Plugin.Core.Util.Types)
local Constants = {}
Constants.DEBUG_LABEL = "RopeMaster"
Constants.PLUGIN_MIN_WIDTH = 320
Constants.PLUGIN_MAX_WIDTH = 600
Constants.TOOLBAR_ICON = "rbxassetid://3578081823"
Constants.MAIN_ICON = "rbxassetid://0"
Constants.PLUGIN_PRODUCT_ID = 3585926833
Constants.PLUGIN_VERSION = "0.0.6"
-- Fields
Constants.DEFAULT_LABEL_WIDTH = 80
-- Font
Constants.FONT = Enum.Font.SourceSans
Constants.FONT_BOLD = Enum.Font.SourceSansBold
Constants.FONT_SIZE_VERY_SMALL = 12
Constants.FONT_SIZE_SMALL = 14
Constants.FONT_SIZE_MEDIUM = 16
Constants.FONT_SIZE_LARGE = 18
-- Tabber
Constants.TAB_HEIGHT = 40
Constants.TAB_WIDTH = 40
Constants.TAB_ICON_SIZE = UDim2.new(0, 32, 0, 32)
-- Scrollbar
Constants.SCROLL_BAR_THICKNESS = 16
Constants.SCROLL_BAR_ARROW_DOWN = "rbxassetid://3645604472"
-- Input fields
Constants.INPUT_FIELD_TEXT_PADDING = 4
Constants.INPUT_FIELD_BOX_PADDING = 4
Constants.INPUT_FIELD_LABEL_PADDING = 12
Constants.INPUT_FIELD_INDENT_PER_LEVEL = 12
Constants.INPUT_FIELD_HEIGHT = 24
Constants.INPUT_FIELD_BOX_HEIGHT = 24
Constants.FIELD_LABEL_WIDTH = 110
Constants.BUTTON_HEIGHT = 24
-- Checkbox
Constants.CHECKBOX_SIZE = 18
Constants.CHECK_IMAGE = "rbxassetid://2773796198"
Constants.DROP_SHADOW_SLICE_IMAGE = "rbxassetid://2950485059" -- 69x69, Rect(23, 23, 46, 46)
-- Dropdowns
Constants.DROPDOWN_ARROW_IMAGE = "rbxassetid://3646123659"
Constants.DROPDOWN_ENTRY_HEIGHT = 24
-- Collapsible titled section
Constants.COLLAPSIBLE_SECTION_HEIGHT = 32
Constants.COLLAPSIBLE_ARROW_RIGHT_IMAGE = "rbxassetid://3010958455"
Constants.COLLAPSIBLE_ARROW_DOWN_IMAGE = "rbxassetid://3010958148"
Constants.COLLAPSIBLE_ARROW_SIZE = 10
-- Precise button
Constants.DOUBLE_CLICK_DELAY = 0.5
-- Numerical slider
Constants.SLIDER_BUTTON_WIDTH = 10
Constants.SLIDER_BUTTON_HEIGHT = 20
-- Non-Foundation constants go here
Constants.ROPE_TAB_ICON = "rbxassetid://180785318"
Constants.ADVANCED_TAB_ICON = "rbxassetid://180785318"
Constants.LOCK_TO_DEFAULT = Types.LockTo.NONE
Constants.IGNORE_ROPE_DEFAULT = true
Constants.CURVE_TYPE_DEFAULT = Types.Curve.CATENARY
Constants.DANGLE_LENGTH_MODE_DEFAULT = Types.CatenaryLengthMode.RELATIVE
Constants.DANGLE_LENGTH_FUDGE = 0.01
Constants.DANGLE_LENGTH_LIMIT = 400
Constants.POINTER_MODEL = InstanceStorage.PointerModel
Constants.POINT_MODEL = InstanceStorage.PointModel
Constants.LOCK_DISTANCE_MIN = 0.1
Constants.LOCK_DISTANCE_MAX = 5
Constants.LOCK_DISTANCE_DEFAULT = 1
Constants.GRID_SIZE_MIN = 0.25
Constants.GRID_SIZE_MAX = 5
Constants.GRID_SIZE_DEFAULT = 1
Constants.DANGLE_LENGTH_FIXED_MIN = 5
Constants.DANGLE_LENGTH_FIXED_MAX = 400
Constants.DANGLE_LENGTH_FIXED_DEFAULT = 20
Constants.DANGLE_LENGTH_RELATIVE_MIN = 1
Constants.DANGLE_LENGTH_RELATIVE_MAX = 2
Constants.DANGLE_LENGTH_RELATIVE_DEFAULT = 1.1
Constants.LOOP_SHAPE_DEFAULT = Types.LoopShape.CIRCLE
Constants.LOOP_OFFSET_MIN = 0
Constants.LOOP_OFFSET_MAX = 5
Constants.LOOP_OFFSET_DEFAULT = 0
Constants.DELETE_ICON = "rbxassetid://2821308140"
Constants.DUPLICATE_ICON = "rbxassetid://3137308851"
-- Constants.ROPE_MESH_CAPS = {
-- [Types.RopeCrossSection.SQUARE] = InstanceStorage.RopeCapSquareBase,
-- [Types.RopeCrossSection.DIAMOND] = InstanceStorage.RopeCapDiamondBase,
-- [Types.RopeCrossSection.ROUND] = InstanceStorage.RopeCapRoundBase
-- }
Constants.CARNIVAL_FLAG_SINGLE = {
Detailed = {
Triangle = InstanceStorage.CarnivalFlagTriangle,
Square = InstanceStorage.CarnivalFlagSquare,
Swallowtail = InstanceStorage.CarnivalFlagSwallowtail
},
Flat = {
Triangle = InstanceStorage.CarnivalFlagFlatTriangle,
Square = InstanceStorage.CarnivalFlagFlatSquare,
Swallowtail = InstanceStorage.CarnivalFlagFlatSwallowtail
}
}
Constants.DANGLING_LIGHTS_SINGLE = {
Long = InstanceStorage.DanglingBulbLong,
Pointy = InstanceStorage.DanglingBulbPointy,
Round = InstanceStorage.DanglingBulbRound
}
Constants.ATTACHED_LIGHTS_SINGLE = {
Long = InstanceStorage.AttachedBulbLong,
Pointy = InstanceStorage.AttachedBulbPointy,
Round = InstanceStorage.AttachedBulbRound
}
-- Constants.MESH_CHAIN_LINK = {
-- [Types.MaterialChain.CHAIN_SHARP] = InstanceStorage.SharpChainMeshBase,
-- [Types.MaterialChain.CHAIN_SMOOTH] = InstanceStorage.SmoothChainMeshBase,
-- [Types.MaterialChain.GARLAND] = InstanceStorage.GarlandMeshBase
-- }
-- Constants.MATERIAL_CHAIN_LINK = {
-- [Types.MaterialChain.CHAIN_SHARP] = InstanceStorage.SharpChainMaterialBase,
-- [Types.MaterialChain.CHAIN_SMOOTH] = InstanceStorage.SmoothChainMaterialBase,
-- [Types.MaterialChain.GARLAND] = InstanceStorage.GarlandMaterialBase
-- }
-- Constants.MESH_CHAIN_SPACING = {
-- [Types.MeshChain.CHAIN_SHARP] = 1.25 / 2,
-- [Types.MeshChain.CHAIN_SMOOTH] = 1.25 / 2,
-- [Types.MeshChain.GARLAND] = 1
-- }
-- Constants.MATERIAL_CHAIN_SPACING = {
-- [Types.MaterialChain.CHAIN_SHARP] = 1.25 / 2,
-- [Types.MaterialChain.CHAIN_SMOOTH] = 1.25 / 2,
-- [Types.MaterialChain.GARLAND] = 1
-- }
-- Constants.MATERIAL_CHAIN_OFFSET = {
-- [Types.MaterialChain.CHAIN_SHARP] = Vector3.new(0, 0, 0),
-- [Types.MaterialChain.CHAIN_SMOOTH] = Vector3.new(0, 0, 0),
-- [Types.MaterialChain.GARLAND] = Vector3.new(0, 0, 0.223)
-- }
Constants.CHRISTMAS_LIGHT_BULB = InstanceStorage.ChristmasLightBulb
Constants.SKYBOX_BALL = InstanceStorage.Skybox
Constants.SKY_BACKGROUND_IMAGE = "rbxassetid://3078073659"
Constants.ROPE_MODEL_TAG = "RopeMasterObject"
-- Constants.ROPE_TEXTURES = {
-- [Types.RopeTexture.REALISTIC_ROPE] = {
-- [Types.TextureRepeat.X1] = "rbxassetid://3024298725",
-- [Types.TextureRepeat.X2] = "rbxassetid://3024520402",
-- [Types.TextureRepeat.X4] = "rbxassetid://3024520486",
-- [Types.TextureRepeat.X8] = "rbxassetid://3024520561"
-- },
-- [Types.RopeTexture.CARTOON_ROPE] = {
-- [Types.TextureRepeat.X1] = "rbxassetid://3024373208",
-- [Types.TextureRepeat.X2] = "rbxassetid://3024540308",
-- [Types.TextureRepeat.X4] = "rbxassetid://3024540378",
-- [Types.TextureRepeat.X8] = "rbxassetid://3024520332"
-- }
-- }
Constants.FILTER_CLEAR_ICON = "rbxassetid://3645457731"
Constants.FILTER_CLEAR_ICON_HOVER = "rbxassetid://3652821665"
Constants.CUSTOM_CHAIN_DEFAULT_KEY = "CustomChainDefault"
Constants.CUSTOM_CHAIN_SEGMENT_DEFAULT = InstanceStorage.CustomChainDefaultBase
Constants.PRESET_NAME_MAX_LENGTH = 32
Constants.ROPE_SHAFTS = {
[Types.RopeStyle.SQUARE_SMOOTH] = InstanceStorage.RopeShaftSquareSmoothBase,
[Types.RopeStyle.SQUARE_SHARP] = InstanceStorage.RopeShaftSquareSharpBase,
[Types.RopeStyle.DIAMOND_SMOOTH] = InstanceStorage.RopeShaftDiamondSmoothBase,
[Types.RopeStyle.DIAMOND_SHARP] = InstanceStorage.RopeShaftDiamondSharpBase,
[Types.RopeStyle.ROUND_SMOOTH] = InstanceStorage.RopeShaftRoundSmoothBase,
[Types.RopeStyle.ROUND_SHARP] = InstanceStorage.RopeShaftRoundSharpBase
}
Constants.ROPE_ELBOWS = {
[Types.RopeStyle.SQUARE_SMOOTH] = InstanceStorage.RopeElbowSquareSmoothBase,
[Types.RopeStyle.SQUARE_SHARP] = InstanceStorage.RopeElbowSquareSharpBase,
[Types.RopeStyle.DIAMOND_SMOOTH] = InstanceStorage.RopeElbowDiamondSmoothBase,
[Types.RopeStyle.DIAMOND_SHARP] = InstanceStorage.RopeElbowDiamondSharpBase,
[Types.RopeStyle.ROUND_SMOOTH] = InstanceStorage.RopeElbowRoundSmoothBase,
[Types.RopeStyle.ROUND_SHARP] = InstanceStorage.RopeElbowRoundSharpBase
}
Constants.ROPE_CAPS = {
[Types.RopeStyle.SQUARE_SMOOTH] = InstanceStorage.RopeCapSquareBase,
[Types.RopeStyle.SQUARE_SHARP] = InstanceStorage.RopeCapSquareBase,
[Types.RopeStyle.DIAMOND_SMOOTH] = InstanceStorage.RopeCapDiamondBase,
[Types.RopeStyle.DIAMOND_SHARP] = InstanceStorage.RopeCapDiamondBase,
[Types.RopeStyle.ROUND_SMOOTH] = InstanceStorage.RopeCapRoundBase,
[Types.RopeStyle.ROUND_SHARP] = InstanceStorage.RopeCapRoundBase
}
Constants.ROPE_TEXTURE_STUDS_PER_TILE = {
[Types.RopeStyle.SQUARE_SMOOTH] = 1,
[Types.RopeStyle.SQUARE_SHARP] = 1,
[Types.RopeStyle.DIAMOND_SMOOTH] = 0.5,
[Types.RopeStyle.DIAMOND_SHARP] = 0.5,
[Types.RopeStyle.ROUND_SMOOTH] = 0.35355 * 2,
[Types.RopeStyle.ROUND_SHARP] = 0.35355 * 2
}
Constants.ROPE_ELBOW_THRESHOLD = 0.05
return wrapStrictTable(Constants, "Constants")
|
return {'giulia','giuliano','giulio','giuseppe','giulias','giulianos','giulios','giuseppes'}
|
-- util.lua
local macro_defs = require("macro_defs")
local util = {}
util.toHex = function(data, sep, record_per_line, line_break)
local res = ""
sep = sep or ""
record_per_line = record_per_line or 8
line_break = line_break or "\n"
local sssep = ""
if not data then return "<null>" end
local data_in_line = 0
for i=1,#data do
res = res .. sssep .. string.format( "%02X", data:byte(i))
sssep = sep
data_in_line = data_in_line + 1
if data_in_line == record_per_line then
sssep = ""
res = res .. line_break
data_in_line = 0
end
end
return res
end
local STD_REQ_NAME ={
"Get Status" ,
"Clear Feature" ,
"Reserved" ,
"Set Feature" ,
"Reserved" ,
"Set Address" ,
"Get Descriptor" ,
"Set Descriptor" ,
"Get Config" ,
"Set Config" ,
"Get Interface" ,
"Set Interface" ,
"Sync Frame" ,
}
local STD_DESCRIPTOR_NAME = {
"Undefined" ,
"Device" ,
"Configuration" ,
"String" ,
"Interface" ,
"Endpoint" ,
"Device Qualifier" ,
"Other Speed" ,
"Interface Power" ,
"OTG" ,
}
local DESCRIPTOR_NAME = {
[macro_defs.DEVICE_DESC ] = "DevDesc",
[macro_defs.CFG_DESC ] = "CfgDesc",
[macro_defs.STRING_DESC ] = "StrDesc",
[macro_defs.DEV_QUAL_DESC ] = "QualDesc",
[macro_defs.OTHER_DESC ] = "OtherSpeed",
[macro_defs.BOS_DESC ] = "BOS Desc",
}
_G.EP_IN = function(name, optional)
if optional then
return name .. "5"
end
return name .. "1"
end
_G.EP_OUT = function(name, optional)
if optional then
return name .. "4"
end
return name .. "0"
end
_G.EP_INOUT = function(name, optional)
if optional then
return name .. "6"
end
return name .. "2"
end
_G.get_std_request_name = function(v, wValue, wIndex)
if v < #STD_REQ_NAME then
if (v == macro_defs.GET_DESCRIPTOR or v == macro_defs.GET_DESCRIPTOR) and wValue then
local idx = wValue & 0xff
local t = wValue >> 8
local prefix = "Get "
if v == macro_defs.SET_DESCRIPTOR then
prefix = "Set "
end
local postfix = ""
if t == macro_defs.CFG_DESC or t == macro_defs.STRING_DESC then
postfix = ":"..idx
end
if DESCRIPTOR_NAME[t] then
return prefix .. DESCRIPTOR_NAME[t] .. postfix
end
end
local postfix = ""
if v == macro_defs.SET_CONFIG and wValue then
postfix = " :" .. wValue
end
if v == macro_defs.SET_INTERFACE and wIndex then
return "Set Itf :" .. wIndex
end
if v == macro_defs.GET_INTERFACE and wIndex then
return "Get Itf :" .. wIndex
end
return STD_REQ_NAME[v+1] .. postfix
else
return "Unknown Request"
end
end
_G.get_descriptor_name = function(v)
if (type(v) == "string") then
error(debug.traceback())
end
if (v>=0) and (v < #STD_DESCRIPTOR_NAME) then
return STD_DESCRIPTOR_NAME[v+1] .. " Descriptor"
elseif v == macro_defs.HID_DESC then
return "HID Descritpor"
elseif v == macro_defs.REPORT_DESC then
return "Report Descritpor"
elseif v == macro_defs.FUNC_DESC then
return "Function Descritpor"
elseif v == macro_defs.HUB_DESC then
return "HUB Descritpor"
else
return "Unknown Descritpor"
end
end
package.loaded["util"] = util
|
---
--- A script to generate some dataset used by migration.test.lua
---
box.cfg{ wal_max_size = 250 }
box.schema.space.create("distro")
box.space.distro:create_index('primary', { type = 'hash', unique = true,
parts = {1, 'str', 2, 'str', 3, 'num'}})
box.space.distro:create_index('codename', { type = 'hash', unique = true,
parts = {2, 'str'}})
box.space.distro:create_index('time', { type = 'tree', unique = false,
parts = {4, 'num'}})
local function d(year, month, day)
return os.time { year = year, month = month, day = day }
end
box.space.distro:insert({'debian', 'jessie', 80, d(2015, 4, 26)})
box.space.distro:insert({'debian', 'wheezy', 70, d(2013, 5, 04)})
box.space.distro:insert({'debian', 'squeeze', 60, d(2011, 2, 05)})
box.space.distro:insert({'debian', 'lenny', 50, d(2009, 2, 14)})
box.space.distro:insert({'debian', 'etch', 40, d(2007, 4, 8)})
box.space.distro:insert({'debian', 'sarge', 31, d(2005, 6, 6)})
box.space.distro:insert({'debian', 'woody', 30, d(2002, 7, 19)})
box.space.distro:insert({'ubuntu', 'wily', 1510, d(2015, 10, 22)})
box.space.distro:insert({'ubuntu', 'vivid', 1504, d(2015, 4, 23)})
box.space.distro:insert({'ubuntu', 'trusty', 1404, d(2014, 4, 17)})
box.space.distro:insert({'ubuntu', 'precise', 1510, d(2012, 4, 26)})
-- 1.6.5+
if box.space.distro.format ~= nil then
local format={}
format[1] = {name='os', type='str'}
format[2] = {name='dist', type='str'}
format[3] = {name='version', type='num'}
format[4] = {name='time', type='num'}
box.space.distro:format(format)
end
box.schema.space.create('temporary', { temporary = true })
box.schema.user.create('someuser', { password = 'somepassword' })
box.schema.user.grant('someuser', 'read,write', 'universe')
box.session.su('someuser')
box.schema.func.create('somefunc', { setuid = true })
box.session.su('admin')
box.schema.user.revoke('someuser', 'read,write', 'universe')
box.schema.role.create('somerole')
box.schema.user.grant('someuser', 'execute', 'role', 'somerole')
if _TARANTOOL == nil or _TARANTOOL < "1.6.6" then
box.schema.user.grant('somerole', 'read,write', 'space', 'distro')
box.schema.user.grant('public', 'execute', 'function', 'somefunc')
else
box.schema.role.grant('somerole', 'read,write', 'space', 'distro')
box.schema.role.grant('public', 'execute', 'function', 'somefunc')
end
box.schema.func.create('someotherfunc')
box.schema.user.grant('someuser', 'execute', 'function', 'someotherfunc')
box.schema.user.grant('someuser', 'read,write', 'space', 'temporary')
box.schema.upgrade()
box.snapshot()
os.exit(0)
|
local FloatBallData = class(GameData);
FloatBallData.Delegate = {
onGetFloatBallConfigCallBack = "onGetFloatBallConfigCallBack";
}
FloatBallData.s_tryCount = 3;
FloatBallData.s_maxShowCount = 5;
FloatBallData.s_minShowCount = 3;
FloatBallData.initData = function(self)
self.m_redBubbleShow = false;
self.m_config = {};
end
FloatBallData.requestData = function(self, isForceUpdate)
if not self.m_isTouched or table.isEmpty(self.m_config) or isForceUpdate then
local param = {
hall_version = kGameManager:getGameVersion(GameType.HALL),
version = kClientInfo:getApkVersion()
};
OnlineSocketManager.getInstance():sendMsg(PHP_GET_FLOATBALL_CONFIG, param);
end
end
FloatBallData.getFloatBallConfig = function(self)
self:requestData();
self:_filterFloatBallConfig();
local maxShowCount = self:_getMaxShowCount();
local list = {};
for k, v in ipairs(self.m_config) do
if #list < maxShowCount then
table.insert(list, v);
else
break;
end
end
return list;
end
FloatBallData._filterFloatBallConfig = function(self)
local newConfig = {};
for k, v in pairs(self.m_config) do
if self:_isValidInfo(v) then
table.insert(newConfig, v);
end
end
self.m_config = newConfig;
end
FloatBallData._isValidInfo = function(self, itemInfo)
if itemInfo.starttime <= 0 then
return true;
else
--开始时间小于当前server时间
if itemInfo.starttime < kAppData:getRightTimeWithServer() then
return false;
end
end
return true;
end
FloatBallData._getMaxShowCount = function(self)
return FloatBallData.s_maxShowCount;
end
FloatBallData.onGetFloatBallConfigCallBack = function(self, isSuccess, info)
if isSuccess then
self.m_curTryCount = 0;
self:updateData(true, info);
self:execDelegate(FloatBallData.Delegate.onGetFloatBallConfigCallBack, true);
else
self.m_curTryCount = number.valueOf(self.m_curTryCount, 0) + 1;
if self.m_curTryCount <= FloatBallData.s_tryCount then
self:requestData();
end
end
end
--@override
FloatBallData.updateMemData = function(self, info)
self:_analysisData(info);
end
FloatBallData._analysisData = function(self, info)
local newConfig = {};
for k, v in pairs(info) do
v.btnid = number.valueOf(v.id) or 0;
v.image = string.valueOf(v.image);
v.jumpcode = string.valueOf(v.jumpcode);
v.rank = number.valueOf(v.rank, 100);
v.title = string.valueOf(v.title);
v.desc = string.valueOf(v.desc);
v.starttime = number.valueOf(v.starttime); --时间小于0,则代表永远有效
table.insert(newConfig, v);
end
table.sort(newConfig, function(a, b)
if a and b then
return a.rank < b.rank;
end
end);
self:_checkHasNewItem(self.m_config, newConfig);
self.m_config = newConfig;
end
FloatBallData._checkHasNewItem = function(self, config, newConfig)
for k, v in pairs(newConfig) do
local finded = false;
for k1, v1 in pairs(config) do
if v.btnid == v1.btnid then
finded = true;
break;
end
end
if not finded then
self.m_redBubbleShow = true;
return;
end
end
end
FloatBallData.setRedBubbleStatus = function(self, isShow)
self.m_redBubbleShow = isShow;
self:saveData();
end
FloatBallData.getRedBubbleStatus = function(self)
return self.m_redBubbleShow;
end
FloatBallData.loadDictData = function(self, dict)
local strConfig = dict:getString("config");
local config = json.decode(strConfig);
if not table.isEmpty(config) then
self.m_config = config;
end
local iBubbleShow = dict:getInt("redBubbleShow", 0);
self.m_redBubbleShow = (iBubbleShow == 1) and true or false;
end
FloatBallData.saveDictData = function(self, dict)
local strConfig = json.encode(self.m_config);
if strConfig then
dict:setString("config", strConfig);
end
dict:setInt("redBubbleShow", self.m_redBubbleShow and 1 or 0);
end
FloatBallData.getLocalDictName = function(self)
return "FloatBallData";
end
FloatBallData.s_socketCmdFuncMap = {
[PHP_GET_FLOATBALL_CONFIG] = FloatBallData.onGetFloatBallConfigCallBack;
}
return FloatBallData;
|
game:DefineFastFlag("AvatarEditorRecommendedUIBloxButton", false)
return function()
return game:GetFastFlag("AvatarEditorRecommendedUIBloxButton")
end
|
--
-- Created by IntelliJ IDEA.
-- User: Guy
-- Date: 18/06/2017
-- Time: 22:37
-- To change this template use File | Settings | File Templates.
--
PDUI_Animations = PDUI_Animations or class();
PDUI_Animations.animations = PDUI_Animations.animations or {};
PDUI_Animations.runningAnimations = PDUI_Animations.runningAnimations or {};
function PDUI_Animations:Init()
log("Animations initialized");
self:AddAnimationType("marquee", function(node, args, dt)
end)
self:AddAnimationType("marquee-bounce", function(node, args, dt)
end)
self:AddAnimationType("colour", function(node, args, dt)
end)
end
function PDUI_Animations:RemoveScope(scope)
self.runningAnimations[scope] = nil;
end
function PDUI_Animations:Update(t, dt)
for scope,v in pairs(self.runningAnimations) do
for _,anim in pairs(v) do
-- anim.Update(anim.target, anim.args, dt);
end
end
end
function PDUI_Animations:AddAnimationType(type, func)
log("Adding "..tostring(type).." animation");
self.animations[tostring(type)] = func;
log(json.encode(self.animations))
end
function PDUI_Animations:FindAndStartAnimations(scope, node, data)
local animParent = data['animation'];
if animParent then
for _,anim in pairs(animParent) do
local type = anim['type'];
local animFunc = self.animations[tostring(type)];
if animFunc then
local animData = {
target = node,
args = anim,
Update = animFunc;
};
self.runningAnimations[scope] = self.runningAnimations[scope] or {};
table.insert(self.runningAnimations[scope], animData);
end
end
end
end
|
data:extend({
{
type = "item-subgroup",
name = "upgrade-machines",
group = "logistics",
order = "z",
}
})
Jelmergu:addRecipe({
name = "burner-to-electric-drill",
enabled = true,
expensive = true,
ingredients = {
{ "burner-mining-drill", 1 },
{ "iron-gear-wheel", 2 },
{ "iron-plate", 7 },
{ "electronic-circuit", 3 }
},
results = {
{
type = "item",
name = "electric-mining-drill",
amount = 1
},
{
type = "item",
name = "stone-furnace",
amount = 1
},
},
main_product = "electric-mining-drill",
energy_required = 2,
})
Jelmergu:addRecipe(
{
name = "burner-to-electric-inserter",
expensive = false,
ingredients = {
{ "burner-inserter", 1 },
{ "electronic-circuit", 1 }
},
result = "inserter",
energy_required = 0.5,
enabled = true
}
)
Jelmergu:addRecipe(
{
name = "stone-to-steel-furnace",
expensive = false,
ingredients = {
{ "stone-furnace", 1 },
{ "steel-plate", 6 },
{ "stone-brick", 9 }
},
result = "steel-furnace",
energy_required = 3,
}
)
Jelmergu:addRecipe(
{
name = "steel-to-electric-furnace",
expensive = false,
ingredients = {
{ "steel-furnace", 1 },
{ "steel-plate", 4 },
{ "advanced-circuit", 5 }
},
result = "electric-furnace",
energy_required = 5,
}
)
Jelmergu:addRecipe(
{
name = "pistol-to-submachine",
ingredients = {
{ "pistol", 1 },
{ "iron-plate", 5 },
{ "iron-gear-wheel", 10 }
},
result = "submachine-gun",
energy_required = 10,
}
)
Jelmergu:addRecipe(
{
name = "pistol-to-shotgun",
ingredients = {
{ "pistol", 1 },
{ "iron-plate", 10 },
{ "copper-plate", 5 },
{ "iron-gear-wheel", 5 },
{ "wood", 5 }
},
result = "shotgun",
energy_required = 10,
}
)
Jelmergu:addRecipe(
{
name = "shotgun-to-combat-shotgun",
ingredients = {
{ "pistol", 1 },
{ "steel-plate", 14 },
},
result = "combat-shotgun",
energy_required = 10,
}
)
Jelmergu:addRecipe(
{
name = "light-to-heavy-armor",
ingredients = {
{"light-armor", 1},
{"copper-plate", 100},
{"steel-plate", 50}
},
results = {
{"heavy-armor", 1},
{"iron-plate", 40},
},
expensive = false,
energy_required = 8
}
)
Jelmergu:addRecipe(
{
name = "heavy-to-modular-armor",
ingredients = {
{"heavy-armor", 1},
{"advanced-circuit", 30},
},
results = {
{"modular-armor", 1},
{"copper-plate", 100},
},
expensive = false,
energy_required = 15
}
)
Jelmergu:addRecipe(
{
name = "modular-to-power-armor",
ingredients = {
{"modular-armor", 1},
{"electric-engine-unit", 20},
{"processing-unit", 25},
{"electronic-circuit", 300},
},
results = {
{"power-armor", 1},
{"steel-plate", 10}
},
expensive = false,
energy_required = 20
}
)
Jelmergu:addRecipe(
{
name = "power-to-power-armor-mk2",
ingredients = {
{"power-armor", 1},
{"effectivity-module-3", 5},
{"speed-module-3", 5}
},
results = {
{"power-armor-mk2", 1},
{"electric-engine-unit", 20},
},
expensive = false,
energy_required = 25
}
)
Jelmergu:addRecipe(
{
name = "light-to-heavy-armor",
ingredients = {
{"light-armor", 1},
{"copper-plate", 100},
{"steel-plate", 50}
},
results = {
{"heavy-armor", 1},
{"iron-plate", 40},
},
expensive = false,
energy_required = 8
}
)
Jelmergu:addRecipe(
{
name = "heavy-to-modular-armor",
ingredients = {
{"heavy-armor", 1},
{"advanced-circuit", 30},
},
results = {
{"modular-armor", 1},
{"copper-plate", 100},
},
expensive = false,
energy_required = 15
}
)
Jelmergu:addRecipe(
{
name = "filter-inserter-to-stack-filter-inserter",
ingredients = {
{"filter-inserter", 1},
{"advanced-circuit", 1},
{"electronic-circuit", 16},
{"iron-gear-wheel", 15}
},
icon_size = 64,
result = "stack-filter-inserter",
expensive = false,
energy_required = 3
}
)
Jelmergu:addRecipe(
{
name = "boiler-to-heat-exchanger",
ingredients = {
{"boiler", 2},
{"pipe", 2},
{"copper-plate", 100},
{"steel-plate", 10}
},
results = {
{"heat-exchanger", 1},
{"stone-furnace", 2},
},
expensive = false,
icon_size = 64,
energy_required = 3
}
)
Jelmergu:addRecipe(
{
name = "steam-engine-to-steam-turbine",
ingredients = {
{"steam-engine", 3},
{"pipe", 5},
{"copper-plate", 50},
{"iron-gear-wheel", 11}
},
icon_size = 64,
result = "steam-turbine",
expensive = false,
energy_required = 3
}
)
|
--- Tools for working with tiles.
-- A tile represents a 1 unit<sup>2</sup> on a surface in Factorio.
-- @module Tile
-- @usage local Tile = require('stdlib/area/tile')
-- @see LuaTile
local Tile = {_module_name = 'Tile'}
setmetatable(Tile, {__index = require('stdlib/core')})
local Is = require('stdlib/utils/is')
local Area = require('stdlib/area/area')
local Position = require('stdlib/area/position')
local Chunk = require('stdlib/area/chunk')
--local MAX_UINT = 4294967296
--- Get the @{LuaTile.position|tile position} of a tile where the given position resides.
-- @tparam Concepts.Position position the position that resides somewhere in a tile
-- @treturn LuaTile.position the tile position
function Tile.from_position(position)
position = Position.new(position)
return Position.new({x = math.floor(position.x), y = math.floor(position.y)}) --Is this correct? Tile position should be the center?
end
--- Converts a tile position to the @{Concepts.BoundingBox|area} of the tile it is in.
-- @tparam LuaTile.position tile_pos the tile position
-- @treturn Concepts.BoundingBox the area of the tile
function Tile.to_area(tile_pos)
Is.Assert(tile_pos, 'missing tile_pos argument')
local left_top = Tile.from_position(tile_pos)
local right_bottom = Position.offset(Position.copy(tile_pos), 1, 1)
return Area.new({left_top = left_top, right_bottom = right_bottom})
end
--- Creates an array of tile positions for all adjacent tiles (N, E, S, W) **OR** (N, NE, E, SE, S, SW, W, NW) if diagonal is set to true.
-- @tparam LuaSurface surface the surface to examine for adjacent tiles
-- @tparam LuaTile.position position the tile position of the origin tile
-- @tparam[opt=false] boolean diagonal whether to include diagonal tiles
-- @tparam[opt] string tile_name whether to restrict adjacent tiles to a particular tile name (example: "water-tile")
-- @treturn {LuaTile.position,...} an array of tile positions of the tiles that are adjacent to the origin tile
function Tile.adjacent(surface, position, diagonal, tile_name)
Is.Assert(surface, 'missing surface argument')
Is.Assert(position, 'missing position argument')
local offsets = {{0, 1}, {1, 0}, {0, -1}, {-1, 0}}
if diagonal then
offsets = {{0, 1}, {1, 1}, {1, 0}, {-1, 1}, {-1, 0}, {-1, -1}, {0, -1}, {1, -1}}
end
local adjacent_tiles = {}
for _, offset in pairs(offsets) do
local adj_pos = Position.add(position, offset)
if tile_name then
local tile = surface.get_tile(adj_pos.x, adj_pos.y)
if tile and tile.name == tile_name then
table.insert(adjacent_tiles, adj_pos)
end
else
table.insert(adjacent_tiles, adj_pos)
end
end
return adjacent_tiles
end
--- Gets the user data that is associated with a tile.
-- The user data is stored in the global object and it persists between loads.
-- @tparam LuaSurface surface the surface on which the user data is looked up
-- @tparam LuaTile.position tile_pos the tile position on which the user data is looked up
-- @tparam[opt] Mixed default_value the user data to set for the tile and returned if it did not have user data
-- @treturn ?|nil|Mixed the user data **OR** *nil* if it does not exist for the tile and no default_value was set
function Tile.get_data(surface, tile_pos, default_value)
Is.Assert(surface, 'missing surface argument')
Is.Assert(tile_pos, 'missing tile_pos argument')
if not global._tile_data then
if not default_value then
return nil
end
global._tile_data = {}
end
local chunk_idx = Chunk.get_index(surface, Chunk.from_position(tile_pos))
if not global._tile_data[chunk_idx] then
if not default_value then
return nil
end
global._tile_data[chunk_idx] = {}
end
local chunk_tiles = global._tile_data[chunk_idx]
if not chunk_tiles then
return nil
end
local idx = Tile.get_index(tile_pos)
local val = chunk_tiles[idx]
if not val then
chunk_tiles[idx] = default_value
val = default_value
end
return val
end
--- Associates the user data to a tile.
-- The user data will be stored in the global object and it will persist between loads.
-- @tparam LuaSurface surface the surface on which the user data will reside
-- @tparam LuaTile.position tile_pos the tile position of a tile that will be associated with the user data
-- @tparam ?|nil|Mixed data the user data to set **OR** *nil* to erase the existing user data for the tile
-- @treturn ?|nil|Mixed the previous user data associated with the tile **OR** *nil* if the tile had no previous user data
function Tile.set_data(surface, tile_pos, data)
Is.Assert(surface, 'missing surface argument')
Is.Assert(tile_pos, 'missing tile_pos argument')
if not global._tile_data then
global._tile_data = {}
end
local chunk_idx = Chunk.get_index(surface, Chunk.from_position(tile_pos))
if not global._tile_data[chunk_idx] then
global._tile_data[chunk_idx] = {}
end
local chunk_tiles = global._tile_data[chunk_idx]
local idx = Tile.get_index(tile_pos)
local prev = chunk_tiles[idx]
chunk_tiles[idx] = data
return prev
end
--- Calculates and returns a stable and deterministic integer ID of a tile from a given tile position.
-- The tile ID will not change once it is calculated, and every tile ID is unique to the chunk they are in and they may repeat across a surface.
-- @tparam LuaTile.position tile_pos
-- @treturn int the tile ID
function Tile.get_index(tile_pos)
Is.Assert(tile_pos, 'missing tile_pos argument')
return bit32.band(bit32.bor(bit32.lshift(bit32.band(tile_pos.x, 0x1F), 5), bit32.band(tile_pos.y, 0x1F)), 0x3FF)
end
return Tile
|
--[[
File name: monster.lua
Description: create serene monster/enemys
Author: oldmilk
--]]
-- import services
local pathfindingService = game:GetService("PathfindingService")
local tweenService = game:GetService("TweenService")
local HttpService = game:GetService("HttpService")
local item = require(game.ReplicatedStorage:WaitForChild("modules").item)
local levels = require(game.ReplicatedStorage:WaitForChild("modules").levels)
local gameDatabase = require(game.ReplicatedStorage:WaitForChild("modules").gameDatabase)
-- init module
local module = {}
local monsterClass = {}
monsterClass.__index = monsterClass
monsterClass.root = nil
monsterClass.config = {}
-- internal functions
local function GetNearestPlayer(minimumDistance, NPC)
local closestMagnitude = minimumDistance or math.huge
--minimumDistance is a number in studs
local closestPlayer
for i,v in next, game.Players:GetPlayers() do
local Character = v.Character
if (Character) then
local humanoid = Character.Humanoid
if Character:FindFirstChild("HumanoidRootPart") ~= nil then
local HRP = Character.HumanoidRootPart
if (humanoid.Health > 0) then
local mag = (NPC.Position - HRP.Position).Magnitude
if (mag <= closestMagnitude) then
closestPlayer = v
closestMagnitude = mag
end
end
end
end
end
return closestPlayer
end
-- findNearestPlayer: find the nearest player to the enemy root
function monsterClass:findNearestPlayer()
-- the root part of the enemy
local enemyRoot = self.root
local target = GetNearestPlayer(70, enemyRoot)
-- return the target
return target
end
-- setReward: set the exp and loot table reward data, takes in the mob id for the loot
function monsterClass:setReward(loot_table)
local root = self.root
if root.Parent:FindFirstChildOfClass("Humanoid") == nil then
error("Failed to set reward: monster must have a humanoid!")
end
local humanoid = root.Parent:FindFirstChildOfClass("Humanoid")
-- fetch the loot data
local loot_data = module.getLootInfo(loot_table)
humanoid.Died:Connect(function ()
-- get all of the players that killed the mob
local players = {}
for index, player in pairs(root.Parent.killers:GetChildren()) do
if game.Players[player.Value] ~= nil then
table.insert(players, game.Players[player.Value])
end
end
-- drop the items
item.dropItems(loot_data.loot_data, players)
-- give xp, and remove tags
for i, player in pairs(players) do
levels.grantXp(player, loot_data.loot_xp)
if player:GetAttribute("Damage") ~= nil then
player:SetAttribute("Damage", nil)
end
end
root.Parent:Destroy()
end)
end
-- pathfindToPosition: pathfind to a 3D position in the world
function monsterClass:pathfindToPosition(fromPos, toPos)
local root = self.root
-- prevent @oldmilk from being stupid when making stuff
if fromPos == nil or toPos == nil then
error("Failed to init pathfind: fromPos or toPos is missing or nil")
end
-- K, we good now.
-- how do I use this again?
-- - @oldmilk, 2021 sometime in the moring
-- docs link for reference: https://developer.roblox.com/en-us/articles/Pathfinding
local agent = pathfindingService:CreatePath({
-- no, you cannot jump :)
AgentCanJump = false
})
-- compute the path with ComputeAsync
agent:ComputeAsync(fromPos, toPos)
-- get the path waypoints
local waypoints = agent:GetWaypoints()
-- check for humanoid
local humanoid = nil
if root.Parent:FindFirstChildOfClass("Humanoid") == nil then
error("Failed to pathfind: failed to find humanoid")
else
humanoid = root.Parent:FindFirstChildOfClass("Humanoid")
end
for _, waypoint in pairs(waypoints) do
-- move humanoid
humanoid:MoveTo(waypoint.Position)
end
end
-- onTouch: listen for when the player touches the enemy
function monsterClass:onTouch(renderMesh, callback)
renderMesh.Touched:Connect(function (hit)
local player = nil
if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil then
player = game.Players:GetPlayerFromCharacter(hit.Parent)
callback(player)
end
end)
end
--playAnimation: player an animation for the current mob
function monsterClass:playAnimation(animationId)
local animator = nil
local enemyRoot = self.root
local humanoid = enemyRoot.Parent:FindFirstChildOfClass("Humanoid")
if humanoid == nil then
error("Failed to play animation: humanoid is nil")
end
if humanoid:FindFirstChildOfClass("Animator") == nil then
animator = Instance.new("Animator")
animator.Parent = humanoid
else
animator = humanoid:FindFirstChildOfClass("Animator")
end
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://"..animationId
local track = animator:LoadAnimation(animation)
track:Play()
return track
end
--onWalk: listen for when the mob starts walking
function monsterClass:onWalk(callback)
local enemyRoot = self.root
local humanoid = enemyRoot.Parent:FindFirstChildOfClass("Humanoid")
if humanoid == nil then
error("Failed to connect to event: humanoid is nil")
end
humanoid.Running:Connect(function(speed)
callback(speed)
end)
end
-- onAttackTick: listen for the attack tick event
function monsterClass:onAttackTick(callback)
-- TODO: Get it working
end
-- register: return a new monsterClass
module.register = function(root)
local self = {
root = root
}
setmetatable(self, monsterClass)
-- setup basic stuff
local baseHealthBar = game.ReplicatedStorage:WaitForChild("gui"):WaitForChild("healthBarRoot")
local healthBar = baseHealthBar:Clone()
healthBar.Parent = root
-- setup
local humanoid = root.Parent:FindFirstChildOfClass("Humanoid")
if humanoid == nil then
error("Failed to setup: monster must have a valid humanoid")
else
humanoid.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
healthBar.healthTxt.Text = "Health: "..math.round(humanoid.Health).."/"..humanoid.MaxHealth
humanoid.HealthChanged:Connect(function()
local health = humanoid.Health/humanoid.MaxHealth
local info = TweenInfo.new(humanoid.Health / humanoid.MaxHealth) --Tween Info
healthBar.healthTxt.Text = "Health: "..math.round(humanoid.Health).."/"..humanoid.MaxHealth
tweenService:Create(healthBar.Frame.health,info,{Size = UDim2.new(health, 0, 0, 100)}):Play() -- Create The Tween Then Play It
end)
end
return self
end
-- getLootInfo: returns the loot info for a monster from the game database
function module.getLootInfo(monster)
local info = gameDatabase.getLootTable(monster)
return info
end
return module
|
--[===[DOC
= escapeshellarg
[source,lua]
----
function escapeshellarg( str ) --> esc
----
Adds double quotes around the `str` string and quotes/escapes any existing
double quotes allowing you to pass the result `esc` string directly to a shell
function and having it be treated as a single safe argument.
This function should be used to escape individual arguments to shell functions
coming from user input.
== Example
[source,lua,example]
----
local escapeshellarg = require "escapeshellarg"
local esced = escapeshellarg(" '")
local lua = 'lua'
for a = 0, -99, -1 do
if not arg[a] then break end
lua = arg[a]
end
os.remove('tmp.tmp')
os.execute(lua..' -e "io.open([[tmp.tmp]],[[w]]):write(arg[0]);os.exit()" '..esced)
assert( " '" == io.open('tmp.tmp','r'):read('a') )
----
]===]
local quote_function
local function escapeshellarg( str ) --> esc
local function posix_quote_argument(str)
if not str:match('[^%a%d%.%-%+=/,:]') then
return str
else
str = str:gsub( "[$`\"\\]", "\\%1" )
return '"' .. str .. '"'
end
end
local function windows_quote_argument(str)
str = str:gsub('[%%&\\^<>|]', '^%1')
str = str:gsub('"', "\\%1")
str = str:gsub('[ \t][ \t]*', '"%1"')
return str
end
if not quote_function then
quote_function = windows_quote_argument
local shell = os.getenv('SHELL')
if shell then
if '/' == shell:sub(1,1) and 'sh' == shell:sub(-2, -1) then
quote_function = posix_quote_argument
end
end
end
return quote_function(str)
end
return escapeshellarg
|
object_mobile_nexus_8t88 = object_mobile_shared_nexus_8t88:new {
}
ObjectTemplates:addTemplate(object_mobile_nexus_8t88, "object/mobile/nexus_8t88.iff")
|
local orig = CrimeNetGui.check_job_pressed
function CrimeNetGui:check_job_pressed(x,y, ...)
for _, job in pairs(self._jobs) do
if job.mouse_over == 1 and job.update_data then
self:disable_crimenet()
BeardLib.Utils.Sync:DownloadMap(job.level_name, job.job_key, job.update_data, function(success)
self:enable_crimenet()
self._grabbed_map = false
end)
return false
end
end
return orig(self, x,y, ...)
end
function CrimeNetGui:change_to_custom_job_gui(job)
local x = 0
local num_stars = 0
local panel = job.side_panel
local job_name = panel:child("job_name")
panel:child("contact_name"):set_text(" ")
panel:child("contact_name"):set_size(0,0)
panel:child("heat_name"):set_alpha(0)
if alive(panel) and alive(job_name) then
job_name:set_text(managers.localization:to_upper_text("custom_map_title", {map = tostring(job.level_name)}))
self:make_fine_text(job_name)
job_name:set_x(0)
end
local info_name = panel:child("info_name")
if alive(panel) and alive(info_name) then
local state = job.state_name or managers.localization:to_upper_text("menu_lobby_server_state_in_lobby")
info_name:set_text(managers.localization:to_upper_text("custom_map_download_available") .. (state and " / " .. tostring(state) or ""))
self:make_fine_text(info_name)
if job.mouse_over ~= 1 then
info_name:set_righttop(0, job_name:bottom() - 3)
end
end
local difficulty_stars = job.difficulty_id - 2
local num_difficulties = Global.SKIP_OVERKILL_290 and 5 or 6
for i = 1, num_difficulties do
local stars_panel = panel:child("stars_panel")
stars_panel:clear()
stars_panel:bitmap({
texture = "guis/textures/pd2/cn_miniskull",
x = x,
w = 12,
h = 16,
texture_rect = {0,0,12,16},
alpha = i > difficulty_stars and 0.5 or 1,
blend_mode = i > difficulty_stars and "normal" or "add",
layer = 0,
color = i > difficulty_stars and Color.black or tweak_data.screen_colors.risk
})
stars_panel:set_w(16 * math.min(11, #stars_panel:children()))
stars_panel:set_h(16)
x = x + 11
num_stars = num_stars + 1
end
local difficulty_string = managers.localization:to_upper_text(tweak_data.difficulty_name_ids[tweak_data.difficulties[job.difficulty_id]])
local difficulty_name = panel:child("difficulty_name")
difficulty_name:set_text(difficulty_string)
difficulty_name:set_color(difficulty_stars > 0 and tweak_data.screen_colors.risk or tweak_data.screen_colors.text)
self:make_fine_text(difficulty_name)
if job.mouse_over ~= 1 then
difficulty_name:set_righttop(0, info_name:bottom() - 3)
end
end
|
-- Copyright 2019 Teverse
-- This script is required when workshop is loaded,
-- and engine.workshop is passed to the function returned.
-- e.g. require('tevgit:workshop/main.lua')(engine.workshop)
local function beginLoad(workshop)
--[[
Teverse currently downloads tevgit files from the github repo when requested by the client.
This is quite slow, so there's a delay between EACH require when the user doesn't have a local tevgit.
To compensate for this, we'll quickly draw up a UI here BEFORE requiring anymore remote files.
We will load some files first in order to make a reload button for Development users.
--]]
-- Load this now, we need it to make the reload button
local shared = require("tevgit:workshop/controllers/shared.lua")
shared.workshop = workshop
shared.developerMode = not shared.workshop.hasLocalTevGit or shared.workshop:hasLocalTevGit()
local loadingScreen;
do
loadingScreen = engine.construct("guiFrame", workshop.interface, {
size = guiCoord(1, 0, 1, 0),
backgroundColour = colour:fromRGB(66, 66, 76),
zIndex = 1000
})
engine.construct("guiTextBox", loadingScreen, {
size = guiCoord(0.5, 0, 0.5, 0),
position = guiCoord(0.25, 0, 0.25, 0),
align = enums.align.middle,
backgroundAlpha = 0,
text = "Downloading the latest workshop...\nThis takes longer than a moment during beta."
})
if shared.developerMode then
local emergencyReload = engine.construct("guiTextBox", loadingScreen, {
text = "Emergency Reload",
size = guiCoord(0, 200, 0, 30),
position = guiCoord(0.5, -100, 1, -40),
backgroundColour = colour:fromRGB(44, 47, 51),
textColour = colour:fromRGB(255, 255, 255),
borderRadius = 3,
hoverCursor = "fa:s-hand-pointer",
align = enums.align.middle,
})
emergencyReload:mouseLeftPressed(function()
shared.workshop:reloadCreate()
end)
end
local spinner = engine.construct("guiImage", loadingScreen, {
size = guiCoord(0, 24, 0, 24),
position = guiCoord(1, -44, 1, -44),
texture = "fa:s-sync-alt",
backgroundAlpha = 0
})
local tween;
tween = engine.tween:begin(spinner, 1, {
rotation = math.rad(-360)
}, "inOutQuad", function ()
tween:reset()
tween:resume()
end)
end
-- Okay now we can load remote files whilst the user is looking at a loading screen.
shared.controllers.env = require("tevgit:workshop/controllers/environment/main.lua")
shared.controllers.history = require("tevgit:workshop/controllers/core/history.lua")
-- Create the Teverse interface
require("tevgit:workshop/controllers/ui/createInterface.lua")
-- Setup the 3D world
shared.controllers.env:setupEnvironment()
shared.controllers.env:createDefaultMap()
--shared.controllers.env:createPBRDebugSpheres()
if loadingScreen then
loadingScreen:destroy()
loadingScreen = nil
end
--print("Workshop Loaded. ", #engine.workspace.children) Lets not spam the console
end
return function( workshop )
local success, message = pcall(beginLoad, workshop)
if not success then
workshop.interface:destroyAllChildren()
local errorScreen = engine.construct("guiFrame", workshop.interface, {
size = guiCoord(1, 0, 1, 0),
backgroundColour = colour:fromRGB(0, 0, 128),
zIndex = 10000
})
engine.construct("guiTextBox", errorScreen, {
size = guiCoord(0.8, 0, 0.8, 0),
position = guiCoord(0.1, 0, 0.1, 0),
textColour = colour:fromRGB(255, 255, 0),
align = enums.align.topLeft,
backgroundAlpha = 0,
text = "Error loading Workshop\nIf this isn't your fault, please take a screenshot and report this as a bug.\n\n" .. message,
wrap = true,
fontSize = 16,
fontFile = "tevurl:fonts/PxPlus_AmstradPC1512-2y.ttf"
})
-- delay showing this button for 1.5 seconds
-- prevent spam reloads
wait(1.5)
engine.construct("guiTextBox", errorScreen, {
text = "RELOAD",
size = guiCoord(0, 80, 0, 30),
position = guiCoord(.5, -40, 1, -60),
backgroundColour = colour:fromRGB(255, 255, 0),
textColour = colour:fromRGB(0, 0, 128),
hoverCursor = "fa:s-hand-pointer",
align = enums.align.middle,
fontFile = "tevurl:fonts/PxPlus_AmstradPC1512-2y.ttf"
}):mouseLeftPressed(function()
workshop:reloadCreate()
end)
engine.input:on("keyPressed", function(inputObj)
if inputObj.key == enums.key["return"] then
workshop:reloadCreate()
end
end)
end
end
|
require("Game/MainUI/MainUIConst")
require("Game/MainUI/MainUIModel")
MainUIController = {}
function MainUIController:Init( )
self.login_succeed_handler = GlobalEventSystem:Bind(MainUIConst.Event.InitMainUIViews, MainUIController.InitMainUIViews, self)
end
function MainUIController:InitMainUIViews( )
print('Cat:MainUIController.lua[InitMainUIViews]')
-- local view = require("Game/MainUI/MainUIJoystickView").New()
-- UIMgr:Show(view)
end
return MainUIController
|
resource_manifest_version '44febabe-d386-4d18-afbe-5e627f4af937'
description 'ESX STRIP'
version '1.0.0'
client_scripts {
'config.lua',
'client.lua',
}
server_scripts {
'config.lua',
'server.lua',
}
|
local class = require "class"
local Highscores = class:derive("Highscores")
function Highscores:new()
self.entries = self:load()
end
function Highscores:save()
local data = loadJson(parsePath("runtime.json"))
data.highscores = self.entries
saveJson(parsePath("runtime.json"), data)
end
function Highscores:load()
return loadJson(parsePath("runtime.json")).highscores
end
function Highscores:getPosition(score)
-- nil if it does not qualify
for i = 10, 1, -1 do
local entry = self.entries[i]
if score <= entry.score then
if i == 10 then return nil else return i + 1 end
end
end
return 1
end
function Highscores:storeProfile(profile, pos)
for i = 9, pos, -1 do
-- everyone who is lower than the new highscore goes down
self.entries[i + 1] = self.entries[i]
end
self.entries[pos] = {name = profile.name, score = profile:getScore(), level = profile:getCurrentLevelData().name}
self:save()
for i, entry in ipairs(self.entries) do print(entry.score, entry.name, entry.level) end
return true
end
return Highscores
|
--[[
This is a simple signal implementation that has a dead-simple API.
local signal = createSignal()
local disconnect = signal:subscribe(function(foo)
print("Cool foo:", foo)
end)
signal:fire("something")
disconnect()
]]
local function addToMap(map, addKey, addValue)
local new = {}
for key, value in pairs(map) do
new[key] = value
end
new[addKey] = addValue
return new
end
local function removeFromMap(map, removeKey)
local new = {}
for key, value in pairs(map) do
if key ~= removeKey then
new[key] = value
end
end
return new
end
local function createSignal()
local connections = {}
local function subscribe(self, callback)
assert(typeof(callback) == "function", "Can only subscribe to signals with a function.")
local connection = {
callback = callback,
}
connections = addToMap(connections, callback, connection)
local function disconnect()
assert(not connection.disconnected, "Listeners can only be disconnected once.")
connection.disconnected = true
connections = removeFromMap(connections, callback)
end
return disconnect
end
local function fire(self, ...)
for callback, connection in pairs(connections) do
if not connection.disconnected then
callback(...)
end
end
end
return {
subscribe = subscribe,
fire = fire,
}
end
return createSignal
|
include("shared.lua")
include("testhud.lua")
include("custom_menu.lua")
include("custom_scoreboard.lua")
include("player/sh_player.lua")
include("shop/sh_shop.lua")
function GM:ContextMenuOpen()
return false
end
|
return function(state)
return state.notifications
end
|
local SYSROOT = os.getenv("LUCI_SYSROOT")
-- override uci access
local uci_core = require "uci"
local uci_model = require "luci.model.uci"
uci_model.cursor = function(config, save)
return uci_core.cursor(config or SYSROOT .. "/etc/config", save or SYSROOT .. "/tmp/.uci")
end
uci_model.cursor_state = function()
return uci_core.cursor(SYSROOT .. "/etc/config", SYSROOT .. "/var/state")
end
uci_model.inst = uci_model.cursor()
uci_model.inst_state = uci_model.cursor_state()
-- allow any password in local sdk
local sys = require "luci.sys"
sys.user.checkpasswd = function() return true end
sys.user.getpasswd = function() return "x" end
-- dummy sysinfo on Darwin
require "nixio"
if not nixio.sysinfo then
function nixio.sysinfo()
return {
bufferram = 0,
freehigh = 0,
freeram = 0,
freeswap = 0,
loads = { 0.0, 0.0, 0.0 },
mem_unit = 1024,
procs = 0,
sharedram = 0,
totalhigh = 0
}
end
end
-- override nixio.fs.access() to check sysroot first
local _access = nixio.fs.access
function nixio.fs.access(file)
return _access(SYSROOT .. "/" .. file) or _access(file)
end
|
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- P R O W L N O T I F I C A T I O N S --
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--- === plugins.finalcutpro.notifications.prowl ===
---
--- Prowl Notifications Plugin.
--------------------------------------------------------------------------------
--
-- EXTENSIONS:
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Hammerspoon Extensions:
--------------------------------------------------------------------------------
local dialog = require("hs.dialog")
local http = require("hs.http")
--------------------------------------------------------------------------------
-- CommandPost Extensions:
--------------------------------------------------------------------------------
local config = require("cp.config")
--------------------------------------------------------------------------------
-- 3rd Party Extensions:
--------------------------------------------------------------------------------
local slaxdom = require("slaxml.slaxdom")
--------------------------------------------------------------------------------
--
-- CONSTANTS:
--
--------------------------------------------------------------------------------
-- PRIORITY -> number
-- Constant
-- The menubar position priority.
local PRIORITY = 200
--------------------------------------------------------------------------------
--
-- THE MODULE:
--
--------------------------------------------------------------------------------
local mod = {}
--- plugins.finalcutpro.notifications.prowl.apiValidated <cp.prop: boolean>
--- Field
--- Whether or not the API key has been validated.
mod.apiValidated = config.prop("prowlAPIValidated", false)
--- plugins.finalcutpro.notifications.prowl.validateAPIKey(key) -> success, errorMessage
--- Function
--- Validates a Growl API Key
---
--- Parameters:
--- * key - The API key as string
---
--- Returns:
--- * success - `true` if successful otherwise `false`
--- * errorMessage - a string containing any error messages
function mod.validateAPIKey(input)
local result = false
local errorMessage = " - " .. i18n("unknownError")
local prowlAction = "https://api.prowlapp.com/publicapi/verify?apikey=" .. http.encodeForQuery(input)
local _, httpBody = http.get(prowlAction, nil)
if httpBody and string.match(httpBody, "success") then
result = true
else
local xml = slaxdom:dom(tostring(httpBody))
if xml and xml['root'] and xml['root']['el'] and xml['root']['el'][1] and xml['root']['el'][1]['kids'] and xml['root']['el'][1]['kids'][1] and xml['root']['el'][1]['kids'][1]['value'] then
errorMessage = " - " .. xml['root']['el'][1]['kids'][1]['value']
end
end
return result, errorMessage
end
--- plugins.finalcutpro.notifications.prowl.enabled <cp.prop: boolean>
--- Field
--- Whether or not the plugin has been enabled.
mod.enabled = config.prop("prowlNotificationsEnabled", false):watch(function() mod.update() end)
--- plugins.finalcutpro.notifications.prowl.apiKey <cp.prop: string>
--- Field
--- Prowl API Key
mod.apiKey = config.prop("prowlAPIKey", nil)
--- plugins.finalcutpro.notifications.prowl.update() -> none
--- Function
--- Enables or disables Prowl Notifications depending on the user's preferences.
---
--- Parameters:
--- * None
---
--- Returns:
--- * None
function mod.update()
if mod.enabled() then
if mod.watcherId == nil then
mod.watcherId = mod.notifications.watch({
success = mod.sendNotification,
failure = mod.sendNotification,
})
end
else
if mod.watcherId ~= nil then
mod.notifications.unwatch(mod.watcherId)
mod.watcherId = nil
end
end
end
--- plugins.finalcutpro.notifications.prowl.init() -> none
--- Function
--- Initialises the plugin.
---
--- Parameters:
--- * None
---
--- Returns:
--- * None
function mod.init(notifications)
mod.notifications = notifications
mod.update()
end
--- plugins.finalcutpro.notifications.prowl.sendNotification(message, [title]) -> none
--- Function
--- Sends a notification.
---
--- Parameters:
--- * message - The message you want to send as a string.
--- * [title] - An optional Title for the message as a string.
---
--- Returns:
--- * success - `true` if successful otherwise `false`
--- * errorMessage - a string containing any error messages
function mod.sendNotification(message, optionalTitle)
local prowlAPIKey = mod.apiKey()
if prowlAPIKey ~= nil then
local prowlApplication = optionalTitle or string.upper(i18n("finalCutPro"))
local prowlEvent = ""
local prowlDescription = message
local prowlAction = "https://api.prowlapp.com/publicapi/add?apikey=" .. http.encodeForQuery(prowlAPIKey) .. "&application=" .. http.encodeForQuery(prowlApplication) .. "&event=" .. http.encodeForQuery(prowlEvent) .. "&description=" .. http.encodeForQuery(prowlDescription)
local _, httpBody = http.get(prowlAction, nil)
if string.match(httpBody, "success") then
return true
else
local xml = slaxdom:dom(tostring(httpBody))
local errorMessage = xml['root']['el'][1]['kids'][1]['value'] or " - " .. i18n("unknownError")
return false, errorMessage
end
end
end
--------------------------------------------------------------------------------
--
-- THE PLUGIN:
--
--------------------------------------------------------------------------------
local plugin = {
id = "finalcutpro.notifications.prowl",
group = "finalcutpro",
dependencies = {
["finalcutpro.notifications.manager"] = "manager",
["core.preferences.panels.notifications"] = "prefs",
["core.preferences.manager"] = "prefsManager",
}
}
--------------------------------------------------------------------------------
-- INITIALISE PLUGIN:
--------------------------------------------------------------------------------
function plugin.init(deps)
mod.init(deps.manager)
--------------------------------------------------------------------------------
-- Setup Preferences Panel:
--------------------------------------------------------------------------------
if deps.prefs then
deps.prefs
:addContent(PRIORITY+1, [[
<style>
.prowlEnable {
margin-bottom: 10px !important;
}
.testProwl {
float:left;
margin-top: 5px;
margin-bottom: 10px;
clear: both;
}
.getProwlAccount {
float:left;
margin-top: 5px;
margin-bottom: 10px;
margin-left:-15px;
}
</style>
<br />
<br />
<hr />
]], true)
:addHeading(PRIORITY+2, i18n("prowlNotifications"))
:addCheckbox(PRIORITY+3,
{
label = i18n("enableProwlNotifications"),
onchange = function(_, params)
if mod.apiValidated() then
mod.enabled(params.checked)
else
dialog.webviewAlert(deps.prefsManager.getWebview(), function()
deps.prefsManager.injectScript([[
document.getElementById("prowlEnable").checked = false;
]])
end, i18n("prowlMissingAPIKey"), i18n("prowlMissingAPIKeyMessage"), i18n("ok"))
end
end,
checked = mod.enabled,
id = "prowlEnable",
class = "prowlEnable",
}
)
:addTextbox(PRIORITY+4,
{
label = i18n("prowlAPIKey") .. ":",
value = mod.apiKey(),
class = "api",
onchange = function(_, params)
mod.apiKey(params.value)
local result, errorMessage = mod.validateAPIKey(params.value)
if result then
mod.apiValidated(true)
else
deps.prefsManager.injectScript([[
document.getElementById("prowlEnable").checked = false;
]])
mod.apiValidated(false)
mod.enabled(false)
dialog.webviewAlert(deps.prefsManager.getWebview(), function() end, i18n("invalidProwlAPIKey"), i18n("notValidProwlAPIKeyError") .. "\n\n" .. errorMessage, i18n("ok"))
end
end,
}
)
:addButton(PRIORITY+5,
{
label = i18n("sendTestNotification"),
onclick = function()
local success, errorMessage = mod.sendNotification(i18n("thisIsATest"), i18n("testTitle"))
if not success then
dialog.webviewAlert(deps.prefsManager.getWebview(), function() end, i18n("notificationTestFailed"), i18n("notificationTestFailedMessage") .. "\n\n" .. errorMessage, i18n("ok"))
end
end,
class = "testProwl",
}
)
:addButton(PRIORITY+6,
{
label = i18n("getProwlAccount"),
onclick = function()
os.execute("open https://www.prowlapp.com/register.php")
end,
class = "getProwlAccount",
}
)
end
return mod
end
return plugin
|
workspace.CurrentCamera.CameraSubject = script:WaitForChild("Object").Value
script:Destroy()
|
local ngx = ngx
local _M = {}
function _M.rewrite()
local ua = ngx.var.http_user_agent
if ua == "hello" then
ngx.req.set_header("x-hello-world", "1")
end
end
return _M
|
package.path = package.path .. ";data/scripts/lib/?.lua"
package.path = package.path .. ";data/scripts/entity/ui/complexManager/?.lua"
package.path = package.path .. ";data/scripts/entity/?.lua"
require ("utility")
require ("faction")
require ("defaultscripts")
require ("randomext")
require ("stationextensions")
require ("productions")
require ("goods")
require ("stringutility")
require ("constructionTab")
require ("overviewTab")
require ("tradingTab")
require ("managementTab")
Dialog = require("dialogutility")
VERSION = "[0.88] "
MOD = "[CPX3]"
DEBUGLEVEL = 2
COMPLEXINTEGRITYCHECK = 60 --every 60 seconds
CFSCRIPT = "data/scripts/entity/merchants/complexFactory.lua"
FSCRIPT = "data/scripts/entity/merchants/factory.lua"
-- Menu items
local window
--UI Renderer
local selectedTab = 1 --1:BCU, 2:ICU, 3:TCU, 4:MCU
--Complex Data
local indexedComplexData = {} --[priority] = {["factoryBlockId"] = num, ["relativeCoords"] = vec3(x,y,z), ["nodeOffset"] = vec3(x,y,z), ["factoryTyp"] = {}, ["size"] = num, ["name"] = ""}
local currentNodeID
local currentNodeOffset = vec3(0,0,0)
local targetCoreBlockIndex
local targetCoreBlockCoord
local productionData = {}
local constructionData = {} --{[buildorder] = {["BlockID"]= num, ["position"] = {x,y,z}, ["size"] = {x,y,z}, ["rootID"] = rootID}}}
local bonusValues = {}
local timepassedAfterLastCheck = 65
permissions = permissions
function debugPrint(debuglvl, msg, tableToPrint, ...)
if debuglvl <= DEBUGLEVEL then
print(MOD..VERSION..msg, ...)
if type(tableToPrint) == "table" then
printTable(tableToPrint)
end
end
end
function initialize()
if not checkEntityInteractionPermissions(Entity(), AlliancePrivilege.ManageStations) then
return
end
local station = Entity()
if onClient() then
if Entity():hasScript(CFSCRIPT) then
EntityIcon().icon = "data/textures/icons/pixel/crate.png"
end
InteractionText(station.index).text = Dialog.generateStationInteractionText(station, random())
end
end
function getIcon()
return "data/textures/icons/blockstats.png"
end
-- if this function returns false, the script will not be listed in the interaction window,
-- even though its UI may be registered
function interactionPossible(playerIndex, option)
if checkEntityInteractionPermissions(Entity(), AlliancePrivilege.ManageStations) then
return true
else
--displayChatMessage("You need the Factionpermission: Manage Stations", Faction().name, 3)
return false
end
end
-- create all required UI elements for the client side
function initUI()
local res = getResolution()*0.9
local size = vec2(1100, 800)
synchComplexdata(nil, nil, true)
local menu = ScriptUI()
window = menu:createWindow(Rect(getResolution()*0.5 - res * 0.5, getResolution()*0.5 + res*0.5))
window.caption = "Complex Manager"%_t
window.showCloseButton = 1
window.moveable = 1
menu:registerWindow(window, "Manage Complex"%_t);
local tabbedWindow = window:createTabbedWindow(Rect(vec2(10, 10), window.size))
tabbedWindow.onSelectedFunction = "onSelectedFunction"
--===============================================================================Build Complex UI======================================================================================================
local constructionTab = tabbedWindow:createTab("BCU"%_t, "data/textures/icons/brick-pile.png", "Complex Construction"%_t)
createConstructionUI(constructionTab)
--===============================================================================Info Complex UI=======================================================================================================
local infoTab = tabbedWindow:createTab("ICU"%_t, "data/textures/icons/blockstats.png", "Complex Overview"%_t)
createOverviewUI(infoTab)
--===============================================================================Trading Complex UI====================================================================================================
local tradingTab = tabbedWindow:createTab("TCU"%_t, "data/textures/icons/trade.png", "Complex Trading Overview"%_t)
createTradingUI(tradingTab)
--===============================================================================Manage Complex UI====================================================================================================
local managementTab = tabbedWindow:createTab("MCU"%_t, "data/textures/icons/auto-repair.png", "Complex Management"%_t)
createManagementUI(managementTab)
end
-- this function gets called every time the window is shown on the client, ie. when a player presses F
function onShowWindow()
invokeServerFunction("removeMissingFactories")
updateStationCombo()
client_getPermissions()
end
function renderUI()
if selectedTab == 1 then
cTRenderUI()
end
if selectedTab == 2 then
end
if selectedTab == 3 then
end
end
function getUpdateInterval()
return 0.05
end
function update(timeStep) --checking if selection in the List has changed
if onClient() then
updateOT(timeStep)
updateTT(timeStep)
else
timepassedAfterLastCheck = timepassedAfterLastCheck + timeStep
if timepassedAfterLastCheck >= COMPLEXINTEGRITYCHECK then
debugPrint(3,"Complex integrity Check", nil, Entity().name)
timepassedAfterLastCheck = 0
if onServer() == true then
Entity():removeBonus(4321234)--No Entity should have this BlockId
Entity():addKeyedMultiplyableBias(StatsBonuses.ArmedTurrets,4321234, math.floor(Entity():getPlan():getMoneyValue()/600000)) --adding 1 Turret per 600,000 net worth of the complex
end
removeMissingFactories()
end
end
end
function onSelectedFunction(tabIndex)
local tabname = TabbedWindow(tabIndex):getActiveTab().name
if tabname == "BCU" then
selectedTab = 1
end
if tabname == "ICU" then
selectedTab = 2
updateOTListdataPanel()
end
if tabname == "TCU" then
selectedTab = 3
Entity():invokeFunction(CFSCRIPT, "synchTradingLists", nil,nil,nil,nil, true)
end
if tabname == "MCU" then
selectedTab = 4
end
end
function cmOnConstructionButtonPress(constructionData, addedPlan, addedComplexData, basefab)
if basefab ~= nil then
indexedComplexData[1] = basefab
end
indexedComplexData[#indexedComplexData + 1] = addedComplexData
invokeServerFunction("startConstruction", constructionData, addedPlan, indexedComplexData, Player().index)
debugPrint(3, "pre Fab added", indexedComplexData)
end
-- ######################################################################################################### --
-- ###################################### Both Sided ############################################# --
-- ######################################################################################################### --
-- First synchronise the data, then update the corresponding Classes
function synchSingleComplexdata(priority, data, calledOnServer)
if priority == nil then debugPrint(3, "synchSingleComplexdata nil found") return end
if data == nil then debugPrint(3, "Synch single data nil") end
--vec3 is userdata and gets converted to a Table, when transmitted. This turns tables back to vec3.
if type(data.nodeOffset) == "table" then
data.nodeOffset = tableToVec3(data.nodeOffset)
debugPrint(4, "nodeOffset Table")
end
if type(data.relativeCoords) == "table" then
data.relativeCoords = tableToVec3(data.relativeCoords)
debugPrint(4, "relativeCoords Table")
end
if onServer() == true then
if calledOnServer == nil then
invokeClientFunction(Player(), "synchSingleComplexdata", priority, data, true)
end
updateSingleComplexdata(priority, data)
else
if calledOnServer == nil then
invokeServerFunction("synchSingleComplexdata", priority, data, false)
end
updateSingleComplexdata(priority, data)
end
end
--requests allow for simple sending without changing data
function synchComplexdata(pIndexedComplexData, calledOnServer, isrequest)
if onServer() then
debugPrint(3, "synchronising", indexedComplexData, Entity().index)
end
if isrequest == true then
if onServer() then
if callingPlayer ~= nil then
invokeClientFunction(Player(callingPlayer), "synchComplexdata", indexedComplexData, true)
return
else
--broadcastInvokeClientFunction("synchComplexdata", indexedComplexData, true)
debugPrint(1, "wrong player:", nil, callingPlayer, calledOnServer)
return
end
else
if indexedComplexData == nil or next(indexedComplexData) == nil then
invokeServerFunction("synchComplexdata", nil, nil, true)
else
updateComplexdata(indexedComplexData)
end
end
end
if pIndexedComplexData == nil then debugPrint(3, "synchComplexdata is nil") return end
-- When transmitted, userdata vec3 gets converted to a Table. This turns tables back to vec3.
for priority, data in pairs(pIndexedComplexData) do
if type(data.nodeOffset) == "table" then
data.nodeOffset = tableToVec3(data.nodeOffset)
end
if type(data.relativeCoords) == "table" then
data.relativeCoords = tableToVec3(data.relativeCoords)
end
pIndexedComplexData[priority] = data
end
if onServer() == true then
if calledOnServer == nil then
broadcastInvokeClientFunction("synchComplexdata", pIndexedComplexData, true)
end
updateComplexdata(pIndexedComplexData)
else
if calledOnServer == nil then
invokeServerFunction("synchComplexdata", pIndexedComplexData, false)
end
updateComplexdata(pIndexedComplexData)
end
end
function updateSingleComplexdata(priority, data)
if onServer() == true then
indexedComplexData[priority] = data
Entity():invokeFunction(CFSCRIPT, "setComplexData", indexedComplexData)
else
indexedComplexData[priority] = data
updateOTComplexData(indexedComplexData)
updateComplexdataCT(indexedComplexData)
end
end
function updateComplexdata(pIndexedComplexData)
if onServer() == true then
indexedComplexData = pIndexedComplexData
transmitComplexNetWorth(pIndexedComplexData)
local status = Entity():invokeFunction(CFSCRIPT, "setComplexData", indexedComplexData)
debugPrint(3, "updateComplexdata "..CFSCRIPT.." status:", nil, status)
else
indexedComplexData = pIndexedComplexData
transmitComplexNetWorth(pIndexedComplexData)
updateOTComplexData(indexedComplexData)
updateComplexdataCT(indexedComplexData)
end
end
function passChangedTradingDataToTT(pTradingData)
if onServer() == true then
debugPrint(0, "passing TradingData to Server is not allowed!")
else
updateTradingdata(pTradingData)
end
end
function synchProductionData(pProductionData, calledOnServer)
debugPrint(3,"sync of ProductionData", pProductionData)
if onServer() == true then
if calledOnServer == nil then
broadcastInvokeClientFunction("synchProductionData", pProductionData, true)
else
debugPrint(0,"synchProductionData called from Client - This is not allowed!")
return
end
updateProductionData(pProductionData)
else
if calledOnServer == true then
updateProductionData(pProductionData)
else
debugPrint(0,"synchProductionData called on Client- This is not allowed!")
return
end
end
end
function updateProductionData(pProductionData)
if onServer() == true then
productionData = pProductionData -- To be able to save it on Sector-unload
else
--no need to store it on the clientside. We just pass it directly to the overview-tab
updateOTFactoryList(pProductionData)
end
end
-- only bonusType == "GeneratedEnergy"
function addStatBonus(id, bonusType, value)
if onServer() then
Entity():removeBonus(id)
local v = Entity():addKeyedMultiplyableBias(StatsBonuses.GeneratedEnergy, id, value) --add <factor> to the stat
bonusValues[id] = value
else
invokeServerFunction("addStatBonus", id, bonusType, value)
end
end
function removeBonus(id)
if onServer() then
bonusValues[id] = nil
Entity():removeBonus(id)
else
invokeServerFunction("removeBonus", id)
end
end
function updateTradingTab()
if onServer() then
debugPrint(0, "updateTradingTab is not allowed on Server")
else
updateTradingdata()
end
end
function tRN(number)
number = tonumber(number)
if number == nil then return 0 end
number = math.floor(number*100)/100 --keep last 2 digit
local formatted = number
while true do
formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2')
if (k==0) then
break
end
end
return formatted
end
function vec3ToTable(vec)
local retTable = {x = vec.x, y = vec.y, z = vec.z}
return retTable
end
function tableToVec3(tab)
local vec = vec3(tab.x, tab.y, tab.z)
return vec
end
function removeMissingFactories()
local complex = Entity():getPlan()
local removedSomething = false
for index,data in pairs(indexedComplexData) do
local nodeID = data.factoryBlockId
if not complex:getBlock(nodeID) then
debugPrint(1, data.name.." has been removed from Complex: ", nil, Entity().name, Entity().title)
local player = Player(Entity().factionIndex)
if player then
player:sendChatMessage( Entity().name, 2, data.name.." has been removed from your Complex: "..Entity().name)
end
indexedComplexData[index] = nil
bonusValues[nodeID] = nil
removedSomething = true
end
end
if removedSomething == true then
local t = 1
local cleanList = {}
for index,data in pairs(indexedComplexData) do
cleanList[t] = data
t = t + 1
end
indexedComplexData = cleanList
if onServer() == true then
debugPrint(2, "synch Missing fabs")
synchComplexdata(indexedComplexData)
else
debugPrint(0, "removeMissingFactories should not be called onClient")
end
end
end
-- ######################################################################################################### --
-- ###################################### Server Sided ############################################# --
-- ######################################################################################################### --
function startConstruction(pConstructionData, connectorPipePlan, pIndexedComplexData, playerIndex)
if pIndexedComplexData == nil or next(pIndexedComplexData) == nil then
debugPrint(0, "IndexedComplexData incomplete")
synchComplexdata(indexedComplexData)
return
end
indexedComplexData = pIndexedComplexData
constructionData = pConstructionData
local self = Entity()
local addedFactory = Entity(constructionData[0].targetID)
local newComplex =self:getPlan()
local addedFactoryPlan = addedFactory:getPlan()
local timer = Timer()
timer:start()
local player = Player(playerIndex)
if (newComplex:getBlock(constructionData[1].BlockID)
or newComplex:getBlock(constructionData[1].BlockID)
or newComplex:getBlock(constructionData[1].BlockID)
or newComplex:getBlock(constructionData[1].BlockID)) then
debugPrint(0, "[CRITICAL] faulty complex construction data send. No changes were made")
player:sendChatMessage(self.title, 3, "Could not add "..(addedFactory.translatedTitle or "error"))
return
end
timer:stop()
debugPrint(4, "Time check", nil, "took ".. timer.microseconds/1000 .."ms for faulty complexdata check" )
--check if the player is allowed to change the Complex
if not checkEntityInteractionPermissions(Entity(),AlliancePrivilege.ManageStations) then
return
end
-- get the money required for the plan
local requiredMoney = connectorPipePlan:getMoneyValue()
local requiredResources = {connectorPipePlan:getResourceValue()}
local canPay, msg, args = player:canPay(requiredMoney, unpack(requiredResources))
if not canPay then -- if there was an error, print it
player:sendChatMessage(self.title, 1, msg, unpack(args))
return
end
-- let the player pay
player:pay(requiredMoney, unpack(requiredResources))
player:sendChatMessage(self.title, 0, "Complex Construction begins.")
--extending Complex from data send
newComplex:addBlock(tableToVec3(constructionData[1].position), tableToVec3(constructionData[1].size), constructionData[1].rootID, constructionData[1].BlockID, ColorRGB(0.5, 0.5, 0.5), Material(MaterialType.Xanion) , Matrix(), BlockType.Hull)
newComplex:addBlock(tableToVec3(constructionData[2].position), tableToVec3(constructionData[2].size), constructionData[2].rootID, constructionData[2].BlockID, ColorRGB(0.5, 0.5, 0.5), Material(MaterialType.Xanion) , Matrix(), BlockType.Hull)
newComplex:addBlock(tableToVec3(constructionData[3].position), tableToVec3(constructionData[3].size), constructionData[3].rootID, constructionData[3].BlockID, ColorRGB(0.5, 0.5, 0.5), Material(MaterialType.Xanion) , Matrix(), BlockType.Hull)
newComplex:addBlock(tableToVec3(constructionData[4].position), tableToVec3(constructionData[4].size), constructionData[4].rootID, constructionData[4].BlockID, ColorRGB(0.5, 0.0, 0.0), Material(MaterialType.Trinium) , Matrix(), BlockType.Armor)
--adding new Station
newComplex:addPlanDisplaced(constructionData[4].blockID, addedFactoryPlan, addedFactoryPlan.rootIndex, tableToVec3(constructionData[4].position))
--set new Complex
self:setPlan(newComplex)
--carry over Crew and Storage
local crew = addedFactory.crew
for crewman, num in pairs(crew:getMembers()) do
self:addCrew(num, crewman)
end
local facGoods = addedFactory:getCargos()
for tg,num in pairs(facGoods)do
self:addCargo(tg, num)
end
addedFactory:destroyCargo(addedFactory.maxCargoSpace)
Sector():deleteEntityJumped(addedFactory)
debugPrint(3, "sending indexedComplexData to Client:")
synchComplexdata(indexedComplexData)
if Entity():hasScript(CFSCRIPT) then
if Entity():hasScript(FSCRIPT) then
Entity():removeScript(FSCRIPT)
end
Entity():invokeFunction(CFSCRIPT, "setComplexData", indexedComplexData)
else
if Entity():hasScript(FSCRIPT) then
Entity():removeScript(FSCRIPT)
end
Entity():addScript(CFSCRIPT)
Entity():invokeFunction(CFSCRIPT, "setComplexData", indexedComplexData)
end
end
function applyBoni()
for id,value in pairs(bonusValues) do
debugPrint(3,"applyBoni", nil, id, value)
addStatBonus(id, "GeneratedEnergy", value)
end
end
function restore(restoreData)
if callingPlayer == nil then
debugPrint(3,"Manager ", restoreData, Entity().index)
-- In case of unexpected data corruption we try to restore data from CFSCRIPT
if (restoreData.indexedComplexData == nil or next(restoreData.indexedComplexData) == nil) and not Entity():hasScript(FSCRIPT) then
debugPrint(0, "[CRITICAL] Trying to load backup data from "..CFSCRIPT, nil, "On Complex: ".. (Entity().title or "error") .. ", "..(Entity().name or "error"), "in sector:", Sector():getCoordinates() )
local status, data = Entity():invokeFunction(CFSCRIPT, "getComplexData2")
if status == 0 then
debugPrint(0, "[less - CRITICAL] Got data from "..CFSCRIPT, data, ". You lucky Bastard!")
indexedComplexData = data
elseif status == 3 then -- Does not have CFSCRIPT, so it's not a complex
else
debugPrint(0, "[CRITICAL] Could not load backup data from "..CFSCRIPT..". You poor Bastard!", nil, "On Complex: ".. (Entity().title or "error") .. ", "..(Entity().name or "error"), "in sector:", Sector():getCoordinates() )
end
end
for index, data in pairs(restoreData.indexedComplexData) do
data.nodeOffset = tableToVec3(data.nodeOffset)
data.relativeCoords = tableToVec3(data.relativeCoords)
indexedComplexData[index] = data
end
for index, data in pairs(restoreData.productionData) do
data.nodeOffset = vec3ToTable(data.nodeOffset)
data.relativeCoords = vec3ToTable(data.relativeCoords)
productionData[index] = data
end
bonusValues = restoreData.bonusValues or {}
synchComplexdata(indexedComplexData)
synchProductionData(productionData)
applyBoni()
end
end
function secure()
local savedata = {}
local pProductionData, pIndexedComplexData = {}, {}
--Current production Data
for index, data in pairs(productionData) do
data.nodeOffset = vec3ToTable(data.nodeOffset)
data.relativeCoords = vec3ToTable(data.relativeCoords)
pProductionData[index] = data
end
--prioritised Complex Data
for index, data in pairs(indexedComplexData) do
data.nodeOffset = vec3ToTable(data.nodeOffset)
data.relativeCoords = vec3ToTable(data.relativeCoords)
pIndexedComplexData[index] = data
end
savedata["productionData"] = pProductionData
savedata["indexedComplexData"] = pIndexedComplexData
savedata.bonusValues = bonusValues
return savedata
end
|
ambox = require('ambox')
p = print
function a1(a, b, c)
assert(a > 0)
assert(b > 0)
assert(c > 0)
local self_addr = ambox.self_addr()
assert(self_addr)
while true do
x, y, z = ambox.recv()
assert(x > 0 and x == y - 1 and y == z - 1)
end
end
a1_addr = ambox.spawn(a1, 111, 222, 333)
ambox.send(a1_addr, 1, 2, 3)
ambox.send(a1_addr, 2, 3, 4)
------------------------------------------
function a2()
local self_addr = ambox.self_addr()
assert(self_addr)
while true do
times = ambox.recv()
for i = 1, times do
ambox.send(self_addr, -1)
end
local j = 0
local t = times
while t > 0 do
delta = ambox.recv()
assert(delta == -1)
t = t + delta
j = j + 1
end
assert(j == times)
end
end
a2_addr = ambox.spawn(a2)
ambox.send(a2_addr, 5)
------------------------------------------
function a3(done_addr)
local self_addr = ambox.self_addr()
assert(self_addr)
times = ambox.recv()
ambox.send(a2_addr, times)
if done_addr then
ambox.send(done_addr, "a3.done", times)
end
end
a3_addr = ambox.spawn(a3)
ambox.send(a3_addr, 5)
ambox.send(a3_addr, 6)
------------------------------------------
function a4(name)
local self_addr = ambox.self_addr()
assert(self_addr)
while true do
times = ambox.recv()
a4_child = ambox.spawn(a3, self_addr)
ambox.send(a4_child, times)
rv_msg, rv_times = ambox.recv()
assert(rv_msg == "a3.done")
assert(rv_times == times)
end
end
a4_addr = ambox.spawn(a4, "mary")
ambox.send(a4_addr, 3)
ambox.send(a4_addr, 2)
------------------------------------------
ambox.cycle()
s = ambox.stats()
for k, v in pairs(s) do print(k, v) end
p("DONE")
|
-------------------------------------------------------------------------------
-- Class to help to build GuiButton
--
-- @module GuiButton
--
-------------------------------------------------------------------------------
--
-- @function [parent=#GuiButton] constructor
-- @param #arg name
-- @return #GuiButton
--
GuiButton = newclass(GuiElement,function(base,...)
GuiElement.init(base,...)
base.classname = "SEGuiButton"
base.options.type = "button"
end)
GuiButtonChoose = newclass(GuiElement,function(base,...)
GuiElement.init(base,...)
base.classname = "SEGuiButton"
base.options.type = "choose-elem-button"
end)
-------------------------------------------------------------------------------
--
-- @function [parent=#GuiButton] option
-- @param #string name
-- @param #string value
-- @return #GuiButton
--
function GuiButton:option(name, value)
self.options[name] = value
end
-------------------------------------------------------------------------------
--
-- @function [parent=#GuiButton] index
-- @param #number index
-- @return #GuiButton
--
function GuiButton:index(index)
self.m_index = index
return self
end
-------------------------------------------------------------------------------
--
-- @function [parent=#GuiButton] number
-- @param #number value
-- @return #GuiButton
--
function GuiButton:number(value)
self.options.number = value
return self
end
-------------------------------------------------------------------------------
--
-- @function [parent=#GuiButton] choose
-- @param #string type
-- @param #string name
-- @return #GuiButton
--
function GuiButton:choose(type, name)
self.options.type = "choose-elem-button"
--self.options.style = "slot_button"
if type == "recipe-burnt" then type = "recipe" end
if type == "resource" then type = "entity" end
if type == "rocket" then type = "item" end
self.options.elem_type = type
self.options[type] = name
--- table.insert(self.name, name)
return self
end
-------------------------------------------------------------------------------
--
-- @function [parent=#GuiButton] onErrorOptions
-- @return #table
--
function GuiButton:onErrorOptions()
local options = self:getOptions()
--- options.style = "helmod_button_default"
options.type = "button"
if (type(options.caption) == "boolean") then
SE.Logger.Error(self.classname .. " : addGuiButton - caption is a boolean")
elseif self.m_caption ~= nil then
options.caption = self.m_caption
else
options.caption = options.key
end
return options
end
|
local libDataBroker = LibStub:GetLibrary("LibDataBroker-1.1", true)
if not libDataBroker then return end
local ldb = libDataBroker:NewDataObject("HeroicRaidReady", {
type = "launcher",
icon = "Interface\\Icons\\Achievement_Dungeon_GloryoftheRaider",
label = "HeroicRaidReady",
})
function ldb:OnClick(clickedFrame, button)
if (HeroicRaidReady.frame:IsVisible()) then
HeroicRaidReady.frame:Hide();
else
HeroicRaidReady:DisplayHeroicReadiness();
end
end
function ldb:OnTooltipShow()
self:AddLine(format("%s %s", HeroicRaidReady.name, HeroicRaidReady.version))
self:AddLine("------------------------------")
self:AddLine(UnitName("player"))
local characterData = HeroicRaidReady.db.factionrealm.character[UnitName("player")]
for raid = 1, HeroicRaidReady.numberOfAchievements do
if characterData[raid].ready then
self:AddLine(format(" |cFF00FF00%s - Ready!|r", characterData[raid].raidName))
else
self:AddLine(format(" |cFFFF0000%s - Not Ready|r", characterData[raid].raidName))
end
end
end
|
local verse = require "verse";
local xmlns_register = "jabber:iq:register";
function verse.plugins.register(stream)
local function handle_features(features_stanza)
if features_stanza:get_child("register", "http://jabber.org/features/iq-register") then
local request = verse.iq({ to = stream.host_, type = "set" })
:tag("query", { xmlns = xmlns_register })
:tag("username"):text(stream.username):up()
:tag("password"):text(stream.password):up();
if stream.register_email then
request:tag("email"):text(stream.register_email):up();
end
stream:send_iq(request, function (result)
if result.attr.type == "result" then
stream:event("registration-success");
else
local type, condition, text = result:get_error();
stream:debug("Registration failed: %s", condition);
stream:event("registration-failure", { type = type, condition = condition, text = text });
end
end);
else
stream:debug("In-band registration not offered by server");
stream:event("registration-failure", { condition = "service-unavailable" });
end
stream:unhook("stream-features", handle_features);
return true;
end
stream:hook("stream-features", handle_features, 310);
end
|
return require('packer').startup(function()
use 'wbthomason/packer.nvim'
-- language support
use 'https://tildegit.org/sloum/gemini-vim-syntax' -- gemini
use 'lervag/vimtex' -- LaTeX
use {
'nvim-telescope/telescope-fzf-native.nvim',
run = 'make',
}
use {
'nvim-telescope/telescope.nvim',
requires = { 'nvim-lua/plenary.nvim' },
config = function()
require('telescope').setup {}
-- require('telescope').load_extensions('fzf')
end
}
use {
'kyazdani42/nvim-tree.lua',
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
config = function()
require("nvim-tree").setup {}
end
}
use {
"folke/which-key.nvim",
"b0o/mapx.nvim",
config = function()
require("which-key").setup {}
require("mapx").setup { global = true, whichkey = true }
end
}
use {
'nvim-treesitter/nvim-treesitter',
-- 'nvim-treesitter/nvim-treesitter-textobjects',
run = ':TSUpdate',
config = function()
require("nvim-treesitter.configs").setup {
ensure_installed = {
"bash",
"dockerfile",
"fish",
"go",
"gomod",
"json",
"lua",
"python",
"svelte",
"toml",
"yaml",
},
highlight = {
enable = true,
},
indent = {
enable = true,
},
}
end
}
use 'folke/tokyonight.nvim'
use {
'numToStr/Comment.nvim',
config = function()
require('Comment').setup {}
end
}
use {
'akinsho/bufferline.nvim',
requires = { "kyazdani42/nvim-web-devicons", opt = true },
config = function()
require("bufferline").setup {}
end
}
use {
"lukas-reineke/indent-blankline.nvim",
config = function()
require("indent_blankline").setup {
char = '▏',
space_char_blankline = " ",
-- show_first_indent_level = false,
show_current_context = true,
show_current_context_start = true,
}
end
}
use {
'nvim-lualine/lualine.nvim',
requires = {'kyazdani42/nvim-web-devicons', opt = true},
config = function()
require("lualine").setup {
options = {
theme = 'tokyonight'
}
}
end
}
use {
'nvim-lua/popup.nvim'
}
use {
'lewis6991/gitsigns.nvim',
requires = { 'nvim-lua/plenary.nvim' },
config = function()
require("gitsigns").setup {
signs = {
add = {hl = 'GitSignsAdd' , text = '+', numhl='GitSignsAddNr' , linehl='GitSignsAddLn'},
change = {hl = 'GitSignsChange', text = '~', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
delete = {hl = 'GitSignsDelete', text = '_', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
topdelete = {hl = 'GitSignsDelete', text = '‾', numhl='GitSignsDeleteNr', linehl='GitSignsDeleteLn'},
changedelete = {hl = 'GitSignsChange', text = '~', numhl='GitSignsChangeNr', linehl='GitSignsChangeLn'},
},
}
end
}
use {
'neovim/nvim-lspconfig',
'williamboman/nvim-lsp-installer',
}
use {
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
'hrsh7th/nvim-cmp',
'saadparwaiz1/cmp_luasnip',
'L3MON4D3/LuaSnip',
'onsails/lspkind-nvim',
}
use {
"folke/trouble.nvim",
requires = { "kyazdani42/nvim-web-devicons", opt = true },
config = function()
require("trouble").setup {}
end
}
use {
'ray-x/go.nvim',
requires = { 'nvim-treesitter/nvim-treesitter' },
config = function()
require('go').setup {}
end
}
end)
|
local M = {}
M.setup = function()
vim.opt.foldlevelstart = 99
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.indentexpr = "nvim_treesitter#indent()"
require("nvim-treesitter.configs").setup {
ensure_installed = {
"bash",
"comment",
"css",
"dockerfile",
"go",
"gomod",
"graphql",
"html",
"java",
"javascript",
"jsdoc",
"json",
"json5",
"jsonc",
"lua",
"python",
"query",
"regex",
"ruby",
"rust",
"scss",
"svelte",
"toml",
"tsx",
"typescript",
"vim",
"vue",
"yaml",
},
highlight = {
enable = true,
use_languagetree = true,
},
indent = { enable = true },
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<Enter>",
node_incremental = "<Enter>",
node_decremental = "<BS>",
},
},
textobjects = {
select = {
enable = true,
-- Automatically jump forward to textobj, similar to targets.vim
lookahead = true,
keymaps = {
["af"] = "@function.outer",
["if"] = "@function.inner",
["ac"] = "@class.outer",
["ic"] = "@class.inner",
},
},
swap = {
enable = true,
swap_next = { ["<leader>a"] = "@parameter.inner" },
swap_previous = { ["<leader>A"] = "@parameter.inner" },
},
move = {
enable = true,
set_jumps = true, -- whether to set jumps in the jumplist
goto_next_start = {
["]m"] = "@function.outer",
["]]"] = "@class.outer",
},
goto_next_end = {
["]M"] = "@function.outer",
["]["] = "@class.outer",
},
goto_previous_start = {
["[m"] = "@function.outer",
["[["] = "@class.outer",
},
goto_previous_end = {
["[M"] = "@function.outer",
["[]"] = "@class.outer",
},
},
lsp_interop = {
enable = false,
},
},
autotag = {
enable = true,
},
context_commentstring = { enable = true, enable_autocmd = false },
matchup = {
enable = true, -- mandatory, false will disable the whole extension
disable = { "c", "ruby" }, -- optional, list of language that will be disabled
},
}
end
return M
|
--[[
=====================================================================
** Map Tools **
By Calinou.
Copyright (c) 2012-2015 Calinou and contributors.
Licensed under the zlib license. See LICENSE.md for more information.
=====================================================================
--]]
maptools = {}
local S
if minetest.get_modpath("intllib") then
S = intllib.Getter()
else
S = function(s) return s end
end
maptools.intllib = S
local modpath = minetest.get_modpath("maptools")
dofile(modpath .. "/config.lua")
dofile(modpath .. "/aliases.lua")
dofile(modpath .. "/craftitems.lua")
dofile(modpath .. "/default_nodes.lua")
dofile(modpath .. "/nodes.lua")
-- dofile(modpath .. "/tools.lua")
--[[
Map Tools by Calinou
Licensed under the zlib license for code and CC BY-SA 3.0 for textures, see LICENSE.txt for info.
--]]
-- Redefine cloud so that the admin pickaxe can mine it.
minetest.register_node(":default:cloud", {
description = S("Cloud"),
tiles = {"default_cloud.png"},
drop = "",
groups = {unbreakable = 1, not_in_creative_inventory = maptools.creative},
sounds = default.node_sound_defaults(),
})
-- Items
minetest.register_craft({
type = "fuel",
recipe = "maptools:infinitefuel",
burntime = 1000000000,
})
-- Items
minetest.register_craftitem("maptools:copper_coin", {
description = S("Copper Coin"),
inventory_image = "maptools_copper_coin.png",
wield_scale = {x = 0.5, y = 0.5, z = 0.25},
stack_max = 10000,
groups = {not_in_creative_inventory = maptools.creative},
})
minetest.register_craftitem("maptools:silver_coin", {
description = S("Silver Coin"),
inventory_image = "maptools_silver_coin.png",
wield_scale = {x = 0.5, y = 0.5, z = 0.25},
stack_max = 10000,
groups = {not_in_creative_inventory = maptools.creative},
})
minetest.register_craftitem("maptools:gold_coin", {
description = S("Gold Coin"),
inventory_image = "maptools_gold_coin.png",
wield_scale = {x = 0.5, y = 0.5, z = 0.25},
stack_max = 10000,
groups = {not_in_creative_inventory = maptools.creative},
})
minetest.register_craftitem("maptools:infinitefuel", {
description = S("Infinite Fuel"),
inventory_image = "maptools_infinitefuel.png",
stack_max = 10000,
groups = {not_in_creative_inventory = maptools.creative},
})
minetest.register_on_punchnode(function(pos, node, puncher)
if puncher:get_wielded_item():get_name() == "maptools:pick_admin"
and minetest.get_node(pos).name ~= "air" then
minetest.log("action", puncher:get_player_name() .. " digs " .. minetest.get_node(pos).name .. " at " .. minetest.pos_to_string(pos) .. " using an Admin Pickaxe.")
minetest.remove_node(pos) -- The node is removed directly, which means it even works on non-empty containers and group-less nodes.
nodeupdate(pos) -- Run node update actions like falling nodes.
end
end)
if minetest.setting_getbool("log_mods") then
minetest.log("action", S("[maptools] loaded."))
end
|
local addNode = require('graph.addNode')
local function addLink(fromId, toId, data)
local _fromId = addNode(fromId);
local _toId = addNode(toId);
-- NOTE: this design prohibits multiedges (since we are using sets)
redis.call('SADD', _fromId .. '.out', _toId);
redis.call('SADD', _toId .. '.in', _fromId);
if data and table.getn(data) > 0 then
-- If we have any data associated with this edge - let's update it:
redis.call('HMSET', _fromId .. '.' .. _toId, unpack(data))
end
end
return addLink
|
local IS_ENABLED = script:GetCustomProperty("ShowSkinsAtRun")
if (Environment.IsPreview() and IS_ENABLED) then
local EQDB = script:GetCustomProperty("EquipmentDataBase"):WaitForObject()
for _, folder in pairs(EQDB:GetChildren()) do
for _, firstChild in pairs(folder:GetChildren()) do
print(folder.name .. " | " ..firstChild.name)
print("____________________________________")
for _, weapon in pairs(firstChild:GetChildren()) do
for _, skin in pairs(weapon:GetChildren()) do
print(
weapon:GetCustomProperty("ID")..
"_"..
skin:GetCustomProperty("ID")..
" -- level: "..
skin:GetCustomProperty("LEVEL")..
" rarity: "..
skin:GetCustomProperty("Rarity")..
" | "..
weapon.name..
":"..
skin.name
)
end
end
end
end
end
|
local awful = require("awful")
local rofi = require("modules.rofi")
local modkey = require("config.keys.mod").modkey
local altkey = require("config.keys.mod").altkey
local shiftkey = require("config.keys.mod").shiftkey
local ctrlkey = require("config.keys.mod").ctrlkey
return awful.util.table.join(
awful.key({ modkey, shiftkey }, "t",
awful.titlebar.toggle,
{
description = "\t\tToggle client titlebar",
group = "Client"
}),
awful.key({ modkey }, "f",
function (c)
c.fullscreen = not c.fullscreen
c:raise()
end,
{
description = "\t\tToggle fullscreen",
group = "Client"
}),
awful.key({ modkey, ctrlkey }, "c",
function (c) c:kill() end,
{
description = "\t\tSend SIGKILL",
group = "Client"
}),
awful.key({ modkey, ctrlkey }, "space",
awful.client.floating.toggle,
{
description = "\tToggle floating",
group = "Client"
}),
awful.key({ modkey }, "a",
function (c)
rofi.prompt(
{
p = "New tag name for client",
dmenu = true,
},
function(new_name)
-- Create new tag
tag = awful.tag.add(
new_name,
{
volatile = true,
screen = c.screen,
layout = awful.layout.suit.tile
})
-- Move client to next screen
c:move_to_tag(tag)
tag:view_only()
end)
end,
{
description = "\t\t\tMove to new tag",
group = "Tags"
}),
awful.key({ modkey }, "o",
function (c, t)
-- Get idx of current tag of client
local stop = false
local idx = 1
local tag = c.screen.tags[c.first_tag.index]
-- Restore last tag visited
awful.tag.history.restore()
-- Move client to next screen
c:move_to_screen()
if not awful.tag.find_by_name(c.screen, tag.name) then
awful.tag.add(
tag.name,
{
volatile = true,
screen = c.screen,
layout = awful.layout.suit.tile
}
)
end
tag = awful.tag.find_by_name(c.screen, tag.name)
c:move_to_tag(tag)
c:jump_to()
awful.tag.history.update(c.screen)
end,
{
description = "\t\tMove to next screen",
group = "Client"
}),
awful.key({ modkey }, "t",
function (c) c.ontop = not c.ontop end,
{
description = "\t\tToggle keep on top",
group = "Client"
}),
awful.key({ modkey }, "s",
function (c) c.sticky = not c.sticky end,
{
description = "\t\tToggle sticky client",
group = "Client"
}),
awful.key({ modkey }, "n",
function (c)
-- The client currently has the input focus, so it cannot be
-- minimized, since minimized clients can't have the focus.
c.minimized = true
end ,
{
description = "\t\tMinimize",
group = "Client"
}),
awful.key({ modkey, shiftkey }, "n",
function ()
local c = awful.client.restore()
-- Focus restored client
if c then
client.focus = c
c:raise()
end
end,
{
description = "\t\tRestore minimized",
group = "Client"
}),
awful.key({ modkey }, "m",
function (c)
c.maximized = not c.maximized
c:raise()
end ,
{
description = "\t\tMaximize",
group = "Client"
})
)
|
-- Set of known compatible/incompatible plugins for your gamemode (any not in this table will use their default behaviour).
local CompatiblePlugins = {
voterandom = true,
votesurrender = true,
pregame = true
}
Shine.Hook.Add( "CanPluginLoad", "MyGamemodeCheck", function( Plugin, GamemodeName )
return CompatiblePlugins[ Plugin:GetName() ]
end )
|
module(...,package.seeall)
--
----定义规范:
----PacketID/100 为协议组,每个模块对应一组,如角色,技能等
----PacketID%100 为子协议号
---- 10000以下为 内部通信消息
-- CG == client to game server
-- GC == game server to client
--- character ---
CG_ASK_LOGIN = 10001
GC_ASK_LOGIN = 10002
CG_REGISTER = 10003
GC_REGISTER = 10004
GC_HUMAN_INFO = 10006
CG_GET_NAME = 10052
GC_GET_NAME = 10053
CG_CHECK_ACCNAME = 10054
GC_CHECK_ACCNAME = 10055
CG_CREATE_ROLE = 10056
GC_CREATE_ROLE = 10057
--- chat ---
CG_CHAT = 10101
GC_CHAT = 10102
GC_BROADCAST = 10103
CG_DISCONNECT = 10104
GC_DISCONNECT = 10105
--- http request ---
CG_GET = 20101
GC_GET = 20102
|
local defaults = require("plugins.telescope.defaults")
require("telescope").setup({
defaults = defaults,
extensions = {
-- Fast, fast, really fast sorter
fzy_native = {
override_generic_sorter = false,
override_file_sorter = true,
},
fzf = {
fuzzy = true, -- false will only do exact matching
override_generic_sorter = false, -- override the generic sorter
override_file_sorter = true, -- override the file sorter
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
-- the default case_mode is "smart_case"
},
},
})
-- Load Telescope extensions
vim.cmd[[hi TelescopeNormal guibg=none]]
vim.cmd[[hi TelescopeBorder guibg=none]]
require('telescope').load_extension('fzy_native')
|
<script src="<%- staticFile('/public/libs/editor/editor.js') %>" ></script>
<script src="<%- staticFile('/public/libs/webuploader/webuploader.withoutimage.js') %>"></script>
<script src="<%- staticFile('/public/libs/editor/ext.js') %>"></script>
|
--[[
Powerarrow Darker Awesome WM config 2.0
github.com/copycat-killer
--]]
local awful = require("awful")
awful.util = require("awful.util")
--{{{ Main
theme = {}
home = os.getenv("HOME")
config = awful.util.getdir("config")
shared = "/usr/share/awesome"
if not awful.util.file_readable(shared .. "/icons/awesome16.png") then
shared = "/usr/share/local/awesome"
end
sharedicons = shared .. "/icons"
sharedthemes = shared .. "/themes"
themes = config .. "/themes"
themename = "/powerarrow-darker"
if not awful.util.file_readable(themes .. themename .. "/theme.lua") then
themes = sharedthemes
end
themedir = themes .. themename
wallpaper1 = themedir .. "/wall.png"
wallpaper2 = themedir .. "/background.png"
wallpaper3 = sharedthemes .. "/zenburn/zenburn-background.png"
wallpaper4 = sharedthemes .. "/default/background.png"
wpscript = home .. "/.wallpaper"
if awful.util.file_readable(wallpaper1) then
theme.wallpaper = wallpaper1
elseif awful.util.file_readable(wallpaper2) then
theme.wallpaper = wallpaper2
elseif awful.util.file_readable(wpscript) then
theme.wallpaper_cmd = { "sh " .. wpscript }
elseif awful.util.file_readable(wallpaper3) then
theme.wallpaper = wallpaper3
else
theme.wallpaper = wallpaper4
end
--}}}
theme.font = "Terminus 9"
theme.fg_normal = "#DDDDFF"
theme.fg_focus = "#F0DFAF"
theme.fg_urgent = "#CC9393"
theme.bg_normal = "#1A1A1A"
theme.bg_focus = "#313131"
theme.bg_urgent = "#1A1A1A"
theme.border_width = "1"
theme.border_normal = "#3F3F3F"
theme.border_focus = "#7F7F7F"
theme.border_marked = "#CC9393"
theme.titlebar_bg_focus = "#FFFFFF"
theme.titlebar_bg_normal = "#FFFFFF"
theme.taglist_fg_focus = "#D8D782"
theme.tasklist_bg_focus = "#1A1A1A"
theme.tasklist_fg_focus = "#D8D782"
theme.textbox_widget_margin_top = 1
theme.notify_fg = theme.fg_normal
theme.notify_bg = theme.bg_normal
theme.notify_border = theme.border_focus
theme.awful_widget_height = 14
theme.awful_widget_margin_top = 2
theme.mouse_finder_color = "#CC9393"
theme.menu_height = "16"
theme.menu_width = "140"
theme.menu_submenu_icon = themedir .. "/icons/submenu.png"
theme.taglist_squares_sel = themedir .. "/icons/square_sel.png"
theme.taglist_squares_unsel = themedir .. "/icons/square_unsel.png"
theme.layout_tile = themedir .. "/icons/tile.png"
theme.layout_tilegaps = themedir .. "/icons/tilegaps.png"
theme.layout_tileleft = themedir .. "/icons/tileleft.png"
theme.layout_tilebottom = themedir .. "/icons/tilebottom.png"
theme.layout_tiletop = themedir .. "/icons/tiletop.png"
theme.layout_fairv = themedir .. "/icons/fairv.png"
theme.layout_fairh = themedir .. "/icons/fairh.png"
theme.layout_spiral = themedir .. "/icons/spiral.png"
theme.layout_dwindle = themedir .. "/icons/dwindle.png"
theme.layout_max = themedir .. "/icons/max.png"
theme.layout_fullscreen = themedir .. "/icons/fullscreen.png"
theme.layout_magnifier = themedir .. "/icons/magnifier.png"
theme.layout_floating = themedir .. "/icons/floating.png"
theme.arrl = themedir .. "/icons/arrl.png"
theme.arrl_dl = themedir .. "/icons/arrl_dl.png"
theme.arrl_ld = themedir .. "/icons/arrl_ld.png"
theme.widget_ac = themedir .. "/icons/ac.png"
theme.widget_battery = themedir .. "/icons/battery.png"
theme.widget_battery_low = themedir .. "/icons/battery_low.png"
theme.widget_battery_empty = themedir .. "/icons/battery_empty.png"
theme.widget_mem = themedir .. "/icons/mem.png"
theme.widget_cpu = themedir .. "/icons/cpu.png"
theme.widget_temp = themedir .. "/icons/temp.png"
theme.widget_net = themedir .. "/icons/net.png"
theme.widget_hdd = themedir .. "/icons/hdd.png"
theme.widget_music = themedir .. "/icons/note.png"
theme.widget_music_on = themedir .. "/icons/note_on.png"
theme.widget_vol = themedir .. "/icons/vol.png"
theme.widget_vol_low = themedir .. "/icons/vol_low.png"
theme.widget_vol_no = themedir .. "/icons/vol_no.png"
theme.widget_vol_mute = themedir .. "/icons/vol_mute.png"
theme.widget_mail = themedir .. "/icons/mail.png"
theme.widget_mail_on = themedir .. "/icons/mail_on.png"
theme.tasklist_disable_icon = true
theme.tasklist_floating = ""
theme.tasklist_maximized_horizontal = ""
theme.tasklist_maximized_vertical = ""
return theme
|
--
--
--
--
--
-- /@@@ ,,
-- @@@@@@ ,@@@@@&@@@@.
-- @@@@@@@@ @@& *&@&@@%@
-- ,@@@ %@@@@& @@@@ @@@@#
-- @@@( @%@%& @@@@ @@@@@&@@%&%.
-- @@@@@ %@@&/ ,@@@@@@@@
-- (@&&%@ , &@@@&(&
-- #@@@@& ,@#@ ,&@@*@#
-- @@@@@& @@@@ @@@@@%
-- .@@@@@. @@@@@, @@@#
-- @@@@%@ ,@@&&@@@@@@@@@&&(
-- @@@@@@ @&@@@@@@.
-- @@@@@@@*&@
-- %@@%@@@@&
-- %@@@&@
--
--
--
--
-- MACRO [DECK DE BANQUETES - PENDRAGON] RRPG8 by thirteen
-- Inicializando variáveis
local carta = 0;
-- ROLAGEM
carta = rolar("1d160", "Sacando uma carta");
-- CARTAS
local tbCartas = {
-- CARTAS ORIGINAIS
{"𝟎", "“𝖀𝖒 𝖓𝖆𝖗𝖎𝖟 𝖖𝖚𝖊 𝖈𝖔𝖗𝖙𝖆 𝕯𝖎𝖆𝖒𝖆𝖓𝖙𝖊!”", "𝑈𝑚 𝑎𝑟𝑡𝑖𝑠𝑡𝑎 𝑧𝑜𝑚𝑏𝑎 𝑑𝑒 𝑢𝑚𝑎 𝑑𝑒 𝑠𝑢𝑎𝑠 𝐶𝑎𝑟𝑎𝑐𝑡𝑒𝑟𝑖𝑠𝑡𝑖𝑐𝑎𝑠 𝐷𝑖𝑠𝑡𝑖𝑛𝑡𝑖𝑣𝑎𝑠\n 𝑒𝑚 𝑠𝑢𝑎 𝑐𝑎𝑛𝑐̧𝑎̃𝑜.", "[§K14]🎲 [§K1]𝐌𝐎𝐃𝐄𝐒𝐓𝐈𝐀 𝐕𝐒. 𝐎𝐑𝐆𝐔𝐋𝐇𝐎", " [§B][§K1]ᴍᴏᴅᴇsᴛɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você ri junto. \n Role 𝐶𝑜𝑚𝑝𝑜𝑟: Em um sucesso, você retorna uma boa indireta\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴏʀɢᴜʟʜᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Você está visivelmente incomodado.\n Role 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎: Em uma falha, você perde a paciência (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝖀𝖒 𝕰𝖓𝖈𝖔𝖓𝖙𝖗𝖔 𝖉𝖔 𝕬𝖈𝖆𝖘𝖔", "𝑉𝑜𝑐𝑒̂ 𝑠𝑒𝑛𝑡𝑒 𝑢𝑚 𝑡𝑜𝑞𝑢𝑒 𝑙𝑒𝑣𝑒 𝑒𝑚 𝑠𝑒𝑢 𝑜𝑚𝑏𝑟𝑜. 𝑈𝑚𝑎 𝑏𝑒𝑙𝑎 𝑙𝑎𝑑𝑦 𝑠𝑢𝑠𝑠𝑢𝑟𝑟𝑎 𝑒𝑚\n 𝑠𝑒𝑢 𝑜𝑢𝑣𝑖𝑑𝑜.", "[§K14]🎲 [§K1]𝐂𝐀𝐒𝐓𝐈𝐃𝐀𝐃𝐄 𝐕𝐒. 𝐋𝐔𝐗𝐔𝐑𝐈𝐀", " [§B][§K1]ᴄᴀsᴛɪᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14](+𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ʟᴜxᴜʀɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Vocês [§B]deixam o banquete[§B] de braços dados.\n Role 𝑁𝑎𝑠𝑐𝑖𝑚𝑒𝑛𝑡𝑜 𝑑𝑒 𝐶𝑟𝑖𝑎𝑛𝑐̧𝑎 nesta [§B]Fase de Inverno[§B]."},
{"𝟎", "𝖀𝖒 𝕵𝖔𝖌𝖔 𝖉𝖊 𝕯𝖆𝖉𝖔𝖘", "𝐴𝑙𝑔𝑢𝑛𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑑𝑒𝑖𝑥𝑎𝑚 𝑜 𝑏𝑎𝑛𝑞𝑢𝑒𝑡𝑒 𝑝𝑜𝑟 𝑢𝑚 𝑡𝑒𝑚𝑝𝑜 𝑝𝑎𝑟𝑎 𝑗𝑜𝑔𝑎𝑟 𝑑𝑎𝑑𝑜𝑠. \n 𝐸𝑙𝑒𝑠 𝑝𝑒𝑑𝑒𝑚 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑠𝑒 𝑗𝑢𝑛𝑡𝑒 𝑎 𝑒𝑙𝑒𝑠.", "[§K14]🎲 [§K1]𝐕𝐀𝐃𝐈𝐀𝐆𝐄𝐌", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você ganha um número de denários igual ao seu resultado\n de 𝑉𝑎𝑑𝑖𝑎𝑔𝑒𝑚.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você ganha um número de denários igual a duas vezes\n o seu resultado de 𝑉𝑎𝑑𝑖𝑎𝑔𝑒𝑚.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você perde um número de denários igual ao seu resultado de\n 𝑉𝑎𝑑𝑖𝑎𝑔𝑒𝑚 menos sua habilidade de 𝑉𝑎𝑑𝑖𝑎𝑔𝑒𝑚.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você perde um número de denários igual ao seu resultado\n de 𝑉𝑎𝑑𝑖𝑎𝑔𝑒𝑚 menos sua habilidade de 𝑉𝑎𝑑𝑖𝑎𝑔𝑒𝑚, dobrado."},
{"𝟎", "𝖀𝖒𝖆 𝕸𝖆̃𝖔 𝕬𝖒𝖎𝖌𝖆", "𝑈𝑚𝑎 𝑐𝑟𝑖𝑎𝑑𝑎 𝑝𝑒𝑑𝑒 𝑎𝑗𝑢𝑑𝑎 𝑝𝑎𝑟𝑎 𝑐𝑢𝑖𝑑𝑎𝑟 𝑑𝑒 𝑢𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑏𝑒̂𝑏𝑎𝑑𝑜.", "[§K14]🎲 [§K1]𝐆𝐄𝐍𝐄𝐑𝐎𝐒𝐈𝐃𝐀𝐃𝐄 𝐕𝐒. 𝐄𝐆𝐎𝐈𝐒𝐌𝐎", " [§B][§K1]ɢᴇɴᴇʀᴏsɪᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14][§B]Perca a próxima rodada do banquete.[§B] \n O cavaleiro se lembra de sua bondade quando acorda. Ganhe [§T]5 de Glória[§T]\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴇɢᴏɪsᴍᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Você recusa. O cavaleiro faz alguma coisa estúpida e culpa\n a criada."},
{"𝟏", "𝖀𝖒𝖆 𝕷𝖆𝖉𝖞 𝖊 𝖁𝖔𝖈𝖊̂", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑖𝑚𝑝𝑜𝑟𝑡𝑎𝑛𝑡𝑒 𝑒 𝑒𝑛𝑡𝑒𝑑𝑖𝑎𝑑𝑎 𝑝𝑎𝑠𝑠𝑎 𝑜 𝑡𝑒𝑚𝑝𝑜 𝑐𝑜𝑛𝑣𝑒𝑟𝑠𝑎𝑛𝑑𝑜 𝑐𝑜𝑚 𝑣𝑜𝑐𝑒̂.", "", " [§K14]Você interage com uma lady. No início de cada rodada, você pode [§B]ficar com\n esta carta[§B] ou descartá-la. Se você a mantiver, +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 (por rodada).\n \n Você não pode comprar cartas enquanto mantém esta.\n \n Se você tiver esta carta no final do banquete, pode [§B]solicitar ao anfitrião[§B]\n permissão para cortejar a lady.\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟏", "𝖀𝖒𝖆 𝕷𝖆𝖉𝖞 𝖊 𝖁𝖔𝖈𝖊̂", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑖𝑚𝑝𝑜𝑟𝑡𝑎𝑛𝑡𝑒 𝑒 𝑒𝑛𝑡𝑒𝑑𝑖𝑎𝑑𝑎 𝑝𝑎𝑠𝑠𝑎 𝑜 𝑡𝑒𝑚𝑝𝑜 𝑐𝑜𝑛𝑣𝑒𝑟𝑠𝑎𝑛𝑑𝑜 𝑐𝑜𝑚 𝑣𝑜𝑐𝑒̂.", "", " [§K14]Você interage com uma lady. No início de cada rodada, você pode [§B]ficar com\n esta carta[§B] ou descartá-la. Se você a mantiver, +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 (por rodada).\n \n Você não pode comprar cartas enquanto mantém esta.\n \n Se você tiver esta carta no final do banquete, pode [§B]solicitar ao anfitrião[§B]\n permissão para cortejar a lady.\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟐", "𝖀𝖒𝖆 𝕷𝖆𝖉𝖞 𝖘𝖊 𝕯𝖊𝖘𝖕𝖊𝖉𝖊", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑠𝑒 𝑝𝑟𝑒𝑝𝑎𝑟𝑎 𝑝𝑎𝑟𝑎 𝑑𝑒𝑖𝑥𝑎𝑟 𝑜 𝑏𝑎𝑛𝑞𝑢𝑒𝑡𝑒 𝑒 𝑣𝑜𝑐𝑒̂ 𝑝𝑜𝑑𝑒 𝑎𝑐𝑜𝑚𝑝𝑎𝑛𝘩𝑎-𝑙𝑎\n 𝑎𝑡𝑒 𝑠𝑒𝑢𝑠 𝑎𝑝𝑜𝑠𝑒𝑛𝑡𝑜𝑠.", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]A lady agradece sua gentileza. Ganhe [§T]1 de Glória[§T]. 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎 ✓.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você pode rolar 𝐿𝑢𝑥𝑢𝑟𝑖𝑎 vs. a 𝐶𝑎𝑠𝑡𝑖𝑑𝑎𝑑𝑒 dela (3d6 + 3,\n se desconhecida). Em um sucesso, você [§B]parte com ela[§B]; role 𝑁𝑎𝑠𝑐𝑖𝑚𝑒𝑛𝑡𝑜 𝑑𝑒\n 𝐶𝑟𝑖𝑎𝑛𝑐̧𝑎 nesta [§B]Fase de Inverno[§B].\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐿𝑢𝑥𝑢𝑟𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝖀𝖒𝖆 𝕷𝖆𝖉𝖞 𝕱𝖑𝖊𝖗𝖙𝖆", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑑𝑎 𝑐𝑜̂𝑟𝑡𝑒 𝑓𝑙𝑒𝑟𝑡𝑎 𝑐𝑜𝑚 𝑣𝑜𝑐𝑒̂.", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você conta algumas boas histórias. Vocês se divertem trocando\n elogios elegantes. (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]A lady gosta da sua companhia. Bastante.\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Suas tentativas patéticas de humor cansam ela.\n (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝖀𝖒 𝕮𝖆𝖛𝖆𝖑𝖊𝖎𝖗𝖔 𝕱𝖑𝖊𝖗𝖙𝖆", "𝑃𝑜𝑑𝑒 𝑠𝑒𝑟 𝑜 𝑣𝑖𝑛𝘩𝑜, 𝑚𝑎𝑠 𝑣𝑜𝑐𝑒̂ 𝑞𝑢𝑎𝑠𝑒 𝑡𝑒𝑚 𝑎 𝑖𝑚𝑝𝑟𝑒𝑠𝑠𝑎̃𝑜 𝑞𝑢𝑒 𝑢𝑚 𝑑𝑜𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠\n 𝑛𝑜 𝑠𝑎𝑙𝑎̃𝑜 𝑒𝑠𝑡𝑎 𝑡𝑒 𝑜𝑙𝘩𝑎𝑛𝑑𝑜 𝑑𝑒 𝑢𝑚 𝑗𝑒𝑖𝑡𝑜 𝑑𝑖𝑓𝑒𝑟𝑒𝑛𝑡𝑒...", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Vocês têm uma conversa cheia de frases com vários sentidos e\n alguns olhares em volta. (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Ele gosta de sua companhia e pergunta se você quer ver\n o cinto novo dele. Olha só, ele esqueceu o cinto no quarto! Não deve\n demorar muito... (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒). [§B]Vocês deixam o banquete[§B].\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Ele não estava interessado desse jeito, e está na verdade\n bem ofendido que você tenha pensado isso. (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒). Ele pode te\n [§B]desafiar para um duelo[§B]."},
{"𝟎", "𝖀𝖒𝖆 𝕯𝖆𝖒𝖆 𝖉𝖆 𝕹𝖔𝖎𝖙𝖊", "𝑈𝑚𝑎 𝑐𝑜𝑟𝑡𝑒𝑠𝑎̃ 𝑒𝑠𝑡𝑎 𝑡𝑒 𝑗𝑜𝑔𝑎𝑛𝑑𝑜 𝑜𝑙𝘩𝑎𝑟𝑒𝑠.", "[§K14]🎲 [§K1]𝐀𝐌𝐎𝐑 𝐎𝐔 𝐂𝐀𝐒𝐓𝐈𝐃𝐀𝐃𝐄 (𝐒𝐔𝐀 𝐄𝐒𝐂𝐎𝐋𝐇𝐀) 𝐕𝐒. 𝐋𝐔𝐗𝐔𝐑𝐈𝐀", " [§B][§K1]ᴀᴍᴏʀ ᴏᴜ ᴄᴀsᴛɪᴅᴀᴅᴇ ᴠᴇɴᴄᴇᴍ:[§B] [§K14]Você recusa graciosamente e ela dá de ombros.\n Os ombros dela são lindos. 𝑇𝑟𝑎𝑐̧𝑜/𝑃𝑎𝑖𝑥𝑎̃𝑜 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ʟᴜxᴜʀɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Pague 3d20 denários e [§B]deixe o banquete[§B]. 𝐿𝑢𝑥𝑢𝑟𝑖𝑎 ✓."},
{"𝟏", "𝕻𝖔𝖗 𝕳𝖔𝖓𝖗𝖆!", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑝𝑟𝑒𝑐𝑖𝑠𝑎 𝑑𝑒 𝑢𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑝𝑎𝑟𝑎 𝑑𝑒𝑠𝑎𝑓𝑖𝑎𝑟 𝑜𝑢𝑡𝑟𝑜 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑒𝑚 𝑢𝑚𝑎\n 𝑐𝑜𝑚𝑝𝑒𝑡𝑖𝑐̧𝑎̃𝑜 𝑑𝑒 𝘩𝑜𝑛𝑟𝑎.", "[§K14]🎲 [§K1]𝐎𝐑𝐀𝐓𝐎𝐑𝐈𝐀, 𝐓𝐎𝐂𝐀𝐑 𝐎𝐔 𝐌𝐄𝐍𝐄𝐒𝐓𝐑𝐄𝐋 - 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]Para determinar o valor da 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 do rival, se desconhecido,\n role 2d6 + 8.\n \n [§B][§K1]ᴠᴏᴄᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Ela elogia sua habilidade. 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 ✓ (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴇʟᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]A Lady agradece seu esforço, mas os outros não têm tanta\n certeza de você (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴇᴍᴘᴀᴛᴇ:[§B] [§K14]As senhoras riem e vão embora, batendo papo (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝖀𝖒 𝕻𝖗𝖊𝖘𝖊𝖓𝖙𝖊 𝖕𝖆𝖗𝖆 𝖚𝖒𝖆 𝕷𝖆𝖉𝖞", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑒𝑛𝑣𝑒𝑟𝑔𝑜𝑛𝘩𝑎𝑑𝑜 𝑝𝑟𝑜𝑐𝑢𝑟𝑎 𝑖𝑑𝑒𝑖𝑎𝑠 𝑑𝑒 𝑝𝑟𝑒𝑠𝑒𝑛𝑡𝑒 𝑝𝑎𝑟𝑎 𝑠𝑢𝑎 𝑒𝑠𝑝𝑜𝑠𝑎\n 𝑑𝑜 𝑢𝑛𝑖𝑐𝑜 𝑗𝑒𝑖𝑡𝑜 𝑞𝑢𝑒 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑐𝑜𝑛𝘩𝑒𝑐𝑒𝑚: 𝑝𝑒𝑟𝑔𝑢𝑛𝑡𝑎𝑛𝑑𝑜 𝑎 𝑜𝑢𝑡𝑟𝑜𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠.", "[§K14]🎲 [§K1]𝐀𝐌𝐎𝐑(𝐄𝐒𝐏𝐎𝐒𝐀) 𝐎𝐔 𝐀𝐌𝐎𝐑(𝐋𝐀𝐃𝐘)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você tem uma boa ideia, talvez algo que você já fez pela [§T]sua[§T] lady\n e sabe que funciona. 𝐴𝑚𝑜𝑟 ✓ (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Um comerciante próximo ouve a discussão e oferece um\n presente pela metade do preço.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14][§T]De algum jeito,[§T] você conseguiu insultar a esposa do cavaleiro.\n Ele te [§B]desafia para um duelo[§B] (–𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝖀𝖒 𝕰𝖒𝖕𝖗𝖊𝖘𝖙𝖎𝖒𝖔?", "𝑂𝑢𝑡𝑟𝑜 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑝𝑒𝑟𝑔𝑢𝑛𝑡𝑎 𝑠𝑒 𝑣𝑜𝑐𝑒̂ 𝑝𝑜𝑑𝑒 𝑒𝑚𝑝𝑟𝑒𝑠𝑡𝑎𝑟-𝑙𝘩𝑒 𝑑𝑖𝑛𝘩𝑒𝑖𝑟𝑜 𝑝𝑎𝑟𝑎\n (𝑟𝑜𝑙𝑒 𝟷𝑑𝟼): 𝟷-𝟸 𝑃𝑎𝑔𝑎𝑟 𝑢𝑚𝑎 𝑑𝑖𝑣𝑖𝑑𝑎; 𝟹-𝟺 𝐶𝑜𝑚𝑝𝑟𝑎𝑟 𝑢𝑚 𝑝𝑟𝑒𝑠𝑒𝑛𝑡𝑒 𝑝𝑎𝑟𝑎 𝑢𝑚𝑎\n 𝑙𝑎𝑑𝑦; 𝟻-𝟼 𝑅𝑒𝑠𝑔𝑎𝑡𝑎𝑟 𝑢𝑚 𝑟𝑒𝑓𝑒𝑚.", "[§K1]𝐃𝐀𝐑 𝐃𝐈𝐍𝐇𝐄𝐈𝐑𝐎 𝐎𝐔 𝐑𝐄𝐂𝐔𝐒𝐀𝐑 𝐏𝐄𝐃𝐈𝐃𝐎", " [§B][§K1]ᴅᴀʀ ᴏ ᴅɪɴʜᴇɪʀᴏ:[§B] [§K14]𝐺𝑒𝑛𝑒𝑟𝑜𝑠𝑖𝑑𝑎𝑑𝑒 ✓, 𝑀𝑖𝑠𝑒𝑟𝑖𝑐𝑜𝑟𝑑𝑖𝑎 ✓ ou 𝐽𝑢𝑠𝑡𝑖𝑐̧𝑎 ✓\n respectivamente).\n \n [§B][§K1]ʀᴇᴄᴜsᴀʀ sᴇᴜ ᴘᴇᴅɪᴅᴏ:[§B] [§K14]𝐸𝑔𝑜𝑖𝑠𝑚𝑜 √, 𝐶𝑟𝑢𝑒𝑙𝑑𝑎𝑑𝑒 √ ou 𝐴𝑟𝑏𝑖𝑡𝑟𝑎𝑟𝑖𝑒𝑑𝑎𝑑𝑒 √\n (respectivamente)."},
{"𝟏", "𝖀𝖒 𝕻𝖔𝖊𝖒𝖆 𝖉𝖊 𝕬𝖒𝖔𝖗", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑡𝑒𝑚 𝑑𝑖𝑓𝑖𝑐𝑢𝑙𝑑𝑎𝑑𝑒𝑠 𝑝𝑎𝑟𝑎 𝑐𝑜𝑚𝑝𝑜𝑟 𝑢𝑚 𝑝𝑜𝑒𝑚𝑎 𝑑𝑒 𝑎𝑚𝑜𝑟.\n 𝑉𝑜𝑐𝑒̂ 𝑜 𝑎𝑗𝑢𝑑𝑎.", "[§K14]🎲 [§K1]𝐂𝐎𝐌𝐏𝐎𝐑", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Ele retorna o favor. Você ganha +5 em um teste de 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒\n durante este banquete (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]O poema é terrível e envergonha o cavaleiro; ele culpa você\n (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕭𝖗𝖎𝖑𝖍𝖆𝖓𝖙𝖊!", "𝑉𝑜𝑐𝑒̂ 𝑖𝑚𝑝𝑟𝑒𝑠𝑠𝑖𝑜𝑛𝑎 𝑜𝑠 𝑜𝑢𝑡𝑟𝑜𝑠 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜𝑠 𝑐𝑜𝑚 𝑠𝑒𝑢 𝑐𝑜𝑛𝘩𝑒𝑐𝑖𝑚𝑒𝑛𝑡𝑜.", "", " [§K14][§B]Fique com esta carta.[§B] Sempre que você rolar um sucesso crítico ou marcar \n experiência, coloque um Contador nesta carta.\n \n Quando você [§B]deixar o banquete[§B], ganhe +𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 para cada Contador."},
{"𝟏", "𝕺 𝖁𝖊𝖑𝖍𝖔 𝕷𝖔𝖇𝖔", "𝑉𝑜𝑐𝑒̂ 𝑐𝑜𝑛𝘩𝑒𝑐𝑒 𝑢𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑟𝑒𝑛𝑜𝑚𝑎𝑑𝑜 𝑒𝑚 𝑢𝑚 𝑑𝑒𝑡𝑒𝑟𝑚𝑖𝑛𝑎𝑑𝑜 𝑐𝑎𝑚𝑝𝑜.\n 𝐸𝑙𝑒 𝑒𝑠𝑡𝑎 𝑑𝑖𝑠𝑝𝑜𝑠𝑡𝑜 𝑎 𝑙𝘩𝑒 𝑑𝑎𝑟 𝑎𝑙𝑔𝑢𝑚𝑎𝑠 𝑑𝑖𝑐𝑎𝑠.", "[§K14]🎲 [§K1]𝐐𝐔𝐀𝐋𝐐𝐔𝐄𝐑 𝐇𝐀𝐁𝐈𝐋𝐈𝐃𝐀𝐃𝐄 (𝐒𝐔𝐀 𝐄𝐒𝐂𝐎𝐋𝐇𝐀)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 ✓.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Ele fica impressionado com seu talento e elogia você\n (+𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você precisa aprender mais. Você pode [§B]deixar o banquete[§B] para\n algum treinamento improvisado. Se você fizer isso, 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 ✓."},
{"𝟎", "𝕱𝖔𝖌𝖔!", "𝐸𝑛𝑞𝑢𝑎𝑛𝑡𝑜 𝑣𝑜𝑐𝑒̂ 𝑑𝑒𝑠𝑐𝑎𝑛𝑠𝑎 𝑝𝑒𝑟𝑡𝑜 𝑑𝑎 𝑙𝑎𝑟𝑒𝑖𝑟𝑎, 𝑢𝑚𝑎 𝑏𝑟𝑎𝑠𝑎 𝑞𝑢𝑒𝑛𝑡𝑒 𝑐𝑎𝑖 𝑒𝑚 𝑠𝑢𝑎𝑠\n 𝑟𝑜𝑢𝑝𝑎𝑠.", "[§K14]🎲 [§K1]𝐃𝐄𝐒𝐓𝐑𝐄𝐙𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você derruba a brasa antes que ela possa causar algum dano.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]A brasa queima um grande buraco em suas roupas.\n Escolha: –𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 ou [§B]perca uma rodada[§B] ao trocar de roupa."},
{"𝟏", "𝖀𝖒𝖆 𝕮𝖗𝖎𝖆𝖉𝖆 𝕱𝖑𝖊𝖗𝖙𝖆", "𝑈𝑚𝑎 𝑗𝑜𝑣𝑒𝑚 𝑐𝑟𝑖𝑎𝑑𝑎 𝑞𝑢𝑒 𝑎𝑐𝑎𝑏𝑜𝑢 𝑑𝑒 𝑔𝑢𝑎𝑟𝑑𝑎𝑟 𝑎𝑙𝑔𝑢𝑚𝑎𝑠 𝑔𝑜𝑟𝑗𝑒𝑡𝑎𝑠 𝑛𝑜 𝑑𝑒𝑐𝑜𝑡𝑒\n 𝑝𝑖𝑠𝑐𝑎 𝑝𝑎𝑟𝑎 𝑣𝑜𝑐𝑒̂.", "[§K14]🎲 [§K1]𝐄𝐍𝐓𝐑𝐄𝐓𝐄𝐍𝐈𝐌𝐄𝐍𝐓𝐎", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Role 𝐶𝑎𝑠𝑡𝑖𝑑𝑎𝑑𝑒 vs. 𝐿𝑢𝑥𝑢𝑟𝑖𝑎. Se 𝐿𝑢𝑥𝑢𝑟𝑖𝑎 vencer, você [§B]deixa\n o banquete[§B] com a criada; role 𝑁𝑎𝑠𝑐𝑖𝑚𝑒𝑛𝑡𝑜 𝑑𝑒 𝐶𝑟𝑖𝑎𝑛𝑐̧𝑎 nesta [§B]Fase de Inverno[§B].\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você leva um tapa na cara (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝖀𝖒𝖆 𝕮𝖗𝖎𝖆𝖉𝖆 𝕱𝖑𝖊𝖗𝖙𝖆", "𝑈𝑚𝑎 𝑗𝑜𝑣𝑒𝑚 𝑐𝑟𝑖𝑎𝑑𝑎 𝑞𝑢𝑒 𝑎𝑐𝑎𝑏𝑜𝑢 𝑑𝑒 𝑔𝑢𝑎𝑟𝑑𝑎𝑟 𝑎𝑙𝑔𝑢𝑚𝑎𝑠 𝑔𝑜𝑟𝑗𝑒𝑡𝑎𝑠 𝑛𝑜 𝑑𝑒𝑐𝑜𝑡𝑒\n 𝑝𝑖𝑠𝑐𝑎 𝑝𝑎𝑟𝑎 𝑣𝑜𝑐𝑒̂.", "[§K14]🎲 [§K1]𝐄𝐍𝐓𝐑𝐄𝐓𝐄𝐍𝐈𝐌𝐄𝐍𝐓𝐎", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Role 𝐶𝑎𝑠𝑡𝑖𝑑𝑎𝑑𝑒 vs. 𝐿𝑢𝑥𝑢𝑟𝑖𝑎. Se 𝐿𝑢𝑥𝑢𝑟𝑖𝑎 vencer, você [§B]deixa\n o banquete[§B] com a criada; role 𝑁𝑎𝑠𝑐𝑖𝑚𝑒𝑛𝑡𝑜 𝑑𝑒 𝐶𝑟𝑖𝑎𝑛𝑐̧𝑎 nesta [§B]Fase de Inverno[§B].\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você leva um tapa na cara (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝖀𝖒𝖆 𝕮𝖗𝖎𝖆𝖉𝖆 𝕱𝖑𝖊𝖗𝖙𝖆", "𝑈𝑚𝑎 𝑗𝑜𝑣𝑒𝑚 𝑐𝑟𝑖𝑎𝑑𝑎 𝑞𝑢𝑒 𝑎𝑐𝑎𝑏𝑜𝑢 𝑑𝑒 𝑔𝑢𝑎𝑟𝑑𝑎𝑟 𝑎𝑙𝑔𝑢𝑚𝑎𝑠 𝑔𝑜𝑟𝑗𝑒𝑡𝑎𝑠 𝑛𝑜 𝑑𝑒𝑐𝑜𝑡𝑒\n 𝑝𝑖𝑠𝑐𝑎 𝑝𝑎𝑟𝑎 𝑣𝑜𝑐𝑒̂.", "[§K14]🎲 [§K1]𝐄𝐍𝐓𝐑𝐄𝐓𝐄𝐍𝐈𝐌𝐄𝐍𝐓𝐎", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Role 𝐶𝑎𝑠𝑡𝑖𝑑𝑎𝑑𝑒 vs. 𝐿𝑢𝑥𝑢𝑟𝑖𝑎. Se 𝐿𝑢𝑥𝑢𝑟𝑖𝑎 vencer, você [§B]deixa\n o banquete[§B] com a criada; role 𝑁𝑎𝑠𝑐𝑖𝑚𝑒𝑛𝑡𝑜 𝑑𝑒 𝐶𝑟𝑖𝑎𝑛𝑐̧𝑎 nesta [§B]Fase de Inverno[§B].\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você leva um tapa na cara (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝖀𝖒𝖆 𝕮𝖗𝖎𝖆𝖉𝖆 𝕱𝖑𝖊𝖗𝖙𝖆", "𝑈𝑚𝑎 𝑗𝑜𝑣𝑒𝑚 𝑐𝑟𝑖𝑎𝑑𝑎 𝑞𝑢𝑒 𝑎𝑐𝑎𝑏𝑜𝑢 𝑑𝑒 𝑔𝑢𝑎𝑟𝑑𝑎𝑟 𝑎𝑙𝑔𝑢𝑚𝑎𝑠 𝑔𝑜𝑟𝑗𝑒𝑡𝑎𝑠 𝑛𝑜 𝑑𝑒𝑐𝑜𝑡𝑒\n 𝑝𝑖𝑠𝑐𝑎 𝑝𝑎𝑟𝑎 𝑣𝑜𝑐𝑒̂.", "[§K14]🎲 [§K1]𝐄𝐍𝐓𝐑𝐄𝐓𝐄𝐍𝐈𝐌𝐄𝐍𝐓𝐎", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Role 𝐶𝑎𝑠𝑡𝑖𝑑𝑎𝑑𝑒 vs. 𝐿𝑢𝑥𝑢𝑟𝑖𝑎. Se 𝐿𝑢𝑥𝑢𝑟𝑖𝑎 vencer, você [§B]deixa\n o banquete[§B] com a criada; role 𝑁𝑎𝑠𝑐𝑖𝑚𝑒𝑛𝑡𝑜 𝑑𝑒 𝐶𝑟𝑖𝑎𝑛𝑐̧𝑎 nesta [§B]Fase de Inverno[§B].\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você leva um tapa na cara (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝖀𝖒 𝕮𝖗𝖎𝖆𝖉𝖔 𝕱𝖑𝖊𝖗𝖙𝖆", "𝑈𝑚 𝑗𝑜𝑣𝑒𝑚 𝑐𝑎𝑟𝑟𝑒𝑔𝑎𝑑𝑜𝑟, 𝑜𝑢... 𝑔𝑢𝑎𝑟𝑑𝑎, 𝑜𝑢... 𝑛𝑎̃𝑜 𝑖𝑚𝑝𝑜𝑟𝑡𝑎.\n 𝐸𝑙𝑒 𝑒𝑠𝑡𝑎 𝑓𝑙𝑒𝑟𝑡𝑎𝑛𝑑𝑜 𝑐𝑜𝑚 𝑣𝑜𝑐𝑒̂.", "[§K14]🎲 [§K1]𝐄𝐍𝐓𝐑𝐄𝐓𝐄𝐍𝐈𝐌𝐄𝐍𝐓𝐎", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Jogue 𝐶𝑎𝑠𝑡𝑖𝑑𝑎𝑑𝑒 vs. 𝐿𝑢𝑥𝑢𝑟𝑖𝑎. Se 𝐿𝑢𝑥𝑢𝑟𝑖𝑎 vencer, você\n [§B]deixa o banquete[§B] com ele.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Ele faz uma careta e volta ao trabalho (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝖀𝖒 𝕿𝖊𝖘𝖙𝖊 𝖉𝖊 𝕱𝖔𝖗𝖈̧𝖆", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑡𝑒 𝑑𝑒𝑠𝑎𝑓𝑖𝑎 𝑝𝑎𝑟𝑎 𝑢𝑚𝑎 𝑞𝑢𝑒𝑑𝑎 𝑑𝑒 𝑏𝑟𝑎𝑐̧𝑜.", "[§K14]🎲 [§K1]𝐅𝐎𝐑𝐂̧𝐀 - 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]Para determinar o valor da [§B]ғᴏʀ[§B] do rival, se desconhecido, role 1d6 + 12.\n Em um empate, jogue novamente até que alguém ganhe.\n \n [§B][§K1]ᴠᴏᴄᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Ele cede à sua força. Ganhe [§T]2 de Glória[§T] (mais [§T]1 de Glória[§T] para\n cada relançamento).\n \n [§B][§K1]ᴇʟᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Ele segue em frente para desafiar os outros. Você pode dar esta\n carta a outro jogador. Se você fizer isso, -𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒. Esse jogador deve\n jogar esta carta no próximo turno em vez de comprar quaisquer cartas."},
{"𝟎", "𝖀𝖒 𝕿𝖊𝖘𝖙𝖊 𝖉𝖊 𝕱𝖔𝖗𝖈̧𝖆", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑡𝑒 𝑑𝑒𝑠𝑎𝑓𝑖𝑎 𝑝𝑎𝑟𝑎 𝑢𝑚𝑎 𝑞𝑢𝑒𝑑𝑎 𝑑𝑒 𝑏𝑟𝑎𝑐̧𝑜.", "[§K14]🎲 [§K1]𝐅𝐎𝐑𝐂̧𝐀 - 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]Para determinar o valor da [§B]ғᴏʀ[§B] do rival, se desconhecido, role 1d6 + 12.\n Em um empate, jogue novamente até que alguém ganhe.\n \n [§B][§K1]ᴠᴏᴄᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Ele cede à sua força. Ganhe [§T]2 de Glória[§T] (mais [§T]1 de Glória[§T] para\n cada relançamento).\n \n [§B][§K1]ᴇʟᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Ele segue em frente para desafiar os outros. Você pode dar esta\n carta a outro jogador. Se você fizer isso, -𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒. Esse jogador deve\n jogar esta carta no próximo turno em vez de comprar quaisquer cartas."},
{"𝟐", "𝖀𝖒 𝕲𝖔𝖑𝖊 𝖉𝖊 𝖁𝖎𝖓𝖍𝖔", "𝑉𝑜𝑐𝑒̂ 𝑐𝑜𝑚𝑝𝑎𝑟𝑡𝑖𝑙𝘩𝑎 𝑢𝑚𝑎 𝑡𝑎𝑐̧𝑎 𝑑𝑒 𝑣𝑖𝑛𝘩𝑜 𝑐𝑜𝑚 𝑢𝑚𝑎 𝑙𝑎𝑑𝑦 𝑏𝑎𝑠𝑡𝑎𝑛𝑡𝑒 𝑟𝑒𝑠𝑝𝑒𝑖𝑡𝑎𝑣𝑒𝑙.\n 𝑉𝑜𝑐𝑒̂ 𝑝𝑜𝑑𝑒 𝑓𝑎𝑧𝑒𝑟 𝑢𝑚 𝑏𝑟𝑖𝑛𝑑𝑒 𝑎 𝑒𝑙𝑎.", "[§K14]🎲 [§K1]𝐎𝐑𝐀𝐓𝐎𝐑𝐈𝐀", " [§K14]Você pode optar por não brindar.\n Caso não, –𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 e 𝑀𝑜𝑑𝑒𝑠𝑡𝑖𝑎 ✓. Se você fizer um brinde a ela, role\n 𝑂𝑟𝑎𝑡𝑜𝑟𝑖𝑎.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Ela enrubesce com seus elogios. 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Ela está muito impressionada (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você a comparou com [§T]o quê?!?[§T] (–𝟻 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕾𝖔𝖇𝖗𝖊 𝕮𝖔𝖎𝖘𝖆𝖘 𝕽𝖊𝖆𝖎𝖘", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑝𝑒𝑟𝑔𝑢𝑛𝑡𝑎 𝑠𝑒 𝑣𝑜𝑐𝑒̂ 𝑎𝑐𝑟𝑒𝑑𝑖𝑡𝑎 𝑒𝑚 𝑓𝑎𝑑𝑎𝑠 𝑒 𝑒𝑠𝑝𝑖𝑟𝑖𝑡𝑜𝑠.", "[§K14]🎲 [§K1]𝐄𝐒𝐏𝐈𝐑𝐈𝐓𝐔𝐀𝐋𝐈𝐃𝐀𝐃𝐄 𝐕𝐒. 𝐂𝐈𝐍𝐈𝐒𝐌𝐎", " [§B][§K1]ᴇsᴘɪʀɪᴛᴜᴀʟɪᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Você conta a ela suas próprias histórias sobre\n fadas. Role 𝐸𝑒𝑟𝑖𝑒: Em caso de sucesso, +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]ᴄɪɴɪsᴍᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Você explica que não existem fadas e que magia não é real.\n Sim, você é um menino muito esperto (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕿𝖚𝖉𝖔 𝕼𝖚𝖊 𝕻𝖚𝖉𝖊𝖗 𝕮𝖔𝖒𝖊𝖗", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑑𝑒 𝑙𝑎𝑟𝑔𝑢𝑟𝑎 𝑝𝑟𝑜𝑑𝑖𝑔𝑖𝑜𝑠𝑎 𝑜 𝑑𝑒𝑠𝑎𝑓𝑖𝑎 𝑎 𝑣𝑒𝑟 𝑞𝑢𝑒𝑚 𝑐𝑜𝑛𝑠𝑒𝑔𝑢𝑒\n 𝑐𝑜𝑚𝑒𝑟 𝑚𝑎𝑖𝑠.", "[§K14]🎲 [§K1]𝐈𝐍𝐃𝐔𝐋𝐆𝐄𝐍𝐂𝐈𝐀 - 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]Para determinar o valor da 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 do rival, se desconhecido,\n role 1d6 + 13.\n \n [§B][§K1]sᴇ ᴠᴏᴄᴇ ғᴀʟʜᴀ ᴇ ᴏ ᴄᴀᴠᴀʟᴇɪʀᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Você [§B]sai do banquete[§B] com uma dor de\n barriga.\n \n [§B][§K1]sᴇ ᴏ ᴄᴀᴠᴀʟᴇɪʀᴏ ғᴀʟʜᴀ ᴇ ᴠᴏᴄᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Ganhe [§T]50 Glória[§T].\n Se você ultrapassar um múltiplo de [§T]1.000 de Glória[§T] na próxima [§B]Fase de\n Inverno[§B], você pode aumentar seu [§B]ᴛᴀᴍ[§B] em 1, além do ponto de Glória\n daquele ano."},
{"𝟐", "𝕰𝖘𝖒𝖔𝖑𝖆𝖘", "𝑈𝑚 𝑚𝑜𝑛𝑔𝑒 𝑣𝑒𝑚 𝑎𝑜 𝑏𝑎𝑛𝑞𝑢𝑒𝑡𝑒 𝑝𝑒𝑑𝑖𝑟 𝑑𝑜𝑎𝑐̧𝑜̃𝑒𝑠 𝑝𝑎𝑟𝑎 𝑟𝑒𝑐𝑜𝑛𝑠𝑡𝑟𝑢𝑖𝑟 𝑢𝑚𝑎\n 𝑐𝑎𝑝𝑒𝑙𝑎 𝑙𝑜𝑐𝑎𝑙.", "[§K14]🎲 [§K1]𝐄𝐒𝐏𝐈𝐑𝐈𝐓𝐔𝐀𝐋𝐈𝐃𝐀𝐃𝐄", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você deve dar pelo menos ½£ para a Igreja. Para cada ½£ doada,\n ganhe [§T]5 de Glória[§T]. Se você doar pelo menos ½£, 𝐺𝑒𝑛𝑒𝑟𝑜𝑠𝑖𝑑𝑎𝑑𝑒 ✓.\n \n Cavaleiros pagãos podem escolher não rolar, mas aqueles que\n voluntariamente dão pelo menos ½£ ganham 𝐶𝑖𝑛𝑖𝑠𝑚𝑜 ✓."},
{"𝟐", "𝖀𝖒𝖆 𝕰𝖘𝖕𝖔𝖘𝖆 𝕴𝖉𝖊𝖆𝖑", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 (𝑜𝑢 𝑠𝑒𝑢 𝑠𝑒𝑛𝘩𝑜𝑟, 𝑠𝑒 𝑝𝑟𝑒𝑠𝑒𝑛𝑡𝑒) 𝑎𝑝𝑟𝑒𝑠𝑒𝑛𝑡𝑎 𝑣𝑜𝑐𝑒̂ 𝑎 𝑢𝑚𝑎 𝑙𝑎𝑑𝑦\n 𝑒𝑙𝑒𝑔𝑖𝑣𝑒𝑙 𝑞𝑢𝑒 𝑒𝑙𝑒 𝑝𝑒𝑛𝑠𝑎 𝑞𝑢𝑒 𝑠𝑒𝑟𝑖𝑎 𝑢𝑚𝑎 𝑒𝑠𝑝𝑜𝑠𝑎 𝑖𝑑𝑒𝑎𝑙.", "", " [§K14]Role na tabela de 𝐶𝑎𝑠𝑎𝑚𝑒𝑛𝑡𝑜 𝐴𝑙𝑒𝑎𝑡𝑜𝑟𝑖𝑜 com +5 para determinar a lady\n elegível.\n \n [§B][§K1]sᴏʟᴛᴇɪʀᴏ:[§B] [§K14]Se você recusar a mão dela, -𝟷 𝐿𝑒𝑎𝑙𝑑𝑎𝑑𝑒(𝑆𝑒𝑛𝘩𝑜𝑟).\n \n [§B][§K1]ᴄᴀsᴀᴅᴏ:[§B] [§K14]Você pode recomendar outro jogador. Se o fizer, dê esta carta a\n esse jogador e obtenha 𝐺𝑒𝑛𝑒𝑟𝑜𝑠𝑖𝑑𝑎𝑑𝑒 ✓. Esse jogador deve jogar esta carta\n no próximo turno em vez de comprar quaisquer cartas.\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟐", "𝖀𝖒𝖆 𝕰𝖘𝖕𝖔𝖘𝖆 𝕴𝖉𝖊𝖆𝖑", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 (𝑜𝑢 𝑠𝑒𝑢 𝑠𝑒𝑛𝘩𝑜𝑟, 𝑠𝑒 𝑝𝑟𝑒𝑠𝑒𝑛𝑡𝑒) 𝑎𝑝𝑟𝑒𝑠𝑒𝑛𝑡𝑎 𝑣𝑜𝑐𝑒̂ 𝑎 𝑢𝑚𝑎 𝑙𝑎𝑑𝑦\n 𝑒𝑙𝑒𝑔𝑖𝑣𝑒𝑙 𝑞𝑢𝑒 𝑒𝑙𝑒 𝑝𝑒𝑛𝑠𝑎 𝑞𝑢𝑒 𝑠𝑒𝑟𝑖𝑎 𝑢𝑚𝑎 𝑒𝑠𝑝𝑜𝑠𝑎 𝑖𝑑𝑒𝑎𝑙.", "", " [§K14]Role na tabela de 𝐶𝑎𝑠𝑎𝑚𝑒𝑛𝑡𝑜 𝐴𝑙𝑒𝑎𝑡𝑜𝑟𝑖𝑜 com +5 para determinar a lady\n elegível.\n \n [§B][§K1]sᴏʟᴛᴇɪʀᴏ:[§B] [§K14]Se você recusar a mão dela, -𝟷 𝐿𝑒𝑎𝑙𝑑𝑎𝑑𝑒(𝑆𝑒𝑛𝘩𝑜𝑟).\n \n [§B][§K1]ᴄᴀsᴀᴅᴏ:[§B] [§K14]Você pode recomendar outro jogador. Se o fizer, dê esta carta a\n esse jogador e obtenha 𝐺𝑒𝑛𝑒𝑟𝑜𝑠𝑖𝑑𝑎𝑑𝑒 ✓. Esse jogador deve jogar esta carta\n no próximo turno em vez de comprar quaisquer cartas.\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟐", "𝕬𝖓𝖙𝖎𝖌𝖆𝖒𝖊𝖓𝖙𝖊...", "𝑈𝑚 𝑔𝑟𝑢𝑝𝑜 𝑑𝑒 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑒𝑥𝑝𝑒𝑟𝑖𝑒𝑛𝑡𝑒𝑠 𝑒𝑠𝑡𝑎 𝑡𝑒𝑛𝑑𝑜 𝑢𝑚𝑎 𝑑𝑖𝑠𝑐𝑢𝑠𝑠𝑎̃𝑜 𝑠𝑜𝑏𝑟𝑒 𝑎\n 𝑑𝑖𝑓𝑒𝑟𝑒𝑛𝑐̧𝑎 𝑒𝑛𝑡𝑟𝑒 𝑐𝑜𝑟𝑎𝑔𝑒𝑚 𝑒 𝑖𝑚𝑝𝑟𝑢𝑑𝑒̂𝑛𝑐𝑖𝑎, 𝑒 𝑐𝑜𝑚𝑜 𝑛𝑎 𝑒𝑝𝑜𝑐𝑎 𝑑𝑒𝑙𝑒𝑠 𝑡𝑢𝑑𝑜\n 𝑒𝑟𝑎 𝑚𝑒𝑙𝘩𝑜𝑟.", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐀𝐆𝐄𝐌 𝐕𝐒. 𝐈𝐌𝐏𝐑𝐔𝐃𝐄̂𝐍𝐂𝐈𝐀", " [§B][§K1]ᴄᴏʀᴀɢᴇᴍ ᴠᴇɴᴄᴇ:[§B] [§K14]Os cavaleiros concordam com suas palavras corajosas.\n Eles ainda não te respeitam. (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ɪᴍᴘʀᴜᴅᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Eles começam a apontar para você com murmúrios\n de [§T]“olha só”[§T]. (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕾𝖊𝖚 𝕸𝖆𝖎𝖔𝖗 𝕰𝖗𝖗𝖔", "𝐴𝑙𝑔𝑢𝑛𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑒𝑠𝑡𝑎̃𝑜 𝑐𝑜𝑛𝑡𝑎𝑛𝑑𝑜 𝘩𝑖𝑠𝑡𝑜𝑟𝑖𝑎𝑠 𝑠𝑜𝑏𝑟𝑒 𝑎 𝑐𝑜𝑖𝑠𝑎 𝑚𝑎𝑖𝑠 𝑏𝑢𝑟𝑟𝑎 𝑞𝑢𝑒\n 𝑗𝑎 𝑓𝑖𝑧𝑒𝑟𝑎𝑚. 𝐸𝑙𝑒𝑠 𝑜𝑙𝘩𝑎𝑚 𝑝𝑎𝑟𝑎 𝑣𝑜𝑐𝑒̂.", "[§K14]🎲 [§K1]𝐎𝐑𝐀𝐓𝐎𝐑𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Eles riem [§T]com[§T] você, não [§T]de[§T] você. Ganhe [§T]5 Glória[§T]. 𝑀𝑜𝑑𝑒𝑠𝑡𝑖𝑎 ✓.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Sua história é ridícula demais até para eles. Eles estão [§T]com certeza[§T]\n rindo [§T]de[§T] você. Role 𝑂𝑟𝑔𝑢𝑙𝘩𝑜: em um sucesso, [§B]você desafia um deles\n para um duelo[§B]."},
{"𝟎", "𝕬 𝕸𝖆𝖎𝖔𝖗 𝕲𝖆𝖑𝖎𝖓𝖍𝖆 𝖉𝖆 𝕭𝖗𝖊𝖙𝖆𝖓𝖍𝖆!", "𝑂𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑒𝑚 𝑢𝑚𝑎 𝑚𝑒𝑠𝑎 𝑝𝑟𝑜𝑥𝑖𝑚𝑎 𝑒𝑠𝑡𝑎̃𝑜 𝑐𝑜𝑛𝑡𝑎𝑛𝑑𝑜 𝘩𝑖𝑠𝑡𝑜𝑟𝑖𝑎𝑠 𝑠𝑜 𝑢𝑚\n 𝑝𝑜𝑢𝑐𝑜 𝑒𝑥𝑎𝑔𝑒𝑟𝑎𝑑𝑎𝑠 𝑑𝑒 𝑠𝑒𝑢𝑠 𝑔𝑟𝑎𝑛𝑑𝑒𝑠 𝑓𝑒𝑖𝑡𝑜𝑠 𝘩𝑒𝑟𝑜𝑖𝑐𝑜𝑠 𝑞𝑢𝑒 𝑐𝑜𝑚 𝑐𝑒𝑟𝑡𝑒𝑧𝑎\n 𝑎𝑐𝑜𝑛𝑡𝑒𝑐𝑒𝑟𝑎𝑚. 𝑉𝑜𝑐𝑒̂ 𝑟𝑒𝑠𝑜𝑙𝑣𝑒 𝑒𝑛𝑡𝑟𝑎𝑟 𝑐𝑜𝑚 𝑢𝑚𝑎 𝑚𝑒𝑛𝑡𝑖𝑟𝑎 𝑠𝑢𝑎.", "[§K14]🎲 [§K1]𝐎𝐑𝐀𝐓𝐎𝐑𝐈𝐀 𝐕𝐒. 𝟏𝐃𝟔 𝐂𝐀𝐕𝐀𝐋𝐄𝐈𝐑𝐎𝐒 - 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]Para determinar o valor da 𝑂𝑟𝑎𝑡𝑜𝑟𝑖𝑎 de cada cavaleiro, se desconhecido,\n role 2d6 + 3.\n \n Ganhe +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 para cada cavaleiro que você derrotar, mais\n +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 adicional se você vencer todos eles."},
{"𝟏", "𝖁𝖎𝖗𝖙𝖚𝖉𝖊 𝕮𝖗𝖎𝖘𝖙𝖆̃", "𝑈𝑚𝑎 𝑓𝑟𝑒𝑖𝑟𝑎 𝑑𝑒𝑠𝑒𝑗𝑎 𝑚𝑜𝑠𝑡𝑟𝑎𝑟 𝑠𝑒𝑢 𝑣𝑎𝑙𝑜𝑟. 𝐸𝑙𝑎 𝑒𝑠𝑝𝑒𝑟𝑎 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑎 𝑐𝑜𝑛𝑡𝑟𝑎𝑡𝑒\n 𝑑𝑒𝑝𝑜𝑖𝑠 𝑑𝑜 𝑏𝑎𝑛𝑞𝑢𝑒𝑡𝑒, 𝑐𝑜𝑚𝑜 𝑝𝑎𝑟𝑡𝑒 𝑑𝑒 𝑠𝑢𝑎 𝑐𝑜𝑚𝑖𝑡𝑖𝑣𝑎.", "", " [§K14][§B]Fique com esta carta[§B]. Enquanto faz isso, ganhe +5 em todos os testes de\n 𝐿𝑒𝑖𝑡𝑢𝑟𝑎, 𝐹𝑜𝑙𝑐𝑙𝑜𝑟𝑒 e 𝑅𝑒𝑙𝑖𝑔𝑖𝑎̃𝑜. Você ganha +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 para cada sucesso\n em 𝐿𝑒𝑖𝑡𝑢𝑟𝑎, 𝐹𝑜𝑙𝑐𝑙𝑜𝑟𝑒 e 𝑅𝑒𝑙𝑖𝑔𝑖𝑎̃𝑜.\n \n Se você obtiver um sucesso em 𝐼𝑛𝑑𝑢𝑙𝑔𝑒𝑛𝑐𝑖𝑎, 𝐿𝑢𝑥𝑢𝑟𝑖𝑎 ou 𝐶𝑖𝑛𝑖𝑠𝑚𝑜, a freira\n deixa sua companhia e você deve descartar esta carta.\n \n [§B]𝐷𝑒𝑠𝑐𝑎𝑟𝑡𝑒 𝑒 𝑐𝑜𝑚𝑝𝑟𝑒 𝑛𝑜𝑣𝑎𝑚𝑒𝑛𝑡𝑒 𝑠𝑒 𝑛𝑎̃𝑜 𝑓𝑜𝑟 𝑐𝑟𝑖𝑠𝑡𝑎̃𝑜.[§B]"},
{"𝟏", "𝖁𝖆𝖑𝖔𝖗 𝕻𝖆𝖌𝖆̃𝖔", "𝑈𝑚 𝑠𝑎𝑐𝑒𝑟𝑑𝑜𝑡𝑒 𝑝𝑎𝑔𝑎̃𝑜 𝑑𝑒𝑠𝑒𝑗𝑎 𝑚𝑜𝑠𝑡𝑟𝑎𝑟 𝑠𝑒𝑢 𝑣𝑎𝑙𝑜𝑟. 𝐸𝑙𝑒 𝑒𝑠𝑝𝑒𝑟𝑎 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑜\n 𝑐𝑜𝑛𝑡𝑟𝑎𝑡𝑒 𝑑𝑒𝑝𝑜𝑖𝑠 𝑑𝑜 𝑏𝑎𝑛𝑞𝑢𝑒𝑡𝑒, 𝑐𝑜𝑚𝑜 𝑝𝑎𝑟𝑡𝑒 𝑑𝑒 𝑠𝑢𝑎 𝑐𝑜𝑚𝑖𝑡𝑖𝑣𝑎.", "", " [§K14][§B]Fique com esta carta[§B]. Enquanto faz isso, ganhe +5 em todos os testes de\n 𝐿𝑒𝑖𝑡𝑢𝑟𝑎, 𝐹𝑜𝑙𝑐𝑙𝑜𝑟𝑒 e 𝑅𝑒𝑙𝑖𝑔𝑖𝑎̃𝑜. Você ganha +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 para cada sucesso\n em 𝐿𝑒𝑖𝑡𝑢𝑟𝑎, 𝐹𝑜𝑙𝑐𝑙𝑜𝑟𝑒 e 𝑅𝑒𝑙𝑖𝑔𝑖𝑎̃𝑜.\n \n Se você obtiver um sucesso em 𝐶𝑎𝑠𝑡𝑖𝑑𝑎𝑑𝑒, 𝑃𝑟𝑒𝑔𝑢𝑖𝑐̧𝑎 ou 𝐸𝑔𝑜𝑖𝑠𝑚𝑜, o\n sacerdote deixa sua companhia e você deve descartar esta carta.\n \n [§B]𝐷𝑒𝑠𝑐𝑎𝑟𝑡𝑒 𝑒 𝑐𝑜𝑚𝑝𝑟𝑒 𝑛𝑜𝑣𝑎𝑚𝑒𝑛𝑡𝑒 𝑠𝑒 𝑛𝑎̃𝑜 𝑓𝑜𝑟 𝑝𝑎𝑔𝑎̃𝑜.[§B]"},
{"𝟏", "𝕮𝖊𝖓𝖙𝖗𝖔 𝖉𝖔 𝕻𝖆𝖑𝖈𝖔", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑜 𝑐𝘩𝑎𝑚𝑎 𝑝𝑎𝑟𝑎 𝑒𝑛𝑡𝑟𝑒𝑡𝑒𝑟 𝑐𝑜𝑚 𝑢𝑚𝑎 𝘩𝑖𝑠𝑡𝑜𝑟𝑖𝑎 𝑜𝑢 𝑢𝑚𝑎 𝑐𝑎𝑛𝑐̧𝑎̃𝑜.", "[§K14]🎲 [§K1]𝐎𝐑𝐀𝐓𝐎𝐑𝐈𝐀 𝐎𝐔 𝐓𝐎𝐂𝐀𝐑(𝐒𝐔𝐀 𝐄𝐒𝐂𝐎𝐋𝐇𝐀)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Foi adequado. (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]O salão te aplaude com entusiasmo! (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]A sua performance não é só ruim, é ofensiva. Os aquitâneos\n na côrte estão especialmente revoltados. (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝖀𝖒𝖆 𝕷𝖆𝖉𝖞 𝕴𝖓𝖉𝖊𝖈𝖎𝖘𝖆", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑝𝑒𝑑𝑒 𝑠𝑢𝑎 𝑎𝑗𝑢𝑑𝑎 𝑐𝑜𝑚 𝑢𝑚 𝑝𝑟𝑜𝑏𝑙𝑒𝑚𝑎 𝑝𝑒𝑠𝑠𝑜𝑎𝑙, 𝑚𝑎𝑠 𝑛𝑎̃𝑜 𝑡𝑎̃𝑜 𝑝𝑒𝑠𝑠𝑜𝑎𝑙\n 𝑎𝑠𝑠𝑖𝑚 𝑝𝑜𝑟𝑞𝑢𝑒 𝑒𝑙𝑎 𝑎𝑖𝑛𝑑𝑎 𝑒𝑠𝑡𝑎 𝑝𝑒𝑟𝑔𝑢𝑛𝑡𝑎𝑛𝑑𝑜 𝑎 𝑢𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜.", "[§K14]🎲 [§K1]𝐇𝐀𝐁𝐈𝐋𝐈𝐃𝐀𝐃𝐄, 𝐏𝐀𝐈𝐗𝐀̃𝐎 𝐎𝐔 𝐓𝐑𝐀𝐂̧𝐎 (𝐄𝐒𝐂𝐎𝐋𝐇𝐀 𝐃𝐎 𝐌𝐄𝐒𝐓𝐑𝐄)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Por incrível que pareça, seus conselhos são bons. Ela permanece\n ao seu lado. Obtenha ✓ no 𝑇𝑟𝑎𝑐̧𝑜, 𝑃𝑎𝑖𝑥𝑎̃𝑜 ou 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 apropriado.\n \n [§B]Fique com esta carta.[§B] Enquanto você a manter, +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 por rodada.\n \n Descarte esta carta se você interagir com outra lady."},
{"𝟏", "𝖁𝖎𝖉𝖆 𝕮𝖆𝖛𝖆𝖑𝖍𝖊𝖎𝖗𝖊𝖘𝖈𝖆", "𝐴 𝑐𝑜𝑛𝑣𝑒𝑟𝑠𝑎 𝑠𝑒 𝑣𝑜𝑙𝑡𝑎 𝑝𝑎𝑟𝑎 𝑞𝑢𝑒𝑠𝑡𝑜̃𝑒𝑠 𝑑𝑒 𝑐𝑎𝑣𝑎𝑙𝘩𝑒𝑖𝑟𝑖𝑠𝑚𝑜.", "[§K14]🎲 [§K1]𝐑𝐎𝐋𝐄 𝟏𝐃𝟔: 𝟏 𝐄𝐍𝐄𝐑𝐆𝐈𝐀; 𝟐 𝐆𝐄𝐍𝐄𝐑𝐎𝐒𝐈𝐃𝐀𝐃𝐄; 𝟑 𝐉𝐔𝐒𝐓𝐈𝐂̧𝐀;\n 𝟒 𝐌𝐈𝐒𝐄𝐑𝐈𝐂𝐎𝐑𝐃𝐈𝐀; 𝟓 𝐌𝐎𝐃𝐄𝐒𝐓𝐈𝐀; 𝟔 𝐂𝐎𝐑𝐀𝐆𝐄𝐌.", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você oferece algumas ideias úteis para seguir o bom caminho,\n ou consegue mostrar o quanto é virtuoso sem parecer que está contando\n vantagem. (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você impressiona. outros cavaleiros tomam notas.\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Ninguém gosta de gente arrogante. (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕭𝖊̂𝖓𝖈̧𝖆̃𝖔 𝕮𝖗𝖎𝖘𝖙𝖆̃", "𝑉𝑜𝑐𝑒̂ 𝑟𝑒𝑐𝑒𝑏𝑒 𝑢𝑚𝑎 𝑏𝑒̂𝑛𝑐̧𝑎̃𝑜 𝑒𝑠𝑡𝑟𝑎𝑛𝘩𝑎 𝑑𝑒 𝑢𝑚 𝘩𝑜𝑚𝑒𝑚 𝑠𝑎𝑛𝑡𝑜 𝑝𝑒𝑐𝑢𝑙𝑖𝑎𝑟.", "", " [§K14]Ganhe £1 adicional de uma colheita excepcional na próxima [§B]Fase de Inverno[§B].\n \n [§B]𝐷𝑒𝑠𝑐𝑎𝑟𝑡𝑒 𝑒 𝑐𝑜𝑚𝑝𝑟𝑒 𝑛𝑜𝑣𝑎𝑚𝑒𝑛𝑡𝑒 𝑠𝑒 𝑛𝑎̃𝑜 𝑓𝑜𝑟 𝑐𝑟𝑖𝑠𝑡𝑎̃𝑜.[§B]"},
{"𝟎", "𝕱𝖔𝖌𝖔 𝖊 𝕰𝖓𝖝𝖔𝖋𝖗𝖊!", "𝑈𝑚 𝘩𝑜𝑚𝑒𝑚 𝑠𝑎𝑛𝑡𝑜 𝑝𝑟𝑜𝑐𝑙𝑎𝑚𝑎 𝑠𝑜𝑏𝑟𝑒 𝑝𝑒𝑐𝑎𝑑𝑜𝑠 𝑞𝑢𝑒 𝑒𝑛𝑐𝘩𝑒𝑚 𝑓𝑒𝑠𝑡𝑎𝑠 𝑐𝑜𝑚𝑜 𝑒𝑠𝑠𝑎.\n 𝑂𝑠 𝑜𝑢𝑡𝑟𝑜𝑠 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜𝑠 𝑠𝑒 𝑑𝑖𝑣𝑖𝑑𝑒𝑚 𝑒𝑛𝑡𝑟𝑒 𝑑𝑖𝑠𝑓𝑎𝑟𝑐̧𝑎𝑟 𝑟𝑖𝑠𝑜𝑠 𝑒 𝑜𝑢𝑣𝑖𝑟 𝑐𝑜𝑚\n 𝑎𝑡𝑒𝑛𝑐̧𝑎̃𝑜.", "[§K14]🎲 [§K1]𝐄𝐒𝐏𝐈𝐑𝐈𝐓𝐔𝐀𝐋𝐈𝐃𝐀𝐃𝐄 𝐕𝐒. 𝐂𝐈𝐍𝐈𝐒𝐌𝐎", " [§B][§K1]ᴇsᴘɪʀɪᴛᴜᴀʟɪᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]As palavras dele te acertam. Você ganha +5 de\n bônus nas jogadas de 𝑇𝑒𝑚𝑝𝑒𝑟𝑎𝑛𝑐̧𝑎 durante o banquete. Além disso, você\n pode doar £1 para a igreja. Se você fizer isso, +𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 e sua\n consciência fica um pouco mais leve.\n \n [§B][§K1]ᴄɪɴɪsᴍᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Você rola seus olhos e só espera ele terminar. 𝐶𝑖𝑛𝑖𝑠𝑚𝑜 ✓.\n \n [§B]𝐷𝑒𝑠𝑐𝑎𝑟𝑡𝑒 𝑒 𝑐𝑜𝑚𝑝𝑟𝑒 𝑛𝑜𝑣𝑎𝑚𝑒𝑛𝑡𝑒 𝑠𝑒 𝑛𝑎̃𝑜 𝑓𝑜𝑟 𝑐𝑟𝑖𝑠𝑡𝑎̃𝑜.[§B]"},
{"𝟏", "𝕮𝖍𝖆𝖓𝖈𝖊𝖘 𝖉𝖊 𝕬𝖕𝖗𝖊𝖓𝖉𝖊𝖗", "𝑉𝑜𝑐𝑒̂ 𝑒𝑛𝑔𝑎𝑡𝑎 𝑢𝑚𝑎 𝑐𝑜𝑛𝑣𝑒𝑟𝑠𝑎 𝑐𝑜𝑚 𝑜𝑢𝑡𝑟𝑜 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜, 𝑠𝑜𝑏𝑟𝑒 𝑢𝑚 𝑎𝑠𝑠𝑢𝑛𝑡𝑜 𝑞𝑢𝑒\n 𝑣𝑜𝑐𝑒̂ 𝑛𝑎̃𝑜 𝑐𝑜𝑛𝘩𝑒𝑐𝑒 𝑚𝑎𝑠 𝑠𝑒 𝑖𝑛𝑡𝑒𝑟𝑒𝑠𝑠𝑎.", "[§K14]🎲 [§K1]𝐐𝐔𝐀𝐋𝐐𝐔𝐄𝐑 𝐇𝐀𝐁𝐈𝐋𝐈𝐃𝐀𝐃𝐄 𝐂𝐎𝐌 𝟓 𝐎𝐔 𝐌𝐄𝐍𝐎𝐒 (𝐒𝐔𝐀 𝐄𝐒𝐂𝐎𝐋𝐇𝐀)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você aprende alguns princípios básicos. 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 ✓.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você surpreende o cavaleiro, e ganha um amigo para\n o resto do banquete. +3 nesta 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 pelo restante\n do banquete (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕹𝖎𝖓𝖌𝖚𝖊𝖒 𝖘𝖊 𝕸𝖊𝖝𝖊!", "𝑈𝑚𝑎 𝑑𝑒 𝑠𝑢𝑎𝑠 𝑗𝑜𝑖𝑎𝑠 𝑠𝑒 𝑝𝑟𝑒𝑛𝑑𝑒 𝑛𝑎 𝑐𝑎𝑝𝑎 𝑑𝑒 𝑎𝑙𝑔𝑢𝑒𝑚 𝑒 𝑠𝑎𝑖 𝑣𝑜𝑎𝑛𝑑𝑜 𝑝𝑒𝑙𝑜 𝑠𝑎𝑙𝑎̃𝑜!", "[§K14]🎲 [§K1]𝐃𝐄𝐒𝐓𝐑𝐄𝐙𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você consegue pegar a joia antes dela cair, mas ela está\n danificada (metade do valor até ser consertada). Consertar a joia custa um\n décimo do valor dela.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Sua joia se perde na multidão. Você pode fazer um teste de 𝐴𝑡𝑒𝑛𝑐̧𝑎̃𝑜\n a cada rodada do banquete; em um sucesso, você a encontra. Se você rolar\n 𝐴𝑡𝑒𝑛𝑐̧𝑎̃𝑜, você não compra cartas naquela rodada.\n \n 𝐷𝑒𝑠𝑐𝑎𝑟𝑡𝑒 𝑒 𝑐𝑜𝑚𝑝𝑟𝑒 𝑛𝑜𝑣𝑎𝑚𝑒𝑛𝑡𝑒 𝑠𝑒 𝑛𝑎̃𝑜 𝑡𝑖𝑣𝑒𝑟 𝑗𝑜𝑖𝑎𝑠."},
{"𝟎", "𝕵𝖔𝖌𝖔 𝕻𝖊𝖗𝖎𝖌𝖔𝖘𝖔", "𝐴𝑙𝑔𝑢𝑛𝑠 𝑗𝑜𝑣𝑒𝑛𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑗𝑜𝑔𝑎𝑚 𝑢𝑚 𝑗𝑜𝑔𝑜 𝑏𝑎𝑠𝑡𝑎𝑛𝑡𝑒 𝑝𝑒𝑟𝑖𝑔𝑜𝑠𝑜 𝑐𝑜𝑚 𝑓𝑎𝑐𝑎𝑠.\n 𝐸𝑙𝑒𝑠 𝑝𝑒𝑑𝑒𝑚 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑝𝑎𝑟𝑡𝑖𝑐𝑖𝑝𝑒.", "[§K14]🎲 [§K1]𝐀𝐃𝐀𝐆𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]𝐴𝑑𝑎𝑔𝑎 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você feriu sua mão. 1d3 de dano. Seu idiota."},
{"𝟎", "𝕻𝖊𝖗𝖌𝖚𝖓𝖙𝖆𝖘 𝕯𝖎𝖋𝖎𝖈𝖊𝖎𝖘", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑠𝑜𝑙𝑡𝑒𝑖𝑟𝑎 𝑝𝑒𝑟𝑔𝑢𝑛𝑡𝑎 𝑐𝑜𝑚𝑜 𝑒𝑙𝑎 𝑒𝑠𝑡𝑎 𝘩𝑜𝑗𝑒, 𝑐𝑙𝑎𝑟𝑎𝑚𝑒𝑛𝑡𝑒\n 𝑝𝑒𝑑𝑖𝑛𝑑𝑜 𝑒𝑙𝑜𝑔𝑖𝑜𝑠.", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀 𝐎𝐔 𝐄𝐍𝐓𝐑𝐄𝐓𝐄𝐍𝐈𝐌𝐄𝐍𝐓𝐎 (𝐒𝐔𝐀 𝐄𝐒𝐂𝐎𝐋𝐇𝐀)", " [§K14][§B]Guarde esta carta[§B] até interagir com outra mulher. Você não pode comprar\n cartas enquanto mantém esta. A cada rodada, faça um teste de 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎\n ou 𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴇᴍ ᴄᴏʀᴛᴇsɪᴀ:[§B] [§K14]A lady permanece ao seu lado, entretida com os\n elogios (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴇᴍ ᴇɴᴛʀᴇᴛᴇɴɪᴍᴇɴᴛᴏ:[§B] [§K14]A lady poderia se acostumar com seus\n comentários (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você deve descartar esta carta e perderá toda a 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒\n obtida com ela.\n \n No final do banquete, se você ainda tiver esta carta, pode [§B]solicitar ao\n suserano da lady[§B] por permissão para cortejá-la."},
{"𝟎", "𝕮𝖆̃𝖊𝖘 𝕽𝖆𝖎𝖛𝖔𝖘𝖔𝖘", "𝑂𝑠 𝑐𝑎̃𝑒𝑠 𝑑𝑜 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑙𝑎𝑡𝑒𝑚 𝑠𝑒𝑚𝑝𝑟𝑒 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑠𝑒 𝑎𝑝𝑟𝑜𝑥𝑖𝑚𝑎.", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀 𝐎𝐔 𝐅𝐎𝐋𝐂𝐋𝐎𝐑𝐄", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]É hora de parar de comer pudim de sangue.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você aprende algo novo sobre cães. 𝐶𝑎𝑐̧𝑎 ✓.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você tenta espantar os cachorros enquanto ainda come sua comida\n (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒). Role 𝑇𝑒𝑚𝑝𝑒𝑟𝑎𝑛𝑐̧𝑎: Caso vença, 𝑇𝑒𝑚𝑝𝑒𝑟𝑎𝑛𝑐̧𝑎 ✓.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Os cães perseguem você para fora do salão!\n [§B]Você deixa o banquete[§B]."},
{"𝟎", "𝕮𝖔𝖗𝖗𝖎𝖉𝖆 𝖕𝖆𝖗𝖆 𝖔 𝕱𝖚𝖓𝖉𝖔 𝖉𝖔 𝕮𝖔𝖕𝖔", "𝑉𝑎𝑟𝑖𝑜𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑐𝑜𝑚𝑒𝑐̧𝑎𝑚 𝑢𝑚𝑎 𝑐𝑜𝑚𝑝𝑒𝑡𝑖𝑐̧𝑎̃𝑜 𝑑𝑒 𝑏𝑒𝑏𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐈𝐍𝐃𝐔𝐋𝐆𝐄𝐍𝐂𝐈𝐀 𝐕𝐒. 𝟏𝐃𝟔 𝐂𝐀𝐕𝐀𝐋𝐄𝐈𝐑𝐎𝐒 - 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]Para determinar a 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 de cada cavaleiro, se desconhecido,\n role 3d6 + 2.\n \n Ganhe [§T]+2 de Glória[§T] para cada cavaleiro que você derrotar e [§T]+5 de Glória[§T]\n adicional se você vencer o concurso.\n \n Todos os competidores (incluindo o jogador) são então convidados pelo\n Steward a [§B]deixar o banquete.[§B]"},
{"𝟎", "𝕿𝖔𝖑𝖔 𝕭𝖊̂𝖇𝖆𝖉𝖔", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑏𝑒̂𝑏𝑎𝑑𝑜, 𝑡𝑟𝑜𝑝𝑒𝑐̧𝑎𝑛𝑑𝑜, 𝑒𝑠𝑏𝑎𝑟𝑟𝑎 𝑒𝑚 𝑣𝑜𝑐𝑒̂ 𝑒 𝑞𝑢𝑎𝑠𝑒 𝑡𝑒 𝑑𝑒𝑟𝑟𝑢𝑏𝑎.", "[§K14]🎲 [§K1]𝐌𝐈𝐒𝐄𝐑𝐈𝐂𝐎𝐑𝐃𝐈𝐀 𝐕𝐒. 𝐕𝐈𝐍𝐆𝐀𝐍𝐂̧𝐀", " [§B][§K1]ᴍɪsᴇʀɪᴄᴏʀᴅɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você graciosamente ajuda o bêbado, que se torna seu\n melhor amigo pelo resto da noite. Ele te ama, sir. (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴠɪɴɢᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você empurra o idiota e ele é jogado no chão\n (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕿𝖔𝖑𝖔 𝕭𝖊̂𝖇𝖆𝖉𝖔", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑏𝑒̂𝑏𝑎𝑑𝑜, 𝑡𝑟𝑜𝑝𝑒𝑐̧𝑎𝑛𝑑𝑜, 𝑒𝑠𝑏𝑎𝑟𝑟𝑎 𝑒𝑚 𝑣𝑜𝑐𝑒̂ 𝑒 𝑞𝑢𝑎𝑠𝑒 𝑡𝑒 𝑑𝑒𝑟𝑟𝑢𝑏𝑎.", "[§K14]🎲 [§K1]𝐌𝐈𝐒𝐄𝐑𝐈𝐂𝐎𝐑𝐃𝐈𝐀 𝐕𝐒. 𝐕𝐈𝐍𝐆𝐀𝐍𝐂̧𝐀", " [§B][§K1]ᴍɪsᴇʀɪᴄᴏʀᴅɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você graciosamente ajuda o bêbado, que se torna seu\n melhor amigo pelo resto da noite. Ele te ama, sir. (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴠɪɴɢᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você empurra o idiota e ele é jogado no chão\n (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕰𝖒𝖊𝖗𝖌𝖊̂𝖓𝖈𝖎𝖆", "𝑈𝑚 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜 𝑠𝑒𝑛𝑡𝑎𝑑𝑜 𝑎𝑜 𝑠𝑒𝑢 𝑙𝑎𝑑𝑜 𝑐𝑜𝑚𝑒𝑐̧𝑎 𝑎 𝑒𝑛𝑔𝑎𝑠𝑔𝑎𝑟 𝑐𝑜𝑚 𝑢𝑚 𝑝𝑒𝑑𝑎𝑐̧𝑜\n 𝑑𝑒 𝑐𝑜𝑚𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐏𝐑𝐈𝐌𝐄𝐈𝐑𝐎𝐒 𝐒𝐎𝐂𝐎𝐑𝐑𝐎𝐒", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]As pessoas percebem seus esforços. Ganhe [§T]5 Glória[§T]\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você ganha um pequeno favor do convidado agradecido.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Outro cavaleiro ajuda o convidado... E fica com todo o crédito\n (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você quase matou o cavaleiro com sua tentativa de\n desengasgá-lo, mas outro convidado interviu a tempo. –𝟻 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 e\n [§B]você deixa o banquete[§B] envergonhado."},
{"𝟐", "𝕹𝖊𝖆𝖕𝖔𝖑𝖎𝖘 𝕾𝖆𝖋𝖗𝖆 𝟒𝟗𝟐", "𝑈𝑚 𝑣𝑖𝑛𝘩𝑜 𝑚𝑢𝑖𝑡𝑜 𝑏𝑜𝑚 𝑐𝘩𝑒𝑔𝑎 𝑎 𝑠𝑢𝑎 𝑚𝑒𝑠𝑎.", "[§K14]🎲 [§K1]𝐓𝐄𝐌𝐏𝐄𝐑𝐀𝐍𝐂̧𝐀 (𝐄𝐌 -𝟑) 𝐕𝐒. 𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐄𝐌 +𝟑)", " [§B][§K1]ᴛᴇᴍᴘᴇʀᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]𝑇𝑒𝑚𝑝𝑒𝑟𝑎𝑛𝑐̧𝑎 ✓.\n \n [§B][§K1]ɪɴᴅᴜʟɢᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Seu nível de álcool aumenta em um."},
{"𝟏", "𝕮𝖔𝖓𝖙𝖔𝖘 𝖉𝖊 𝕱𝖆𝖉𝖆𝖘", "𝑉𝑎𝑟𝑖𝑎𝑠 𝑙𝑎𝑑𝑖𝑒𝑠 𝑝𝑒𝑑𝑒𝑚 𝑝𝑎𝑟𝑎 𝑣𝑜𝑐𝑒̂ 𝑐𝑜𝑛𝑡𝑎𝑟 𝑎 𝑒𝑙𝑎𝑠 𝑎𝑙𝑔𝑜 𝑠𝑜𝑏𝑟𝑒 𝑓𝑎𝑑𝑎𝑠.", "[§K14]🎲 [§K1]𝐄𝐄𝐑𝐈𝐄", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14] Você conta algumas histórias divertidas o bastante e as mulheres\n sorriem (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]As ladies começam a comentar sobre como você\n realmente sabe do que está falando. 𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜 ✓ (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕯𝖊𝖘𝖆𝖘𝖙𝖗𝖊 𝖉𝖆 𝕸𝖔𝖉𝖆", "𝑂 𝑝𝑖𝑜𝑟 𝑎𝑐𝑜𝑛𝑡𝑒𝑐𝑒𝑢. 𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑐𝘩𝑒𝑔𝑎 𝑢𝑠𝑎𝑛𝑑𝑜 𝑎𝑠 𝑚𝑒𝑠𝑚𝑎𝑠 𝑟𝑜𝑢𝑝𝑎𝑠 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂.", "[§K14]🎲 [§K1]𝟏𝐃𝟐𝟎 𝐕𝐒. 𝐒𝐔𝐀 𝐆𝐋𝐎𝐑𝐈𝐀 ÷ 𝟏𝟎𝟎𝟎", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14] Seu status é superior. Se você decidir trocar de roupa de qualquer\n maneira, 𝑀𝑖𝑠𝑒𝑟𝑖𝑐𝑜𝑟𝑑𝑖𝑎 ✓ e [§B]perca a próxima rodada[§B] de banquete\n (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]O status dele é superior. Você deve [§B]perder uma rodada[§B] para trocar de\n roupa ou sofrer -𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 por rodada até fazer isso."},
{"𝟐", "𝕬𝖓𝖋𝖎𝖙𝖗𝖎𝖆̃𝖔 𝕲𝖊𝖓𝖊𝖗𝖔𝖘𝖔", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑝𝑒𝑑𝑒 𝑠𝑢𝑎 𝑎𝑗𝑢𝑑𝑎 𝑝𝑎𝑟𝑎 𝑢𝑚 𝑑𝑒 𝑠𝑒𝑢𝑠 𝑜𝑢𝑡𝑟𝑜𝑠 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜𝑠.", "", " [§K14]Suba em um rank para uma área de assento de convidados mais importante\n e permaneça lá pelo resto do banquete.\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟏", "𝕮𝖆𝖛𝖆𝖑𝖊𝖎𝖗𝖔 𝕲𝖊𝖓𝖊𝖗𝖔𝖘𝖔", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑟𝑖𝑐𝑜 𝑒 𝑔𝑒𝑛𝑒𝑟𝑜𝑠𝑜 𝑔𝑜𝑠𝑡𝑜𝑢 𝑑𝑒 𝑣𝑜𝑐𝑒̂. 𝐸𝑙𝑒 𝑝𝑒𝑟𝑔𝑢𝑛𝑡𝑎 𝑐𝑜𝑚𝑜 𝑒𝑠𝑡𝑎̃𝑜 𝑎𝑠\n 𝑐𝑜𝑖𝑠𝑎𝑠 𝑒𝑚 𝑐𝑎𝑠𝑎.", "", " [§K14]Se o seu grau de manutenção for 𝑃𝑜𝑏𝑟𝑒 ou 𝑂𝑟𝑑𝑖𝑛𝑎𝑟𝑖𝑜, o cavaleiro se oferece\n para dar uma ajuda. Se você aceitar, poderá viver como um cavaleiro 𝑅𝑖𝑐𝑜\n no próximo ano.\n \n Se você recusar a oferta, 𝑂𝑟𝑔𝑢𝑙𝘩𝑜 ✓."},
{"𝟏", "𝕮𝖆𝖛𝖆𝖑𝖊𝖎𝖗𝖔 𝕲𝖊𝖓𝖊𝖗𝖔𝖘𝖔", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑟𝑖𝑐𝑜 𝑒 𝑔𝑒𝑛𝑒𝑟𝑜𝑠𝑜 𝑔𝑜𝑠𝑡𝑜𝑢 𝑑𝑒 𝑣𝑜𝑐𝑒̂. 𝐸𝑙𝑒 𝑝𝑒𝑟𝑔𝑢𝑛𝑡𝑎 𝑐𝑜𝑚𝑜 𝑒𝑠𝑡𝑎̃𝑜 𝑎𝑠\n 𝑐𝑜𝑖𝑠𝑎𝑠 𝑒𝑚 𝑐𝑎𝑠𝑎.", "", " [§K14]Se o seu grau de manutenção for 𝑃𝑜𝑏𝑟𝑒 ou 𝑂𝑟𝑑𝑖𝑛𝑎𝑟𝑖𝑜, o cavaleiro se oferece\n para dar uma ajuda. Se você aceitar, poderá viver como um cavaleiro 𝑅𝑖𝑐𝑜\n no próximo ano.\n \n Se você recusar a oferta, 𝑂𝑟𝑔𝑢𝑙𝘩𝑜 ✓."},
{"𝟐", "𝕬𝖓𝖏𝖔𝖘 𝖉𝖆 𝕸𝖔𝖉𝖆", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑠𝑒 𝑒𝑛𝑐𝑎𝑛𝑡𝑎 𝑐𝑜𝑚 𝑣𝑜𝑐𝑒̂ 𝑒 𝑎𝑗𝑢𝑑𝑎 𝑎 𝑒𝑛𝑓𝑒𝑖𝑡𝑎𝑟 𝑎𝑙𝑔𝑢𝑚𝑎𝑠 𝑑𝑒 𝑠𝑢𝑎𝑠 𝑟𝑜𝑢𝑝𝑎𝑠.", "", " [§K14]No início de cada rodada, você pode [§B]ficar com esta carta[§B] ou descartá-la.\n Se você mantiver, +𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 (por rodada).\n \n Você não pode comprar cartas enquanto mantém esta.\n \n Descarte esta carta se você for forçado a trocar de roupa."},
{"𝟎", "𝕮𝖆𝖗𝖕𝖊 𝕯𝖎𝖊𝖒", "𝑃𝑜𝑟 𝑞𝑢𝑒 𝑠𝑒𝑢𝑠 𝑎𝑚𝑖𝑔𝑜𝑠 𝑝𝑒𝑔𝑎𝑚 𝑡𝑜𝑑𝑎𝑠 𝑎𝑠 𝑜𝑝𝑜𝑟𝑡𝑢𝑛𝑖𝑑𝑎𝑑𝑒𝑠 𝑏𝑜𝑎𝑠?", "", " [§K14]Se você comprou mais de uma carta, deve descartar todas as outras cartas\n que comprou. (Você pode manter outras cartas [§B]permanentes[§B] que já estão\n em uso).\n \n Você pode olhar as cartas dos outros jogadores antes de qualquer carta ser\n jogada nesta rodada. Escolha um carta entre as deles. Você pode jogar\n aquela carta como se a tivesse comprado sozinho. Se você fizer isso,\n –𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 e 𝐼𝑚𝑝𝑟𝑢𝑑𝑒̂𝑛𝑐𝑖𝑎 ✓."},
{"𝟐", "𝕯𝖊𝖚𝖘(𝖊𝖘) 𝕭𝖗𝖎𝖑𝖍𝖆(𝖒) 𝕾𝖔𝖇𝖗𝖊 𝖁𝖔𝖈𝖊̂", "𝑉𝑜𝑐𝑒̂ 𝑒𝑠𝑡𝑎 𝑝𝑒𝑔𝑎𝑛𝑑𝑜 𝑓𝑜𝑔𝑜 𝘩𝑜𝑗𝑒! 𝑁𝑎̃𝑜 𝑙𝑖𝑡𝑒𝑟𝑎𝑙𝑚𝑒𝑛𝑡𝑒.", "", " [§K14][§B]Fique com esta carta[§B]. Enquanto estivar com ela, ganhe +5 em todos os\n testes de 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎, 𝑀𝑒𝑛𝑒𝑠𝑡𝑟𝑒𝑙, 𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜 e 𝑂𝑟𝑎𝑡𝑜𝑟𝑖𝑎. Você ganha\n +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 para cada sucesso nessas quatro habilidades.\n \n Role 𝐸𝑠𝑝𝑖𝑟𝑖𝑡𝑢𝑎𝑙𝑖𝑑𝑎𝑑𝑒 cada vez que você usar o bônus desta carta.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Descarte esta carta.\n \n Você não pode comprar cartas enquanto mantém esta."},
{"𝟎", "𝕹𝖔𝖙𝖎𝖈𝖎𝖆𝖘", "𝑉𝑜𝑐𝑒̂ 𝑜𝑢𝑣𝑒 𝑢𝑚𝑎 𝑐𝑜𝑛𝑣𝑒𝑟𝑠𝑎 𝑖𝑛𝑡𝑒𝑟𝑒𝑠𝑠𝑎𝑛𝑡𝑒.", "[§K14]🎲 [§K1]𝐈𝐍𝐓𝐑𝐈𝐆𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14][§B]Fique com esta carta.[§B] Você não pode comprar cartas enquanto\n mantém esta. Ganhe +10 em qualquer teste de 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 e então descarte\n esta carta.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você ouviu algo errado e repetiu como verdade.\n Descarte esta carta imediatamente (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕹𝖔𝖙𝖎𝖈𝖎𝖆𝖘", "𝑉𝑜𝑐𝑒̂ 𝑜𝑢𝑣𝑒 𝑢𝑚𝑎 𝑐𝑜𝑛𝑣𝑒𝑟𝑠𝑎 𝑖𝑛𝑡𝑒𝑟𝑒𝑠𝑠𝑎𝑛𝑡𝑒.", "[§K14]🎲 [§K1]𝐈𝐍𝐓𝐑𝐈𝐆𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14][§B]Fique com esta carta.[§B] Você não pode comprar cartas enquanto\n mantém esta. Ganhe +10 em qualquer teste de 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 e então descarte\n esta carta.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você ouviu algo errado e repetiu como verdade.\n Descarte esta carta imediatamente (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕹𝖔𝖙𝖎𝖈𝖎𝖆𝖘", "𝑉𝑜𝑐𝑒̂ 𝑜𝑢𝑣𝑒 𝑢𝑚𝑎 𝑐𝑜𝑛𝑣𝑒𝑟𝑠𝑎 𝑖𝑛𝑡𝑒𝑟𝑒𝑠𝑠𝑎𝑛𝑡𝑒.", "[§K14]🎲 [§K1]𝐈𝐍𝐓𝐑𝐈𝐆𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14][§B]Fique com esta carta.[§B] Você não pode comprar cartas enquanto\n mantém esta. Ganhe +10 em qualquer teste de 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 e então descarte\n esta carta.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você ouviu algo errado e repetiu como verdade.\n Descarte esta carta imediatamente (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟐", "𝕲𝖗𝖆𝖓𝖉𝖊𝖘 𝕱𝖊𝖎𝖙𝖔𝖘", "𝑉𝑎𝑟𝑖𝑜𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑝𝑒𝑑𝑒𝑚 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑐𝑜𝑛𝑡𝑒 𝑠𝑒𝑢𝑠 𝑔𝑟𝑎𝑛𝑑𝑒𝑠 𝑓𝑒𝑖𝑡𝑜𝑠.", "[§K14]🎲 [§K1]𝐌𝐎𝐃𝐄𝐒𝐓𝐈𝐀 𝐕𝐒. 𝐎𝐑𝐆𝐔𝐋𝐇𝐎", " [§B][§K1]ᴍᴏᴅᴇsᴛɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Sua humildade agrada os cavaleiros. Ganhe [§T]5 Glória[§T].\n \n [§B][§K1]ᴏʀɢᴜʟʜᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Role 𝑂𝑟𝑎𝑡𝑜𝑟𝑖𝑎.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14][§T]“Memorável!”[§T] [§T]10 Glória[§T].\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Eles não acharam esse feito tão grande, e estão rindo\n de você agora (–𝟺 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟐", "𝕲𝖗𝖆𝖓𝖉𝖊𝖘 𝕱𝖊𝖎𝖙𝖔𝖘", "𝑉𝑎𝑟𝑖𝑜𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑝𝑒𝑑𝑒𝑚 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑐𝑜𝑛𝑡𝑒 𝑠𝑒𝑢𝑠 𝑔𝑟𝑎𝑛𝑑𝑒𝑠 𝑓𝑒𝑖𝑡𝑜𝑠.", "[§K14]🎲 [§K1]𝐌𝐎𝐃𝐄𝐒𝐓𝐈𝐀 𝐕𝐒. 𝐎𝐑𝐆𝐔𝐋𝐇𝐎", " [§B][§K1]ᴍᴏᴅᴇsᴛɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Sua humildade agrada os cavaleiros. Ganhe [§T]5 Glória[§T].\n \n [§B][§K1]ᴏʀɢᴜʟʜᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Role 𝑂𝑟𝑎𝑡𝑜𝑟𝑖𝑎.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14][§T]“Memorável!”[§T] [§T]10 Glória[§T].\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Eles não acharam esse feito tão grande, e estão rindo\n de você agora (–𝟺 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟐", "𝕲𝖗𝖆𝖓𝖉𝖊𝖘 𝕱𝖊𝖎𝖙𝖔𝖘", "𝑉𝑎𝑟𝑖𝑜𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑝𝑒𝑑𝑒𝑚 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑐𝑜𝑛𝑡𝑒 𝑠𝑒𝑢𝑠 𝑔𝑟𝑎𝑛𝑑𝑒𝑠 𝑓𝑒𝑖𝑡𝑜𝑠.", "[§K14]🎲 [§K1]𝐌𝐎𝐃𝐄𝐒𝐓𝐈𝐀 𝐕𝐒. 𝐎𝐑𝐆𝐔𝐋𝐇𝐎", " [§B][§K1]ᴍᴏᴅᴇsᴛɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Sua humildade agrada os cavaleiros. Ganhe [§T]5 Glória[§T].\n \n [§B][§K1]ᴏʀɢᴜʟʜᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Role 𝑂𝑟𝑎𝑡𝑜𝑟𝑖𝑎.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14][§T]“Memorável!”[§T] [§T]10 Glória[§T].\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Eles não acharam esse feito tão grande, e estão rindo\n de você agora (–𝟺 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕲𝖜𝖞𝖉𝖉𝖇𝖜𝖞𝖑𝖑", "𝑂𝑢𝑡𝑟𝑜 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑑𝑒𝑠𝑎𝑓𝑖𝑎 𝑣𝑜𝑐𝑒̂ 𝑎 𝑢𝑚 𝑗𝑜𝑔𝑜 𝑑𝑒 𝐺𝑤𝑦𝑑𝑑𝑏𝑤𝑦𝑙𝑙.", "[§K14]🎲 [§K1]𝐌𝐄𝐍𝐄𝐒𝐓𝐑𝐄𝐋 - 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]Para determinar o 𝑀𝑒𝑛𝑒𝑠𝑡𝑟𝑒𝑙 do cavaleiro, se desconhecido, role 3d6.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você venceu, mas por pouco. 𝑀𝑒𝑛𝑒𝑠𝑡𝑟𝑒𝑙 ✓.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]As pessoas aplaudem enquanto você atropela seu\n oponente (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você joga tão mal que as pessoas começam a sussurrar\n sobre sua competência em outros assuntos (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕰𝖘𝖕𝖊𝖗𝖊 𝖓𝖆 𝕻𝖔𝖗𝖙𝖆!", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑝𝑒𝑑𝑒 𝑠𝑢𝑎 𝑎𝑗𝑢𝑑𝑎. 𝐸𝑙𝑒 𝑝𝑟𝑒𝑐𝑖𝑠𝑎 𝑠𝑎𝑖𝑟 𝑐𝑜𝑚 𝑢𝑟𝑔𝑒̂𝑛𝑐𝑖𝑎 𝑒 𝑝𝑒𝑑𝑒 𝑞𝑢𝑒\n 𝑣𝑜𝑐𝑒̂ 𝑟𝑒𝑐𝑒𝑏𝑎 𝑢𝑚𝑎 𝑙𝑎𝑑𝑦.", "", " [§K14]Role 1d6 para determinar a relação da lady com o cavaleiro:\n 1-2 sua filha; 3-4 sua esposa; 5-6 sua irmã.\n \n No início de cada turno, você pode [§B]manter esta carta[§B] ou descartá-la. Se você\n mantiver, +𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 (por rodada). Se você descartá-la voluntariamente,\n -𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n Você pode descartar esta carta sem penalidade se comprar uma carta de\n [§B]Anfitrião[§B], pois tem motivos para deixar a lady.\n \n Você não pode comprar cartas enquanto mantém esta."},
{"𝟎", "𝕭𝖊̂𝖓𝖈̧𝖆̃𝖔 𝕾𝖆𝖌𝖗𝖆𝖉𝖆", "𝑃𝑎𝑟𝑒𝑐𝑒 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑓𝑜𝑖 𝑎𝑏𝑒𝑛𝑐̧𝑜𝑎𝑑𝑜 𝑝𝑜𝑟 𝑝𝑜𝑑𝑒𝑟𝑒𝑠 𝑠𝑢𝑝𝑒𝑟𝑖𝑜𝑟𝑒𝑠.", "", " [§K14][§B]Fique com esta carta[§B]. Você pode descartar esta carta antes de fazer\n qualquer rolagem ou teste durante o banquete. Ao descartar, você é ganha\n um sucesso automático.\n \n Você não pode comprar cartas enquanto mantém esta.\n \n Se você ainda tiver esta carta no final do banquete, ganhe [§T]15 Glória[§T]."},
{"𝟎", "𝕭𝖊̂𝖓𝖈̧𝖆̃𝖔 𝕾𝖆𝖌𝖗𝖆𝖉𝖆", "𝑃𝑎𝑟𝑒𝑐𝑒 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑓𝑜𝑖 𝑎𝑏𝑒𝑛𝑐̧𝑜𝑎𝑑𝑜 𝑝𝑜𝑟 𝑝𝑜𝑑𝑒𝑟𝑒𝑠 𝑠𝑢𝑝𝑒𝑟𝑖𝑜𝑟𝑒𝑠.", "", " [§K14][§B]Fique com esta carta[§B]. Você pode descartar esta carta antes de fazer\n qualquer rolagem ou teste durante o banquete. Ao descartar, você é ganha\n um sucesso automático.\n \n Você não pode comprar cartas enquanto mantém esta.\n \n Se você ainda tiver esta carta no final do banquete, ganhe [§T]15 Glória[§T]."},
{"𝟏", "𝕮𝖔𝖒𝖔 𝖊𝖘𝖙𝖆 𝖔 𝖛𝖎𝖓𝖍𝖔?", "𝑉𝑜𝑐𝑒̂ 𝑓𝑜𝑖 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜 𝑎 𝑐𝑜𝑚𝑒𝑛𝑡𝑎𝑟 𝑠𝑜𝑏𝑟𝑒 𝑜 𝑣𝑖𝑛𝘩𝑜.", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Seus comentários não têm muita substância mas são bem\n recebidos. 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎 ✓.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Parece que você realmente entende de vinho. Huh, quem\n diria? (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você mostrou que não sabe nada sobre vinho. Ou cortesia\n (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕱𝖎𝖑𝖎𝖔𝖖𝖚𝖊", "𝐴 𝑐𝑜𝑛𝑣𝑒𝑟𝑠𝑎 𝑒𝑚 𝑠𝑢𝑎 𝑚𝑒𝑠𝑎 𝑓𝑖𝑐𝑎 𝑏𝑎𝑠𝑡𝑎𝑛𝑡𝑒 𝑎𝑐𝑎𝑙𝑜𝑟𝑎𝑑𝑎.", "[§K14]🎲 [§K1]𝐏𝐑𝐔𝐃𝐄̂𝐍𝐂𝐈𝐀 𝐕𝐒. 𝐈𝐌𝐏𝐑𝐔𝐃𝐄̂𝐍𝐂𝐈𝐀", " [§B][§K1]ᴘʀᴜᴅᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você fica fora disso. Provavelmente é melhor\n (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ɪᴍᴘʀᴜᴅᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você não consegue ficar de boca fechada e é\n [§B]desafiado para um duelo[§B] (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕴𝖓𝖘𝖚𝖑𝖙𝖔 𝖆 𝖚𝖒𝖆 𝕷𝖆𝖉𝖞", "𝑉𝑜𝑐𝑒̂ 𝑡𝑒𝑠𝑡𝑒𝑚𝑢𝑛𝘩𝑎 𝑢𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑔𝑟𝑎𝑣𝑒𝑚𝑒𝑛𝑡𝑒 𝑖𝑛𝑠𝑢𝑙𝑡𝑎𝑛𝑑𝑜 𝑢𝑚𝑎 𝑙𝑎𝑑𝑦,\n 𝑒 𝑡𝑜𝑙𝑎𝑚𝑒𝑛𝑡𝑒 𝑠𝑒 𝑙𝑒𝑣𝑎𝑛𝑡𝑎 𝑝𝑎𝑟𝑎 𝑑𝑒𝑓𝑒𝑛𝑑𝑒̂-𝑙𝑎.", "[§K14]🎲 [§K1]𝐇𝐎𝐍𝐑𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]O cavaleiro se desculpa (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]O cavaleiro recua e se desculpa profusamente\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]O cavaleiro sente que está certo e aceita seu desafio. Ele o [§B]desafia\n para um duelo[§B] (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]O cavaleiro ri na sua cara. Até a lady parece ofendida\n (–𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕬 𝕽𝖊𝖕𝖗𝖊𝖘𝖘𝖆̃𝖔 𝕴𝖓𝖊𝖗𝖊𝖓𝖙𝖊 𝖆𝖔 𝕾𝖎𝖘𝖙𝖊𝖒𝖆", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑒𝑠𝑡𝑎𝑝𝑒𝑖𝑎 𝑢𝑚𝑎 𝑐𝑟𝑖𝑎𝑑𝑎. 𝑉𝑜𝑐𝑒̂ 𝑣𝑒̂ 𝑜𝑠 𝑜𝑢𝑡𝑟𝑜𝑠 𝑠𝑒 𝑣𝑖𝑟𝑎𝑟𝑒𝑚,\n 𝑒𝑛𝑣𝑒𝑟𝑔𝑜𝑛𝘩𝑎𝑑𝑜𝑠.", "[§K14]🎲 [§K1]𝐉𝐔𝐒𝐓𝐈𝐂̧𝐀 𝐕𝐒. 𝐀𝐑𝐁𝐈𝐓𝐑𝐀𝐑𝐈𝐄𝐃𝐀𝐃𝐄", " [§B][§K1]ᴊᴜsᴛɪᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você intervém. Os criados te dão atenção especial pelo\n resto do banquete. Ganhe +5 para 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 até o final da festa\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴀʀʙɪᴛʀᴀʀɪᴇᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Você ignora a situação e se afasta. 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 ✓."},
{"𝟏", "𝕬𝖕𝖗𝖊𝖘𝖊𝖓𝖙𝖆𝖈̧𝖔̃𝖊𝖘", "𝑈𝑚 𝑓𝑎𝑚𝑜𝑠𝑜 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑑𝑒 𝑓𝑜𝑟𝑎 𝑑𝑎 𝑎𝑟𝑒𝑎 𝑝𝑒𝑟𝑔𝑢𝑛𝑡𝑎 𝑠𝑒 𝑣𝑜𝑐𝑒̂ 𝑜 𝑎𝑝𝑟𝑒𝑠𝑒𝑛𝑡𝑎𝑟𝑖𝑎\n 𝑎 𝑎𝑙𝑔𝑢𝑛𝑠 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜𝑠.", "[§K14]🎲 [§K1]𝐑𝐄𝐂𝐎𝐍𝐇𝐄𝐂𝐈𝐌𝐄𝐍𝐓𝐎", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você o apresenta a alguns convidados (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você calcula bem o tempo e o apresenta ao anfitrião\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você esquece de nomes que conhece bem (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕲𝖊𝖗𝖊𝖓𝖙𝖊 𝖓𝖆 𝕱𝖆𝖇𝖗𝖎𝖈𝖆 𝖉𝖊 𝕴𝖓𝖙𝖗𝖎𝖌𝖆", "𝑈𝑚 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜 𝑡𝑒𝑚 𝑎𝑙𝑔𝑢𝑚𝑎𝑠 𝘩𝑖𝑠𝑡𝑜𝑟𝑖𝑎𝑠... 𝑖𝑛𝑡𝑒𝑟𝑒𝑠𝑠𝑎𝑛𝑡𝑒𝑠 𝑝𝑎𝑟𝑎 𝑐𝑜𝑛𝑡𝑎𝑟\n 𝑠𝑜𝑏𝑟𝑒 𝑜 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑜𝑢 𝑜𝑢𝑡𝑟𝑜 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜 𝑖𝑚𝑝𝑜𝑟𝑡𝑎𝑛𝑡𝑒.", "", " [§K14][§B]Fique com esta carta.[§B]\n \n Você [§B]perde a próxima rodada do banquete[§B] porque está em algum lugar\n ouvindo.\n \n Em uma rodada subsequente, você pode descartar esta carta para evitar a\n penalidade de 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 imposta por outra carta ou para ganhar +5 em\n qualquer teste de 𝐼𝑛𝑡𝑟𝑖𝑔𝑎."},
{"𝟏", "𝕮𝖔𝖓𝖙𝖎𝖓𝖚𝖊 𝕯𝖆𝖓𝖈̧𝖆𝖓𝖉𝖔", "𝑉𝑜𝑐𝑒̂ 𝑠𝑒 𝑖𝑛𝑠𝑝𝑖𝑟𝑜𝑢 𝑜𝑢 𝑓𝑜𝑖 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜 𝑎 𝑑𝑎𝑛𝑐̧𝑎𝑟 𝑎 𝑛𝑜𝑖𝑡𝑒 𝑡𝑜𝑑𝑎.", "[§K14]🎲 [§K1]𝐌𝐄𝐍𝐄𝐒𝐓𝐑𝐄𝐋", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]De algum jeito, sua dança atrai o olhar de uma lady elegível.\n Talvez por pena. 𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜 ✓.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Sua dança é admirada como [§T]“um símbolo poderoso de\n vigor infantil”[§T] (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você sente suor escorrendo, mas vai conseguir! Você pode [§B]manter\n esta carta[§B] até a próxima rodada e jogá-la novamente em vez de comprar\n uma carta. Caso contrário, –𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒."},
{"𝟎", "𝕽𝖊𝖎 𝖉𝖔 𝕱𝖊𝖎𝖏𝖆̃𝖔", "𝑉𝑜𝑐𝑒̂ 𝑓𝑜𝑖 𝑠𝑒𝑙𝑒𝑐𝑖𝑜𝑛𝑎𝑑𝑜 𝑝𝑎𝑟𝑎 𝑠𝑒𝑟 𝑜 𝑝𝑒𝑟𝑠𝑜𝑛𝑎𝑔𝑒𝑚 𝑝𝑟𝑖𝑛𝑐𝑖𝑝𝑎𝑙 𝑝𝑎𝑟𝑎 𝑜 𝑑𝑖𝑠𝑓𝑎𝑟𝑐𝑒\n 𝑑𝑒𝑠𝑡𝑎 𝑓𝑒𝑠𝑡𝑎. 𝐶𝑜𝑚𝑜 𝑡𝑒𝑎𝑡𝑟𝑜, 𝑚𝑎𝑠 𝑐𝑜𝑚 𝑚𝑒𝑛𝑜𝑠 𝑑𝑖𝑔𝑛𝑖𝑑𝑎𝑑𝑒. (𝑅𝑒𝑖 𝑑𝑜 𝐹𝑒𝑖𝑗𝑎̃𝑜,\n 𝑄𝑢𝑒𝑟𝑢𝑏𝑖𝑚 𝑑𝑜 𝐶𝑢𝑝𝑖𝑑𝑜, 𝑜 𝐺𝑟𝑎𝑛𝑑𝑒 𝐶𝑒𝑟𝑣𝑜 𝐵𝑟𝑎𝑛𝑐𝑜, 𝑒𝑡𝑐).", "", " [§K14][§T]10 Glória[§T]. +𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B]Fique com esta carta.[§B] Pelo resto do banquete, você deve escolher sacar\n cartas a qualquer outra atividade.\n \n Se você tiver outras cartas [§B]permanentes[§B] em jogo que o impeçam de\n comprar cartas, descarte essas cartas [§B]permanentes[§B].\n \n Enquanto você tiver 𝑅𝑒𝑖 𝑑𝑜 𝐹𝑒𝑖𝑗𝑎̃𝑜, não poderá jogar outra carta [§B]permanente[§B]."},
{"𝟎", "𝕯𝖎𝖘𝖈𝖚𝖘𝖘𝖆̃𝖔 𝖉𝖊 𝕷𝖆𝖉𝖎𝖊𝖘", "𝐷𝑢𝑎𝑠 𝑙𝑎𝑑𝑖𝑒𝑠 𝑒𝑠𝑡𝑎̃𝑜 𝑏𝑟𝑖𝑔𝑎𝑛𝑑𝑜 𝑒 𝑎 𝑠𝑖𝑡𝑢𝑎𝑐̧𝑎̃𝑜 𝑒𝑠𝑡𝑎 𝑓𝑖𝑐𝑎𝑛𝑑𝑜 𝑒𝑠𝑡𝑟𝑎𝑛𝘩𝑎.", "[§K14]🎲 [§K1]𝐉𝐔𝐒𝐓𝐈𝐂̧𝐀 𝐕𝐒. 𝐀𝐑𝐁𝐈𝐓𝐑𝐀𝐑𝐈𝐄𝐃𝐀𝐃𝐄", " [§B][§K1]ᴊᴜsᴛɪᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você as ajuda a resolver suas diferenças amigavelmente.\n Que chato. (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴀʀʙɪᴛʀᴀʀɪᴇᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Você fica do lado de uma lady. Role 1d6. Em um 6,\n um marido zangado ou amigo do sexo masculino da outra lady o desafia\n para [§B]uma competição ou duelo[§B] (escolha do Mestre)."},
{"𝟎", "𝕯𝖔𝖓𝖟𝖊𝖑𝖆 𝖊𝖒 𝕬𝖕𝖚𝖗𝖔𝖘", "𝑉𝑜𝑐𝑒̂ 𝑝𝑒𝑟𝑐𝑒𝑏𝑒 𝑢𝑚𝑎 𝑙𝑎𝑑𝑦 𝑡𝑒𝑛𝑡𝑎𝑛𝑑𝑜 𝑒𝑣𝑖𝑡𝑎𝑟 𝑢𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑎𝑚𝑜𝑟𝑜𝑠𝑜.", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]A lady agradece (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você espanta o cavaleiro com facilidade. Foi bem\n impressionante, na verdade. (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]O cavaleiro o empurra de lado. Você pode [§B]desafiá-lo para um duelo[§B];\n se você fizer isso, 𝑂𝑟𝑔𝑢𝑙𝘩𝑜 ✓.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]O cavaleiro [§B]desafia você para um duelo[§B]."},
{"𝟏", "𝕮𝖔𝖓𝖘𝖈𝖗𝖎𝖙𝖔", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑓𝑜𝑖 𝑒𝑠𝑐𝑜𝑙𝘩𝑖𝑑𝑎 𝑝𝑎𝑟𝑎 𝑙𝑖𝑑𝑒𝑟𝑎𝑟 𝑎 𝑝𝑟𝑜𝑥𝑖𝑚𝑎 𝑑𝑎𝑛𝑐̧𝑎 𝑓𝑜𝑟𝑚𝑎𝑙...\n 𝐸 𝑒𝑙𝑎 𝑒𝑠𝑐𝑜𝑙𝘩𝑒𝑢 𝑣𝑜𝑐𝑒̂ 𝑝𝑎𝑟𝑎 𝑠𝑒 𝑗𝑢𝑛𝑡𝑎𝑟 𝑎 𝑒𝑙𝑎.", "[§K14]🎲 [§K1]𝐌𝐄𝐍𝐄𝐒𝐓𝐑𝐄𝐋", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você não passa vergonha. 𝑀𝑒𝑛𝑒𝑠𝑡𝑟𝑒𝑙 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Todos estão impressionados. (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você se empolga e pisa com força no pé dela. Ai.\n (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕻𝖔𝖉𝖊𝖒𝖔𝖘 𝕯𝖆𝖓𝖈̧𝖆𝖗?", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑝𝑒𝑑𝑒 𝑝𝑎𝑟𝑎 𝑑𝑎𝑛𝑐̧𝑎𝑟 𝑐𝑜𝑚 𝑣𝑜𝑐𝑒̂.", "[§K14]🎲 [§K1]𝐌𝐄𝐍𝐄𝐒𝐓𝐑𝐄𝐋", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14][§T]“Você é um bom dançarino!”[§T] (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Ela fica impressionada e fica com você pelo resto da festa.\n [§B]Guarde esta carta[§B] até interagir com outra mulher. Enquanto a mantiver,\n ganhe +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 (por rodada)."},
{"𝟏", "𝕮𝖗𝖎𝖆𝖓𝖈̧𝖆 𝕻𝖊𝖗𝖉𝖎𝖉𝖆", "𝑈𝑚𝑎 𝑐𝑟𝑖𝑎𝑛𝑐̧𝑎 𝑝𝑢𝑥𝑎 𝑠𝑢𝑎𝑠 𝑟𝑜𝑢𝑝𝑎𝑠 𝑒 𝑝𝑒𝑑𝑒 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑎 𝑎𝑗𝑢𝑑𝑒 𝑎 𝑒𝑛𝑐𝑜𝑛𝑡𝑟𝑎𝑟 𝑜𝑠 𝑝𝑎𝑖𝑠.", "[§K14]🎲 [§K1]𝐌𝐈𝐒𝐄𝐑𝐈𝐂𝐎𝐑𝐃𝐈𝐀 𝐕𝐒. 𝐂𝐑𝐔𝐄𝐋𝐃𝐀𝐃𝐄", " [§B][§K1]ᴍɪsᴇʀɪᴄᴏʀᴅɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você ajuda a criança antes que ela chore mais.\n [§B]Perca a próxima rodada[§B] (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴄʀᴜᴇʟᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Você aponta na direção do Steward e vai embora.\n 𝐶𝑟𝑢𝑒𝑙𝑑𝑎𝑑𝑒 ✓."},
{"𝟏", "𝕬𝖒𝖔𝖗 𝕻𝖊𝖗𝖉𝖎𝖉𝖔", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑏𝑒̂𝑏𝑎𝑑𝑜 𝑙𝑎𝑚𝑒𝑛𝑡𝑎 𝑠𝑒𝑢 𝑎𝑚𝑜𝑟 𝑝𝑒𝑟𝑑𝑖𝑑𝑜.", "[§K14]🎲 [§K1]𝐌𝐈𝐒𝐄𝐑𝐈𝐂𝐎𝐑𝐃𝐈𝐀 𝐕𝐒. 𝐂𝐑𝐔𝐄𝐋𝐃𝐀𝐃𝐄", " [§B][§K1]ᴍɪsᴇʀɪᴄᴏʀᴅɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você é tocado pelos lamentos atrapalhados dele e\n acaba sentado bebendo ao seu lado. (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒). Você sofre -5 para\n todos os testes de 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎, 𝑀𝑒𝑛𝑒𝑠𝑡𝑟𝑒𝑙, 𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜 e 𝑂𝑟𝑎𝑡𝑜𝑟𝑖𝑎 na\n próxima rodada.\n \n [§B][§K1]ᴄʀᴜᴇʟᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Você ri dele e ele sai do banquete literalmente chorando.\n Os convidados viram (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕮𝖆𝖑𝖚𝖓𝖎𝖆", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑖𝑛𝑗𝑢𝑠𝑡𝑎𝑚𝑒𝑛𝑡𝑒 𝑐𝑟𝑖𝑡𝑖𝑐𝑎 𝑣𝑜𝑐𝑒̂ 𝑛𝑎 𝑠𝑢𝑎 𝑓𝑟𝑒𝑛𝑡𝑒.", "[§K14]🎲 [§K1]𝐌𝐎𝐃𝐄𝐒𝐓𝐈𝐀 𝐕𝐒. 𝐎𝐑𝐆𝐔𝐋𝐇𝐎", " [§B][§K1]ᴍᴏᴅᴇsᴛɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você ignora. Tem mais o que fazer hoje. 𝑀𝑜𝑑𝑒𝑠𝑡𝑖𝑎 ✓\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)\n \n [§B][§K1]ᴏʀɢᴜʟʜᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Você grita com o cavaleiro e o Steward tem que separá-los\n (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒). Você pode [§B]desafiar o cavaleiro para um duelo[§B]. Se não\n o fizer, -1 𝐻𝑜𝑛𝑟𝑎."},
{"𝟎", "𝕰𝖒𝖇𝖗𝖎𝖆𝖌𝖆𝖉𝖔", "𝑉𝑜𝑐𝑒̂ 𝑐𝑜𝑛𝑡𝑖𝑛𝑢𝑎 𝑒𝑠𝑞𝑢𝑒𝑐𝑒𝑛𝑑𝑜 𝑠𝑒𝑢𝑠 𝑚𝑜𝑑𝑜𝑠. 𝑃𝑜𝑑𝑒𝑟𝑖𝑎 𝑠𝑒𝑟 𝑎 𝑏𝑒𝑏𝑖𝑑𝑎?", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀 (𝐂𝐎𝐌 -𝟓)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Hora de ir devagar. +5 𝑇𝑒𝑚𝑝𝑒𝑟𝑎𝑛𝑐̧𝑎 na próxima rodada.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]A ideia de parar é a última coisa que passa pela sua cabeça\n antes se você cair em cima de uma mesa. Os servos te carregam para fora.\n [§B]Deixe o banquete[§B]."},
{"𝟎", "𝕺𝖘 𝖁𝖊𝖓𝖙𝖔𝖘 𝖉𝖔 𝕴𝖓𝖛𝖊𝖗𝖓𝖔", "𝐸𝑛𝑞𝑢𝑎𝑛𝑡𝑜 𝑜 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑜𝑢 𝑜𝑢𝑡𝑟𝑜 𝑜𝑟𝑎𝑑𝑜𝑟 𝑖𝑚𝑝𝑜𝑟𝑡𝑎𝑛𝑡𝑒 𝑒𝑠𝑡𝑎̃𝑜 𝑓𝑎𝑙𝑎𝑛𝑑𝑜, 𝑣𝑜𝑐𝑒̂\n 𝑑𝑒𝑖𝑥𝑎 𝑢𝑚 𝑎𝑟𝑎𝑢𝑡𝑜 𝑒𝑠𝑐𝑎𝑝𝑎𝑟 𝑝𝑒𝑙𝑜 𝑠𝑒𝑢 𝑝𝑜𝑠𝑡𝑒𝑟𝑛.", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você consegue se desculpar graciosamente por tocar sua\n trombeta fora de hora. \n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]O orador ri do lamento de suas entranhas (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]As pessoas ao seu redor dão um passo para trás para escapar de\n seus maus humores. (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Não era só ar. Seus portões foram forçados e você precisa\n trocar de roupa. [§B]Perca a próxima rodada[§B]."},
{"𝟏", "𝕳𝖎𝖉𝖗𝖔𝖒𝖊𝖑", "𝑈𝑚 𝑔𝑟𝑎𝑛𝑑𝑒 𝑏𝑎𝑟𝑟𝑖𝑙 𝑑𝑒 𝘩𝑖𝑑𝑟𝑜𝑚𝑒𝑙 𝑓𝑖𝑛𝑜 𝑓𝑜𝑖 𝑡𝑟𝑎𝑧𝑖𝑑𝑜 𝑒 𝑎𝑏𝑒𝑟𝑡𝑜.", "[§K14]🎲 [§K1]𝐓𝐄𝐌𝐏𝐄𝐑𝐀𝐍𝐂̧𝐀 𝐕𝐒. 𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀", " [§B][§K1]ᴛᴇᴍᴘᴇʀᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você elogia o anfitrião por sua excelente escolha\n (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ɪɴᴅᴜʟɢᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Seu nível de álcool aumenta."},
{"𝟏", "𝕬𝖖𝖚𝖊𝖑𝖆 𝖁𝖊𝖟 𝖈𝖔𝖒 𝖔 𝕶𝖊𝖑𝖕𝖎𝖊", "𝑉𝑜𝑐𝑒̂ 𝑑𝑒𝑣𝑒 𝑒𝑛𝑡𝑟𝑒𝑡𝑒𝑟 𝑎 𝑎𝑙𝑡𝑎 𝑚𝑒𝑠𝑎 𝑐𝑜𝑚 𝑢𝑚𝑎 𝘩𝑖𝑠𝑡𝑜𝑟𝑖𝑎.", "[§K14]🎲 [§K1]𝐎𝐑𝐀𝐓𝐎𝐑𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Sua história é adequada (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]O anfitrião fica fascinado e pede outra história\n (+𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒). [§B]Fique com esta carta[§B]. Você deve jogá-la novamente na\n próxima rodada, mas você ganha +5 em seu teste de 𝑂𝑟𝑎𝑡𝑜𝑟𝑖𝑎. Se rolar\n outro sucesso crítico, você pode descartar esta carta.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]O anfitrião não parece impressionado.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]O anfitrião corta sua história no meio e te dispensa.\n Você não pode jogar nenhuma carta de [§B]Anfitrião[§B] até o final do banquete.\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟏", "𝕾𝖊𝖗𝖎𝖔? 𝖀𝖒 𝕶𝖊𝖑𝖕𝖎𝖊?", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑜𝑢𝑣𝑖𝑢 𝑓𝑎𝑙𝑎𝑟 𝑑𝑒 𝑠𝑢𝑎𝑠 𝘩𝑖𝑠𝑡𝑜𝑟𝑖𝑎𝑠 𝑒 𝑑𝑒𝑠𝑒𝑗𝑎 𝑞𝑢𝑒𝑠𝑡𝑖𝑜𝑛𝑎-𝑙𝑜 𝑠𝑜𝑏𝑟𝑒\n 𝑠𝑢𝑎 𝑒𝑥𝑝𝑒𝑟𝑖𝑒̂𝑛𝑐𝑖𝑎.", "[§K14]🎲 [§K1]𝐒𝐔𝐀 𝐌𝐄𝐋𝐇𝐎𝐑 𝐇𝐀𝐁𝐈𝐋𝐈𝐃𝐀𝐃𝐄 (𝐄𝐒𝐂𝐎𝐋𝐇𝐀 𝐒𝐄 𝐄𝐌𝐏𝐀𝐓𝐀𝐃𝐀𝐒)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]O anfitrião está satisfeito com o seu conhecimento\n (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Ele te elogia para o resto dos convidados ouvirem\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Medíocre. Você claramente exagerou um pouco. (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]É melhor não contar mais essa história. Você não pode jogar\n nenhuma carta de [§B]Anfitrião[§B] até o final do banquete.\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟏", "𝕳𝖊𝖗𝖔𝖎𝖘 𝖓𝖆̃𝖔 𝕸𝖆𝖙𝖆𝖒", "𝑁𝑜𝑡𝑖𝑐𝑖𝑎𝑠 𝑑𝑒 𝑐𝑜𝑚𝑏𝑎𝑡𝑒 𝑑𝑜 𝑢𝑙𝑡𝑖𝑚𝑜 𝑎𝑛𝑜 𝑑𝑒𝑖𝑥𝑎𝑟𝑎𝑚 𝑎𝑠 𝑙𝑎𝑑𝑖𝑒𝑠 𝑑𝑎 𝑓𝑎𝑚𝑖𝑙𝑖𝑎 𝑑𝑜\n 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑐ℎ𝑜𝑐𝑎𝑑𝑎𝑠. 𝐸𝑙𝑎𝑠 𝑡𝑒 𝑝𝑒𝑟𝑔𝑢𝑛𝑡𝑎𝑚 𝑜 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑓𝑎𝑟𝑖𝑎 𝑠𝑒 𝑒𝑛𝑐𝑜𝑛𝑡𝑟𝑎𝑠𝑠𝑒\n 𝑜 𝑠𝑒𝑢 𝑝𝑖𝑜𝑟 𝑖𝑛𝑖𝑚𝑖𝑔𝑜.", "[§K14]🎲 [§K1]𝐌𝐈𝐒𝐄𝐑𝐈𝐂𝐎𝐑𝐃𝐈𝐀 𝐕𝐒. 𝐎𝐃𝐈𝐎 𝐌𝐀𝐈𝐒 𝐅𝐎𝐑𝐓𝐄 (𝐄𝐒𝐂𝐎𝐋𝐇𝐀 𝐒𝐄 𝐄𝐌𝐏𝐀𝐓𝐀𝐃𝐎𝐒)", " [§B][§K1]ᴍɪsᴇʀɪᴄᴏʀᴅɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]As ladies parecem tranquilizadas. 𝑀𝑖𝑠𝑒𝑟𝑖𝑐𝑜𝑟𝑑𝑖𝑎 ✓\n (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴏᴅɪᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Seus modos violentos parecem ofender as ladies\n (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕭𝖆𝖗𝖉𝖔𝖘 𝕮𝖆𝖓𝖙𝖆𝖒", "𝑂𝑠 𝑏𝑎𝑟𝑑𝑜𝑠 𝑡𝑜𝑐𝑎𝑚 𝑢𝑚𝑎 𝑐𝑎𝑛𝑐̧𝑎̃𝑜 𝑒𝑚𝑝𝑜𝑙𝑔𝑎𝑛𝑡𝑒.", "[§K14]🎲 [§K1]𝐓𝐎𝐂𝐀𝐑", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você acompanha bem os menestréis (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você assume a liderança e os próprios menestréis o\n aplaudem (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Fora do tom, fora do tempo (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕭𝖊𝖇𝖎𝖉𝖆", "𝑂𝑢𝑡𝑟𝑎 𝑗𝑎𝑟𝑟𝑎 𝑑𝑒 𝑐𝑒𝑟𝑣𝑒𝑗𝑎 𝑓𝑜𝑖 𝑡𝑟𝑎𝑧𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§K14]Role 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 para checar seu nível de álcool.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕭𝖊𝖇𝖎𝖉𝖆", "𝑂𝑢𝑡𝑟𝑎 𝑗𝑎𝑟𝑟𝑎 𝑑𝑒 𝑐𝑒𝑟𝑣𝑒𝑗𝑎 𝑓𝑜𝑖 𝑡𝑟𝑎𝑧𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§K14]Role 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 para checar seu nível de álcool.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕭𝖊𝖇𝖎𝖉𝖆", "𝑂𝑢𝑡𝑟𝑎 𝑗𝑎𝑟𝑟𝑎 𝑑𝑒 𝑐𝑒𝑟𝑣𝑒𝑗𝑎 𝑓𝑜𝑖 𝑡𝑟𝑎𝑧𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§K14]Role 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 para checar seu nível de álcool.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕭𝖊𝖇𝖎𝖉𝖆", "𝑂𝑢𝑡𝑟𝑎 𝑗𝑎𝑟𝑟𝑎 𝑑𝑒 𝑐𝑒𝑟𝑣𝑒𝑗𝑎 𝑓𝑜𝑖 𝑡𝑟𝑎𝑧𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§K14]Role 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 para checar seu nível de álcool.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕭𝖊𝖇𝖎𝖉𝖆", "𝑂𝑢𝑡𝑟𝑎 𝑗𝑎𝑟𝑟𝑎 𝑑𝑒 𝘩𝑖𝑑𝑟𝑜𝑚𝑒𝑙 𝑓𝑜𝑖 𝑡𝑟𝑎𝑧𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§K14]Role 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 para checar seu nível de álcool.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕭𝖊𝖇𝖎𝖉𝖆", "𝑂𝑢𝑡𝑟𝑎 𝑗𝑎𝑟𝑟𝑎 𝑑𝑒 𝘩𝑖𝑑𝑟𝑜𝑚𝑒𝑙 𝑓𝑜𝑖 𝑡𝑟𝑎𝑧𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§K14]Role 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 para checar seu nível de álcool.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕭𝖊𝖇𝖎𝖉𝖆", "𝑂𝑢𝑡𝑟𝑎 𝑗𝑎𝑟𝑟𝑎 𝑑𝑒 𝑣𝑖𝑛𝘩𝑜 𝑓𝑜𝑖 𝑡𝑟𝑎𝑧𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§K14]Role 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 para checar seu nível de álcool.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕭𝖊𝖇𝖎𝖉𝖆", "𝑂𝑢𝑡𝑟𝑎 𝑗𝑎𝑟𝑟𝑎 𝑑𝑒 𝑣𝑖𝑛𝘩𝑜 𝑓𝑜𝑖 𝑡𝑟𝑎𝑧𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§K14]Role 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 para checar seu nível de álcool.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕴𝖉𝖊𝖓𝖙𝖎𝖉𝖆𝖉𝖊 𝕿𝖗𝖔𝖈𝖆𝖉𝖆", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑐𝑜𝑛𝑓𝑢𝑛𝑑𝑒 𝑣𝑜𝑐𝑒̂ 𝑐𝑜𝑚 𝑜𝑢𝑡𝑟𝑜. 𝐸𝑙𝑒 𝑜 𝑒𝑙𝑜𝑔𝑖𝑎 𝑝𝑜𝑟 𝑎𝑡𝑜𝑠 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂\n 𝑛𝑎̃𝑜 𝑟𝑒𝑎𝑙𝑖𝑧𝑜𝑢.", "[§K14]🎲 [§K1]𝐌𝐎𝐃𝐄𝐒𝐓𝐈𝐀 𝐕𝐒. 𝐌𝐀𝐋𝐈𝐂𝐈𝐀", " [§B][§K1]ᴍᴏᴅᴇsᴛɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você o informa de seu erro como um bom garoto.\n Role 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Ele está impressionado com sua humildade graciosa\n (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴍᴀʟɪᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você aceita o elogio dele. 𝑀𝑎𝑙𝑖𝑐𝑖𝑎 ✓."},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕮𝖔𝖒𝖎𝖉𝖆", "𝑇𝑟𝑎𝑧𝑒𝑚 𝑜𝑢𝑡𝑟𝑜 𝑝𝑟𝑎𝑡𝑜 𝑑𝑒 𝑐𝑜𝑚𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐓𝐄𝐌𝐏𝐄𝐑𝐀𝐍𝐂̧𝐀 𝐕𝐒. 𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§B][§K1]ᴛᴇᴍᴘᴇʀᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Sem efeito.\n \n [§B][§K1]ɪɴᴅᴜʟɢᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Faça um teste de [§B]ᴄᴏɴ[§B] para continuar comendo.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você fica cheio demais e se retira para um lugar tranquilo, [§B]perdendo\n a próxima rodada[§B] do banquete.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕮𝖔𝖒𝖎𝖉𝖆", "𝑇𝑟𝑎𝑧𝑒𝑚 𝑜𝑢𝑡𝑟𝑜 𝑝𝑟𝑎𝑡𝑜 𝑑𝑒 𝑐𝑜𝑚𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐓𝐄𝐌𝐏𝐄𝐑𝐀𝐍𝐂̧𝐀 𝐕𝐒. 𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§B][§K1]ᴛᴇᴍᴘᴇʀᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Sem efeito.\n \n [§B][§K1]ɪɴᴅᴜʟɢᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Faça um teste de [§B]ᴄᴏɴ[§B] para continuar comendo.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você fica cheio demais e se retira para um lugar tranquilo, [§B]perdendo\n a próxima rodada[§B] do banquete.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕮𝖔𝖒𝖎𝖉𝖆", "𝑇𝑟𝑎𝑧𝑒𝑚 𝑜𝑢𝑡𝑟𝑜 𝑝𝑟𝑎𝑡𝑜 𝑑𝑒 𝑐𝑜𝑚𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐓𝐄𝐌𝐏𝐄𝐑𝐀𝐍𝐂̧𝐀 𝐕𝐒. 𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§B][§K1]ᴛᴇᴍᴘᴇʀᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Sem efeito.\n \n [§B][§K1]ɪɴᴅᴜʟɢᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Faça um teste de [§B]ᴄᴏɴ[§B] para continuar comendo.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você fica cheio demais e se retira para um lugar tranquilo, [§B]perdendo\n a próxima rodada[§B] do banquete.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕮𝖔𝖒𝖎𝖉𝖆", "𝑇𝑟𝑎𝑧𝑒𝑚 𝑜𝑢𝑡𝑟𝑜 𝑝𝑟𝑎𝑡𝑜 𝑑𝑒 𝑐𝑜𝑚𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐓𝐄𝐌𝐏𝐄𝐑𝐀𝐍𝐂̧𝐀 𝐕𝐒. 𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§B][§K1]ᴛᴇᴍᴘᴇʀᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Sem efeito.\n \n [§B][§K1]ɪɴᴅᴜʟɢᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Faça um teste de [§B]ᴄᴏɴ[§B] para continuar comendo.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você fica cheio demais e se retira para um lugar tranquilo, [§B]perdendo\n a próxima rodada[§B] do banquete.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕮𝖔𝖒𝖎𝖉𝖆", "𝑇𝑟𝑎𝑧𝑒𝑚 𝑜𝑢𝑡𝑟𝑜 𝑝𝑟𝑎𝑡𝑜 𝑑𝑒 𝑐𝑜𝑚𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐓𝐄𝐌𝐏𝐄𝐑𝐀𝐍𝐂̧𝐀 𝐕𝐒. 𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§B][§K1]ᴛᴇᴍᴘᴇʀᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Sem efeito.\n \n [§B][§K1]ɪɴᴅᴜʟɢᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Faça um teste de [§B]ᴄᴏɴ[§B] para continuar comendo.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você fica cheio demais e se retira para um lugar tranquilo, [§B]perdendo\n a próxima rodada[§B] do banquete.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕮𝖔𝖒𝖎𝖉𝖆", "𝑇𝑟𝑎𝑧𝑒𝑚 𝑜𝑢𝑡𝑟𝑜 𝑝𝑟𝑎𝑡𝑜 𝑑𝑒 𝑐𝑜𝑚𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐓𝐄𝐌𝐏𝐄𝐑𝐀𝐍𝐂̧𝐀 𝐕𝐒. 𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§B][§K1]ᴛᴇᴍᴘᴇʀᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Sem efeito.\n \n [§B][§K1]ɪɴᴅᴜʟɢᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Faça um teste de [§B]ᴄᴏɴ[§B] para continuar comendo.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você fica cheio demais e se retira para um lugar tranquilo, [§B]perdendo\n a próxima rodada[§B] do banquete.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕮𝖔𝖒𝖎𝖉𝖆", "𝑇𝑟𝑎𝑧𝑒𝑚 𝑜𝑢𝑡𝑟𝑜 𝑝𝑟𝑎𝑡𝑜 𝑑𝑒 𝑐𝑜𝑚𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐓𝐄𝐌𝐏𝐄𝐑𝐀𝐍𝐂̧𝐀 𝐕𝐒. 𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§B][§K1]ᴛᴇᴍᴘᴇʀᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Sem efeito.\n \n [§B][§K1]ɪɴᴅᴜʟɢᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Faça um teste de [§B]ᴄᴏɴ[§B] para continuar comendo.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você fica cheio demais e se retira para um lugar tranquilo, [§B]perdendo a próxima rodada[§B]\n do banquete.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕸𝖆𝖎𝖘 𝕮𝖔𝖒𝖎𝖉𝖆", "𝑇𝑟𝑎𝑧𝑒𝑚 𝑜𝑢𝑡𝑟𝑜 𝑝𝑟𝑎𝑡𝑜 𝑑𝑒 𝑐𝑜𝑚𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐓𝐄𝐌𝐏𝐄𝐑𝐀𝐍𝐂̧𝐀 𝐕𝐒. 𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀 (𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒)", " [§B][§K1]ᴛᴇᴍᴘᴇʀᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Sem efeito.\n \n [§B][§K1]ɪɴᴅᴜʟɢᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Faça um teste de [§B]ᴄᴏɴ[§B] para continuar comendo.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você fica cheio demais e se retira para um lugar tranquilo, [§B]perdendo\n a próxima rodada[§B] do banquete.\n \n 𝑂𝑏𝑟𝑖𝑔𝑎𝑡𝑜𝑟𝑖𝑜 (𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎 𝟷𝟼+);"},
{"𝟎", "𝕹𝖔𝖛𝖔𝖘 𝕬𝖒𝖎𝖌𝖔𝖘", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑝𝑒𝑑𝑒 𝑝𝑎𝑟𝑎 𝑠𝑒𝑟 𝑎𝑝𝑟𝑒𝑠𝑒𝑛𝑡𝑎𝑑𝑜 𝑎𝑜𝑠 𝑠𝑒𝑢𝑠 𝑎𝑚𝑖𝑔𝑜𝑠. 𝐸𝑙𝑒 𝑒𝑠𝑡𝑎\n 𝑠𝑜𝑧𝑖𝑛𝘩𝑜 𝑒 𝑏𝑢𝑠𝑐𝑎 𝑏𝑜𝑎 𝑐𝑜𝑚𝑝𝑎𝑛𝘩𝑖𝑎.", "", " [§K14][§B]Fique com esta carta.[§B] Enquanto a tiver, +5 em todos os testes de 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎,\n 𝑀𝑒𝑛𝑒𝑠𝑡𝑟𝑒𝑙, 𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜 e 𝑂𝑟𝑎𝑡𝑜𝑟𝑖𝑎.\n \n Descarte esta carta ao comprar uma carta de [§B]Anfitrião[§B] ou uma carta\n Obrigatória.\n \n Se você tiver esta carta no final do banquete, o cavaleiro fica grato e lhe dá\n um presente no valor de £1."},
{"𝟏", "𝖁𝖊𝖑𝖍𝖔𝖘 𝕬𝖒𝖎𝖌𝖔𝖘", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑚𝑎𝑖𝑠 𝑣𝑒𝑙𝘩𝑜, 𝑎𝑚𝑖𝑔𝑜 𝑑𝑒 𝑠𝑒𝑢 𝑝𝑎𝑖, 𝑐𝑜𝑛𝑡𝑎 𝑎𝑙𝑔𝑢𝑚𝑎𝑠 𝑏𝑜𝑎𝑠 𝘩𝑖𝑠𝑡𝑜𝑟𝑖𝑎𝑠.", "[§K14]🎲 [§K1]𝐀𝐌𝐎𝐑 (𝐅𝐀𝐌𝐈𝐋𝐈𝐀)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Isso soa como meu pai! O cavaleiro pede para ficar um tempo em\n sua propriedade e relembrar o passado.\n \n Se você aceitar sua oferta, 𝐴𝑚𝑜𝑟(𝐹𝑎𝑚𝑖𝑙𝑖𝑎) ✓ e 𝐻𝑜𝑠𝑝𝑖𝑡𝑎𝑙𝑖𝑑𝑎𝑑𝑒 ✓\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒). Você deve pagar £3/ano por 1d6 anos para sustentar\n o cavaleiro enquanto ele fica com você.\n \n Se você recusar, 𝑃𝑟𝑢𝑑𝑒̂𝑛𝑐𝑖𝑎 ✓."},
{"𝟎", "𝕺𝖔𝖕𝖘!", "𝑈𝑚𝑎 𝑐𝑟𝑖𝑎𝑑𝑎 𝑑𝑒𝑖𝑥𝑎 𝑐𝑎𝑖𝑟 𝑢𝑚 𝑝𝑟𝑎𝑡𝑜 𝑑𝑒 𝑐𝑜𝑚𝑖𝑑𝑎 𝑒𝑚 𝑐𝑖𝑚𝑎 𝑑𝑒 𝑣𝑜𝑐𝑒̂.", "[§K14]🎲 [§K1]𝐃𝐄𝐒𝐓𝐑𝐄𝐙𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você esquiva! (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ: [§K14]Guarde esta carta.[§B] Enquanto fizer isso, -𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 por rodada.\n Se você [§B]perder uma rodada[§B] para se limpar, você pode descartar esta carta."},
{"𝟎", "𝕰𝖝𝖈𝖊𝖘𝖘𝖔 𝖉𝖊 𝕬𝖑𝖊𝖌𝖗𝖎𝖆", "𝑉𝑜𝑐𝑒̂ 𝑏𝑒𝑏𝑒𝑢 𝑚𝑢𝑖𝑡𝑜. 𝑆𝑒𝑢 𝑒𝑠𝑡𝑜̂𝑚𝑎𝑔𝑜 𝑒𝑠𝑡𝑎 𝑖𝑛𝑞𝑢𝑖𝑒𝑡𝑜 𝑒 𝑠𝑢𝑎 𝑐𝑎𝑏𝑒𝑐̧𝑎 𝑒𝑠𝑡𝑎 𝑔𝑖𝑟𝑎𝑛𝑑𝑜.", "[§K14]🎲 [§K1]𝐂𝐎𝐍𝐒𝐓𝐈𝐓𝐔𝐈𝐂̧𝐀̃𝐎", " [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você sai para tomar um pouco de ar fresco. [§B]Perca a próxima rodada[§B].\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você esvazia o estômago no salão e se envergonha. Agora\n você precisa trocar de roupa. [§B]Perca a próxima rodada[§B] (–𝟺 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕻𝖗𝖊𝖘𝖊𝖓𝖙𝖊 𝕻𝖆𝖌𝖆̃𝖔", "𝑈𝑚𝑎 𝑏𝑟𝑢𝑥𝑎 𝑙𝑜𝑐𝑎𝑙 𝑠𝑒 𝑎𝑝𝑟𝑜𝑥𝑖𝑚𝑎 𝑑𝑒 𝑣𝑜𝑐𝑒̂ 𝑒 𝑙𝘩𝑒 𝑐𝑜𝑛𝑐𝑒𝑑𝑒 𝑢𝑚 𝑝𝑟𝑒𝑠𝑒𝑛𝑡𝑒.", "", " [§K14]Se você não for casado, todas as rolagens de 𝑆𝑜𝑏𝑟𝑒𝑣𝑖𝑣𝑒̂𝑛𝑐𝑖𝑎 𝑑𝑒 𝐶𝑎𝑣𝑎𝑙𝑜𝑠\n para sua propriedade têm +3 nesta [§B]Fase de Inverno[§B].\n \n Se você for casado, é um presente para sua esposa. +3 em todos os testes\n de 𝑁𝑎𝑠𝑐𝑖𝑚𝑒𝑛𝑡𝑜 𝑑𝑒 𝐶𝑟𝑖𝑎𝑛𝑐̧𝑎 nesta [§B]Fase de Inverno[§B].\n \n [§B]𝐷𝑒𝑠𝑐𝑎𝑟𝑡𝑒 𝑒 𝑐𝑜𝑚𝑝𝑟𝑒 𝑛𝑜𝑣𝑎𝑚𝑒𝑛𝑡𝑒 𝑠𝑒 𝑛𝑎̃𝑜 𝑓𝑜𝑟 𝑝𝑎𝑔𝑎̃𝑜.[§B]"},
{"𝟏", "𝕻𝖗𝖆𝖟𝖊𝖗𝖊𝖘 𝕻𝖆𝖌𝖆̃𝖔𝖘", "𝑈𝑚 𝑏𝑎𝑟𝑑𝑜 𝑐𝑎𝑛𝑡𝑎 𝑢𝑚𝑎 𝑣𝑒𝑙𝘩𝑎 𝑚𝑢𝑠𝑖𝑐𝑎 𝑟𝑜𝑚𝑎𝑛𝑎 𝑠𝑜𝑏𝑟𝑒 𝑜𝑠 𝑝𝑟𝑎𝑧𝑒𝑟𝑒𝑠 𝑑𝑒 𝑠𝑒 𝑒𝑛𝑐𝘩𝑒𝑟\n 𝑑𝑒 𝑐𝑜𝑚𝑖𝑑𝑎.", "[§K14]🎲 [§K1]𝐄𝐒𝐏𝐈𝐑𝐈𝐓𝐔𝐀𝐋𝐈𝐃𝐀𝐃𝐄 𝐕𝐒. 𝐂𝐈𝐍𝐈𝐒𝐌𝐎", " [§B][§K1]ᴇsᴘɪʀɪᴛᴜᴀʟɪᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Sua boca se enche de saliva. + 1d6 para 𝐼𝑛𝑑𝑢𝑙𝑔𝑒̂𝑛𝑐𝑖𝑎\n na próxima rodada.\n \n [§B][§K1]ᴄɪɴɪsᴍᴏ ᴠᴇɴᴄᴇ:[§B] [§K14][§T]“Pensando bem, tem um motivo que as pessoas não cantam\n mais músicas romanas...”[§T] 𝐶𝑖𝑛𝑖𝑠𝑚𝑜 ✓.\n \n [§B]𝐷𝑒𝑠𝑐𝑎𝑟𝑡𝑒 𝑒 𝑐𝑜𝑚𝑝𝑟𝑒 𝑛𝑜𝑣𝑎𝑚𝑒𝑛𝑡𝑒 𝑠𝑒 𝑛𝑎̃𝑜 𝑓𝑜𝑟 𝑝𝑎𝑔𝑎̃𝑜.[§B]"},
{"𝟏", "𝕰𝖑𝖔𝖌𝖎𝖔 𝕻𝖆𝖘𝖘𝖆𝖌𝖊𝖎𝖗𝖔", "𝐴 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃ 𝑑𝑎 𝑓𝑒𝑠𝑡𝑎 𝑝𝑎𝑠𝑠𝑎 𝑒 𝑐𝑜𝑚𝑒𝑛𝑡𝑎 𝑠𝑜𝑏𝑟𝑒 𝑠𝑢𝑎 𝑎𝑝𝑎𝑟𝑒̂𝑛𝑐𝑖𝑎.", "[§K14]🎲 [§K1]𝐀𝐏𝐀𝐑𝐄̂𝐍𝐂𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Ela comenta sua boa escolha de cores. (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Ela observa em voz alta como você está bonito esta noite\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Ela te humilha por suas más escolhas de estilo,\n [§T]especialmente[§T] esse cinto. Os anos 490 não vão voltar, amor (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕻𝖆𝖎𝖝𝖆̃𝖔", "𝐷𝑢𝑟𝑎𝑛𝑡𝑒 𝑢𝑚𝑎 𝑐𝑜𝑛𝑣𝑒𝑟𝑠𝑎, 𝑢𝑚 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜 𝑒𝑠𝑝𝑒𝑐𝑖𝑎𝑙𝑚𝑒𝑛𝑡𝑒 𝑑𝑟𝑎𝑚𝑎𝑡𝑖𝑐𝑜 𝑑𝑖𝑧 𝑞𝑢𝑒 𝑙𝘩𝑒\n 𝑓𝑎𝑙𝑡𝑎 𝑝𝑎𝑖𝑥𝑎̃𝑜.", "[§K14]🎲 [§K1]𝐐𝐔𝐀𝐋𝐐𝐔𝐄𝐑 𝐏𝐀𝐈𝐗𝐀̃𝐎 (𝐒𝐔𝐀 𝐄𝐒𝐂𝐎𝐋𝐇𝐀)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você mostra a eles que, de fato, se preocupa profundamente.\n 𝑃𝑎𝑖𝑥𝑎̃𝑜 ✓.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Talvez ele esteja certo. Reduza a 𝑃𝑎𝑖𝑥𝑎̃𝑜 em 1 ponto. Se você estiver\n falando com um cavaleiro (role 1d6: 1-3), você pode [§B]desafiá-lo para um\n duelo[§B]. 𝑂𝑟𝑔𝑢𝑙𝘩𝑜 ✓."},
{"𝟏", "𝕳𝖆𝖇𝖎𝖑𝖎𝖉𝖆𝖉𝖊𝖘 𝖈𝖔𝖒 𝖔 𝕻𝖔𝖛𝖔", "𝐴𝑙𝑔𝑢𝑛𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑐𝑜𝑚 𝑡𝑒𝑟𝑟𝑎𝑠 𝑑𝑖𝑠𝑐𝑢𝑡𝑒𝑚 𝑠𝑜𝑏𝑟𝑒 𝑡𝑒𝑟𝑟𝑎𝑠 𝑒 𝑠𝑒𝑟𝑣𝑜𝑠, 𝑒𝑛𝑡𝑎̃𝑜 𝑝𝑒𝑑𝑒𝑚\n 𝑠𝑢𝑎 𝑜𝑝𝑖𝑛𝑖𝑎̃𝑜.", "[§K14]🎲 [§K1]𝐅𝐎𝐋𝐂𝐋𝐎𝐑𝐄", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Como você é nobre! (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Os servos ouvem você. Na manhã seguinte, você\n encontrará uma garrafa do melhor vinho da casa em seu equipamento\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você é só mais um nobre arrogante, e as notícias vão correr\n entre os plebeus. Perca £1 de colheita nesta [§B]Fase de Inverno[§B], pois eles\n ocultam renda de você.\n \n [§B]𝑃𝑟𝑜𝑝𝑟𝑖𝑒𝑡𝑎𝑟𝑖𝑜𝑠 𝑑𝑒 𝑇𝑒𝑟𝑟𝑎𝑠 𝑎𝑝𝑒𝑛𝑎𝑠; 𝑜𝑢𝑡𝑟𝑜𝑠 𝑑𝑒𝑣𝑒𝑚 𝑠𝑎𝑐𝑎𝑟 𝑛𝑜𝑣𝑎𝑚𝑒𝑛𝑡𝑒.[§B]"},
{"𝟏", "𝖁𝖆𝖑𝖊𝖙 𝕻𝖊𝖘𝖘𝖔𝖆𝖑", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑑𝑖𝑧 𝑞𝑢𝑒 𝑐𝑜𝑛𝑡𝑟𝑎𝑡𝑜𝑢 𝑢𝑚 𝑣𝑎𝑙𝑒𝑡, 𝑚𝑎𝑠 𝑖𝑛𝑓𝑒𝑙𝑖𝑧𝑚𝑒𝑛𝑡𝑒 𝑛𝑎̃𝑜 𝑝𝑜𝑑𝑒 𝑚𝑎𝑖𝑠\n 𝑝𝑎𝑔𝑎𝑟 𝑝𝑒𝑙𝑜 𝑚𝑒𝑛𝑖𝑛𝑜.", "", " [§K14]Você pode contratar o menino como valet, se desejar, por £1 por ano.\n Se você fizer isso, o Valet poderá aumentar sua [§B]ᴀᴘᴘ[§B] temporariamente toda\n vez que o arrumar."},
{"𝟐", "𝕻𝖔𝖕𝖚𝖑𝖆𝖗", "𝑉𝑜𝑐𝑒̂ 𝑒𝑠𝑡𝑎 𝑝𝑜𝑝𝑢𝑙𝑎𝑟 𝑒𝑠𝑡𝑎 𝑛𝑜𝑖𝑡𝑒. 𝑇𝑜𝑑𝑜𝑠 𝑝𝑎𝑟𝑒𝑐𝑒𝑚 𝑎𝑡𝑟𝑎𝑖𝑑𝑜𝑠 𝑝𝑜𝑟 𝑣𝑜𝑐𝑒̂.", "", " [§K14][§B]Fique com esta carta[§B]. Enquanto a tiver, +𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 por rodada.\n \n Se obtiver um sucesso em 𝑂𝑟𝑔𝑢𝑙𝘩𝑜 ou falha em 𝑀𝑜𝑑𝑒𝑠𝑡𝑖𝑎, você deve\n descartar esta carta. A fama subiu à sua cabeça."},
{"𝟏", "𝕮𝖆𝖛𝖆𝖑𝖊𝖎𝖗𝖔𝖘 𝕭𝖗𝖎𝖌𝖔̃𝖊𝖘", "𝐷𝑜𝑖𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑒𝑠𝑡𝑎̃𝑜 𝑑𝑖𝑠𝑐𝑢𝑡𝑖𝑛𝑑𝑜 𝑒 𝑎 𝑠𝑖𝑡𝑢𝑎𝑐̧𝑎̃𝑜 𝑒𝑠𝑡𝑎 𝑓𝑖𝑐𝑎𝑛𝑑𝑜 𝑓𝑜𝑟𝑎 𝑑𝑒 𝑐𝑜𝑛𝑡𝑟𝑜𝑙𝑒.", "[§K14]🎲 [§K1]𝐉𝐔𝐒𝐓𝐈𝐂̧𝐀 𝐕𝐒. 𝐀𝐑𝐁𝐈𝐓𝐑𝐀𝐑𝐈𝐄𝐃𝐀𝐃𝐄", " [§B][§K1]ᴊᴜsᴛɪᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você intervém e os dois cavaleiros aceitam seu julgamento,\n por enquanto (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴀʀʙɪᴛʀᴀʀɪᴇᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Você fica do lado de um cavaleiro. O cavaleiro\n ofendido promete que não vai esquecer a ofensa."},
{"𝟎", "𝕰𝖓𝖏𝖔𝖆𝖉𝖔", "𝑉𝑜𝑐𝑒̂ 𝑠𝑒 𝑠𝑒𝑛𝑡𝑒 𝑒𝑛𝑗𝑜𝑎𝑑𝑜. 𝑀𝑢𝑖𝑡𝑜 𝑒𝑛𝑗𝑜𝑎𝑑𝑜.", "[§K14]🎲 [§K1]𝐂𝐎𝐍𝐒𝐓𝐈𝐓𝐔𝐈𝐂̧𝐀̃𝐎", " [§K14]Você pode [§B]perder uma rodada[§B] para ir tomar um pouco de ar fresco.\n Se você não fizer isso, você deve rolar [§B]ᴄᴏɴ[§B].\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você se sente mal e [§B]deixa o banquete[§B].\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você vomita no corredor e é escoltado para fora pelos\n Stewards para um banho de emergência, [§B]deixando o banquete[§B]\n (–𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕰𝖓𝖏𝖔𝖆𝖉𝖔", "𝑉𝑜𝑐𝑒̂ 𝑠𝑒 𝑠𝑒𝑛𝑡𝑒 𝑒𝑛𝑗𝑜𝑎𝑑𝑜. 𝑀𝑢𝑖𝑡𝑜 𝑒𝑛𝑗𝑜𝑎𝑑𝑜.", "[§K14]🎲 [§K1]𝐂𝐎𝐍𝐒𝐓𝐈𝐓𝐔𝐈𝐂̧𝐀̃𝐎", " [§K14]Você pode [§B]perder uma rodada[§B] para ir tomar um pouco de ar fresco.\n Se você não fizer isso, você deve rolar [§B]ᴄᴏɴ[§B].\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você se sente mal e [§B]deixa o banquete[§B].\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você vomita no corredor e é escoltado para fora pelos\n Stewards para um banho de emergência, [§B]deixando o banquete[§B]\n (–𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕽𝖔𝖒𝖆𝖓𝖈𝖊", "𝐴𝑙𝑔𝑢𝑛𝑠 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜𝑠 𝑐𝑜𝑛𝑣𝑒𝑟𝑠𝑎𝑚 𝑠𝑜𝑏𝑟𝑒 𝑜 𝑎𝑚𝑜𝑟.\n 𝐸𝑙𝑒𝑠 𝑞𝑢𝑒𝑟𝑒𝑚 𝑠𝑎𝑏𝑒𝑟 𝑐𝑜𝑚𝑜 𝑣𝑜𝑐𝑒̂ 𝑐𝑜𝑛𝑞𝑢𝑖𝑠𝑡𝑎𝑟𝑖𝑎 𝑜 𝑐𝑜𝑟𝑎𝑐̧𝑎̃𝑜 𝑑𝑒 𝑢𝑚𝑎 𝑙𝑎𝑑𝑦.", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]As ladies parecem tocadas. Os cavaleiros fazem anotações\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14][§B]Fique com esta carta[§B]. Se você tirar uma carta de teste\n envolvendo uma lady, você pode descartar esta carta para um bônus de +5\n no teste relacionado (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕻𝖔𝖗 𝕾𝖊𝖌𝖚𝖗𝖆𝖓𝖈̧𝖆", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑝𝑒𝑑𝑒 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑔𝑢𝑎𝑟𝑑𝑒 𝑢𝑚𝑎 𝑗𝑜𝑖𝑎 𝑝𝑎𝑟𝑎 𝑒𝑙𝑒.", "[§K14]🎲 [§K1]𝐂𝐎𝐍𝐅𝐈𝐀𝐍𝐂̧𝐀 𝐕𝐒. 𝐃𝐄𝐒𝐂𝐎𝐍𝐅𝐈𝐀𝐍𝐂̧𝐀", " [§B][§K1]ᴄᴏɴғɪᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você faz o que ele pede. 𝐻𝑜𝑛𝑒𝑠𝑡𝑖𝑑𝑎𝑑𝑒 ✓.\n \n [§B][§K1]ᴅᴇsᴄᴏɴғɪᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você não está convencido das boas intenções do\n cavaleiro. Role 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Sua insinuação é um insulto! (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟐", "𝕮𝖔𝖓𝖘𝖊𝖑𝖍𝖔 𝕾𝖆𝖇𝖎𝖔", "𝑂 𝑎𝑛𝑓𝑟𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑏𝑢𝑠𝑐𝑎 𝑠𝑒𝑢 𝑐𝑜𝑛𝑠𝑒𝑙𝘩𝑜 𝑠𝑜𝑏𝑟𝑒 𝑠𝑢𝑎𝑠 𝑟𝑒𝑙𝑎𝑐̧𝑜̃𝑒𝑠 𝑐𝑜𝑚 𝑜𝑢𝑡𝑟𝑜 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜\n 𝑜𝑢 𝑙𝑜𝑟𝑑𝑒, 𝑝𝑜𝑟 𝑎𝑙𝑔𝑢𝑚 𝑚𝑜𝑡𝑖𝑣𝑜.", "[§K14]🎲 [§K1]𝐈𝐍𝐓𝐑𝐈𝐆𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]O anfitrião assente com aprovação ao seu conselho. Para melhor\n ou para pior (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]O Anfitrião fica fascinado por sua perspectiva. Ganhe\n [§T]10 Glória[§T] e o favor do [§B]Anfitrião[§B].\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Ele te corta antes que você passe mais vergonha\n (–𝟺 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟏", "𝕻𝖗𝖆𝖙𝖔 𝕾𝖊𝖈𝖗𝖊𝖙𝖔", "𝑈𝑚 𝑝𝑟𝑎𝑡𝑜 𝑐𝑜𝑚 𝑠𝑢𝑎 𝑐𝑜𝑚𝑖𝑑𝑎 𝑓𝑎𝑣𝑜𝑟𝑖𝑡𝑎 𝑓𝑜𝑖 𝑠𝑒𝑟𝑣𝑖𝑑𝑜 𝑛𝑎𝑠 𝑝𝑟𝑜𝑥𝑖𝑚𝑖𝑑𝑎𝑑𝑒𝑠.", "[§K14]🎲 [§K1]𝐓𝐄𝐌𝐏𝐄𝐑𝐀𝐍𝐂̧𝐀 𝐕𝐒. 𝐈𝐍𝐃𝐔𝐋𝐆𝐄̂𝐍𝐂𝐈𝐀", " [§B][§K1]ᴛᴇᴍᴘᴇʀᴀɴᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você pede que o prato seja trazido até você.\n Todos os jogadores sentados na mesma área que você ganham\n +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒, mais ✓ 𝐿𝑒𝑎𝑙𝑑𝑎𝑑𝑒(𝑂𝑟𝑑𝑒𝑚 𝑑𝑜𝑠 𝐽𝑜𝑔𝑎𝑑𝑜𝑟𝑒𝑠), se houver uma.\n \n [§B][§K1]ɪɴᴅᴜʟɢᴇ̂ɴᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você se enche sozinho. [§B]Perca a próxima rodada[§B]."},
{"𝟎", "𝕬𝖗𝖈𝖔 𝖉𝖊 𝖀𝖑𝖎𝖘𝖘𝖊𝖘", "𝑂𝑢𝑡𝑟𝑜 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑜 𝑑𝑒𝑠𝑎𝑓𝑖𝑎 𝑝𝑎𝑟𝑎 𝑢𝑚 𝐴𝑟𝑐𝑜 𝑑𝑒 𝑈𝑙𝑖𝑠𝑠𝑒𝑠 - 𝑑𝑜𝑏𝑟𝑎𝑟 𝑢𝑚 𝑎𝑟𝑐𝑜 𝑚𝑢𝑖𝑡𝑜\n 𝑔𝑟𝑎𝑛𝑑𝑒 𝑒 𝑑𝑢𝑟𝑜, 𝑝𝑜𝑟 𝑡𝑒𝑚𝑝𝑜 𝑜 𝑏𝑎𝑠𝑡𝑎𝑛𝑡𝑒 𝑝𝑎𝑟𝑎 𝑒𝑠𝑡𝑒𝑛𝑑𝑒𝑟𝑒𝑚 𝑢𝑚𝑎 𝑐𝑜𝑟𝑑𝑎 𝑐𝑢𝑟𝑡𝑎\n 𝑒𝑛𝑡𝑟𝑒 𝑎𝑠 𝑑𝑢𝑎𝑠 𝑝𝑜𝑛𝑡𝑎𝑠.", "[§K14]🎲 [§K1]𝐅𝐎𝐑𝐂̧𝐀 - 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]Para determinar a [§B]ғᴏʀ[§B] do cavaleiro, se desconhecido, role 3d6 + 3.\n Em um empate, role novamente até que alguém ganhe.\n \n [§B][§K1]ᴠᴏᴄᴇ ᴠᴇɴᴄᴇ:[§B] [§K14][§T]10 de Glória[§T].\n \n [§B][§K1]ᴠᴏᴄᴇ ᴏʙᴛᴇᴍ ᴜᴍ sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você derrota o cavaleiro e impressiona\n toda a côrte. [§T]20 Glória[§T] e +5 para qualquer rolagem nesta festa\n (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴇʟᴇ ᴏʙᴛᴇᴍ ᴜᴍ sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Isso vai doer amanhã. Você sofre 1d3 dano."},
{"𝟏", "𝕾𝖊𝖓𝖘𝖆𝖈̧𝖆̃𝖔 𝖉𝖊 𝕮𝖆𝖓𝖙𝖔", "𝑈𝑚 𝑔𝑟𝑢𝑝𝑜 𝑑𝑒 𝑙𝑎𝑑𝑖𝑒𝑠 𝑝𝑒𝑑𝑒 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑡𝑜𝑞𝑢𝑒 𝑢𝑚𝑎 𝑐𝑎𝑛𝑐̧𝑎̃𝑜 𝑑𝑒 𝑎𝑚𝑜𝑟.", "[§K14]🎲 [§K1]𝐓𝐎𝐂𝐀𝐑", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Aceitável. 𝑇𝑜𝑐𝑎𝑟 ✓.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]As ladies aplaudem. 𝑇𝑜𝑐𝑎𝑟 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você canta tão mal que os cachorros uivam (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝖁𝖔𝖈𝖊̂ 𝖓𝖆̃𝖔 𝕰𝖘𝖙𝖆 𝖓𝖔 𝕮𝖑𝖚𝖇𝖊", "𝑉𝑜𝑐𝑒̂ 𝑝𝑒𝑟𝑐𝑒𝑏𝑒 𝑢𝑚 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜 𝑝𝑟𝑒𝑠𝑡𝑒𝑠 𝑎 𝑠𝑒 𝑠𝑒𝑛𝑡𝑎𝑟 𝑎𝑐𝑖𝑚𝑎 𝑑𝑒 𝑠𝑢𝑎 𝑒𝑠𝑡𝑎𝑐̧𝑎̃𝑜.", "[§K14]🎲 [§K1]𝐌𝐈𝐒𝐄𝐑𝐈𝐂𝐎𝐑𝐃𝐈𝐀 𝐕𝐒. 𝐂𝐑𝐔𝐄𝐋𝐃𝐀𝐃𝐄", " [§B][§K1]ᴍɪsᴇʀɪᴄᴏʀᴅɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você aponta o erro antes que ele ocorra.\n 𝑀𝑖𝑠𝑒𝑟𝑖𝑐𝑜𝑟𝑑𝑖𝑎 ✓ (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴄʀᴜᴇʟᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Você espera. 𝐶𝑟𝑢𝑒𝑙𝑑𝑎𝑑𝑒 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕬𝖑𝖌𝖔 𝕭𝖗𝖎𝖑𝖍𝖆𝖓𝖙𝖊", "𝑉𝑜𝑐𝑒̂ 𝑒𝑛𝑐𝑜𝑛𝑡𝑟𝑎 𝑢𝑚𝑎 𝑗𝑜𝑖𝑎 𝑐𝑎𝑟𝑎 𝑛𝑜 𝑐𝘩𝑎̃𝑜.", "[§K14]🎲 [§K1]𝐇𝐎𝐍𝐄𝐒𝐓𝐈𝐃𝐀𝐃𝐄 𝐕𝐒. 𝐌𝐀𝐋𝐈𝐂𝐈𝐀", " [§B][§K1]ʜᴏɴᴇsᴛɪᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Você anuncia sua descoberta e garante que o\n proprietário de verdade foi encontrado (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴍᴀʟɪᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você age rápido e a enfia na sua manga. Ela vale £1.\n Se você devolver mesmo assim, 𝐻𝑜𝑛𝑒𝑠𝑡𝑖𝑑𝑎𝑑𝑒 ✓."},
{"𝟐", "𝕬𝖉𝖒𝖎𝖓𝖎𝖘𝖙𝖗𝖆𝖈̧𝖆̃𝖔", "𝐴𝑙𝑔𝑢𝑛𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑒𝑠𝑡𝑎̃𝑜 𝑓𝑎𝑙𝑎𝑛𝑑𝑜 𝑠𝑜𝑏𝑟𝑒 𝑐𝑜𝑚𝑜 𝑎𝑑𝑚𝑖𝑛𝑖𝑠𝑡𝑟𝑎𝑟\n 𝑠𝑢𝑎𝑠 𝑟𝑒𝑠𝑝𝑒𝑐𝑡𝑖𝑣𝑎𝑠 𝑝𝑟𝑜𝑝𝑟𝑖𝑒𝑑𝑎𝑑𝑒𝑠.", "[§K14]🎲 [§K1]𝐀𝐃𝐌𝐈𝐍𝐈𝐒𝐓𝐑𝐀𝐂̧𝐀̃𝐎 𝐕𝐒 𝐎𝐑𝐀𝐓𝐎𝐑𝐈𝐀", " [§B][§K1]ᴀᴅᴍɪɴɪsᴛʀᴀᴄ̧ᴀ̃ᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Você impressiona os outros com seu conhecimento\n em espremer camponeses. 𝐴𝑑𝑚𝑖𝑛𝑖𝑠𝑡𝑟𝑎𝑐̧𝑎̃𝑜 ✓.\n \n [§B][§K1]ᴏʀᴀᴛᴏʀɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você fala dos grandes campos de cevada e exércitos de\n vacas que te pertencem (não dizendo na útil no processo).\n 𝑂𝑟𝑔𝑢𝑙𝘩𝑜 ✓ (se você for realmente um cavaleiro rico), ou 𝑀𝑎𝑙𝑖𝑐𝑖𝑎 ✓\n (se comum ou pior)."},
{"𝟏", "𝕻𝖊𝖉𝖎𝖉𝖔 𝖉𝖊 𝕳𝖎𝖘𝖙𝖔𝖗𝖎𝖆", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑝𝑒𝑑𝑒 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑐𝑜𝑛𝑡𝑒 𝑢𝑚𝑎 𝘩𝑖𝑠𝑡𝑜𝑟𝑖𝑎 𝑑𝑒 𝑠𝑢𝑎𝑠 𝘩𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒𝑠 𝑜𝑢𝑠𝑎𝑑𝑎𝑠.", "[§K14]🎲 [§K1]𝐎𝐑𝐀𝐓𝐎𝐑𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]A lady gosta de sua história (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Arrebatada, ela toca em sua bochecha (+𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Ela não dá crédito às suas reivindicações (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você faz papel de bobo. Ela ri e depois conta para as\n amigas (–𝟻 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝖁𝖊𝖑𝖍𝖆 𝕰𝖘𝖙𝖗𝖆𝖓𝖍𝖆", "𝑈𝑚𝑎 𝑣𝑒𝑙𝘩𝑎 𝑜𝑙𝘩𝑎 𝑝𝑎𝑟𝑎 𝑣𝑜𝑐𝑒̂ 𝑒 𝑓𝑎𝑙𝑎 𝑒𝑚 𝑣𝑜𝑧 𝑎𝑙𝑡𝑎: “𝑉𝑜𝑐𝑒̂ 𝑡𝑒𝑚 𝑜𝑠 𝑜𝑙𝘩𝑜𝑠 𝑑𝑒\n 𝑢𝑚 𝑠𝑜𝑙𝑑𝑎𝑑𝑜, 𝑎𝑠 𝑚𝑎̃𝑜𝑠 𝑑𝑒 𝑢𝑚 𝑝𝑎𝑠𝑡𝑜𝑟 𝑑𝑒 𝑜𝑣𝑒𝑙𝘩𝑎𝑠 𝑒 𝑎 𝑏𝑜𝑐𝑎 𝑑𝑒 𝑢𝑚 𝑐𝑜𝑚𝑒𝑟𝑐𝑖𝑎𝑛𝑡𝑒”.\n 𝑉𝑜𝑐𝑒̂ 𝑛𝑎̃𝑜 𝑠𝑎𝑏𝑒 𝑜 𝑞𝑢𝑒 𝑠𝑖𝑔𝑛𝑖𝑓𝑖𝑐𝑎 𝑚𝑎𝑠 𝑝𝑎𝑟𝑒𝑐𝑒 𝑢𝑚 𝑒𝑙𝑜𝑔𝑖𝑜.", "[§K14]🎲 [§K1]𝐕𝐀𝐑𝐈𝐀𝐃𝐎", " [§K14]Escolha uma 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 de arma, ou então escolha 𝐹𝑜𝑙𝑐𝑙𝑜𝑟𝑒 ou 𝑂𝑟𝑎𝑡𝑜𝑟𝑖𝑎.\n Role em qualquer 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 que você escolheu. Se for bem-sucedido,\n 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 ✓. Por algum motivo."},
{"𝟐", "𝕬 𝕸𝖊𝖑𝖍𝖔𝖗 𝕬𝖗𝖒𝖆", "𝑈𝑚 𝑔𝑟𝑢𝑝𝑜 𝑑𝑒 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑒𝑠𝑡𝑎̃𝑜 𝑑𝑖𝑠𝑐𝑢𝑡𝑖𝑛𝑑𝑜 𝑠𝑜𝑏𝑟𝑒 𝑠𝑢𝑎𝑠 𝑎𝑟𝑚𝑎𝑠 𝑒\n 𝑒𝑠𝑡𝑖𝑙𝑜𝑠 𝑓𝑎𝑣𝑜𝑟𝑖𝑡𝗈𝑠.", "[§K14]🎲 [§K1]𝐀𝐑𝐌𝐀 (𝐒𝐔𝐀 𝐄𝐒𝐂𝐎𝐋𝐇𝐀)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você sabe do que está falando e pode trocar algumas piadas.\n 𝐻𝑎𝑏𝑖𝑙𝑖𝑑𝑎𝑑𝑒 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você ensina uma coisa nova a eles. Alguns querem um\n duelo amigável com você amanhã (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕺 𝕬𝖓𝖋𝖎𝖙𝖗𝖎𝖆̃𝖔 𝖕𝖊𝖉𝖊 𝖕𝖔𝖗 𝖚𝖒𝖆 𝕯𝖆𝖓𝖈̧𝖆", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑠𝑒 𝑙𝑒𝑣𝑎𝑛𝑡𝑎 𝑒 𝑝𝑒𝑑𝑒 𝑢𝑚𝑎 𝑑𝑎𝑛𝑐̧𝑎.", "[§K14]🎲 [§K1]𝐌𝐄𝐍𝐄𝐒𝐓𝐑𝐄𝐋 - 𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒, 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]O personagem vencedor ganha +𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴘᴀʀᴄɪᴀʟ:[§B] [§K14]+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]+𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒. 𝑀𝑒𝑛𝑒𝑠𝑡𝑟𝑒𝑙 ✓.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você se desculpa e fica em sua mesa, vendo os outros se divertirem.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Você tentou, mas se humilhou no processo (–𝟺 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟏", "𝕺 𝕬𝖓𝖋𝖎𝖙𝖗𝖎𝖆̃𝖔 𝖕𝖊𝖉𝖊 𝖕𝖔𝖗 𝖚𝖒𝖆 𝕮𝖆𝖈̧𝖆", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑝𝑒𝑑𝑒 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑒 𝑠𝑒𝑢𝑠 𝑎𝑚𝑖𝑔𝑜𝑠 𝑠𝑒 𝑗𝑢𝑛𝑡𝑒𝑚 𝑎 𝑒𝑙𝑒\n 𝑒𝑚 𝑢𝑚𝑎 𝑐𝑎𝑐̧𝑎𝑑𝑎 𝑛𝑜 𝑑𝑖𝑎 𝑠𝑒𝑔𝑢𝑖𝑛𝑡𝑒 𝑎𝑜 𝑏𝑎𝑛𝑞𝑢𝑒𝑡𝑒.", "", " [§K14]Qualquer um que concorde em se juntar à caça recebe 𝐶𝑎𝑐̧𝑎 ✓.\n\n Um personagem pode recusar esta oferta, mas sofre -𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟎", "𝕺 𝕬𝖓𝖋𝖎𝖙𝖗𝖎𝖆̃𝖔 𝖕𝖊𝖉𝖊 𝖕𝖔𝖗 𝖚𝖒𝖆 𝕮𝖆𝖓𝖈̧𝖆̃𝖔", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑠𝑒 𝑙𝑒𝑣𝑎𝑛𝑡𝑎 𝑒 𝑐𝘩𝑎𝑚𝑎 𝑡𝑜𝑑𝑜𝑠 𝑝𝑎𝑟𝑎 𝑠𝑒 𝑗𝑢𝑛𝑡𝑎𝑟𝑒𝑚 𝑎 𝑒𝑙𝑒 𝑒𝑚\n 𝑢𝑚𝑎 𝑚𝑢𝑠𝑖𝑐𝑎.", "[§K14]🎲 [§K1]𝐓𝐎𝐂𝐀𝐑 - 𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒, 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]O personagem vencedor ganha +𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴘᴀʀᴄɪᴀʟ:[§B] [§K14]+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]+𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒. 𝑇𝑜𝑐𝑎𝑟 ✓.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você murmura junto, desafinado.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Os outros não tem certeza se um gato foi estrangulado\n dentro de sua garganta ou não (–𝟺 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟎", "𝕺 𝕬𝖓𝖋𝖎𝖙𝖗𝖎𝖆̃𝖔 𝖕𝖊𝖉𝖊 𝖕𝖔𝖗 𝖚𝖒 𝕭𝖗𝖎𝖓𝖉𝖊", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑠𝑒 𝑙𝑒𝑣𝑎𝑛𝑡𝑎 𝑒 𝑝𝑒𝑑𝑒 𝑢𝑚 𝑏𝑟𝑖𝑛𝑑𝑒.", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀 - 𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒, 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]O personagem vencedor ganha +𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴘᴀʀᴄɪᴀʟ:[§B] [§K14]+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]+𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒. 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎 ✓.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você não se passa por um idiota completo.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Outros convidados ficam furiosos com sua impropriedade\n (–𝟺 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟎", "𝕺 𝕬𝖓𝖋𝖎𝖙𝖗𝖎𝖆̃𝖔 𝖕𝖊𝖉𝖊 𝖕𝖔𝖗 𝖚𝖒 𝕭𝖗𝖎𝖓𝖉𝖊", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑠𝑒 𝑙𝑒𝑣𝑎𝑛𝑡𝑎 𝑒 𝑝𝑒𝑑𝑒 𝑢𝑚 𝑏𝑟𝑖𝑛𝑑𝑒.", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀 - 𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒, 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]O personagem vencedor ganha +𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴘᴀʀᴄɪᴀʟ:[§B] [§K14]+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]+𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒. 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎 ✓.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você não se passa por um idiota completo.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Outros convidados ficam furiosos com sua impropriedade\n (–𝟺 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟎", "𝕺 𝕬𝖓𝖋𝖎𝖙𝖗𝖎𝖆̃𝖔 𝖕𝖊𝖉𝖊 𝖕𝖔𝖗 𝖚𝖒 𝕭𝖗𝖎𝖓𝖉𝖊", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑠𝑒 𝑙𝑒𝑣𝑎𝑛𝑡𝑎 𝑒 𝑝𝑒𝑑𝑒 𝑢𝑚 𝑏𝑟𝑖𝑛𝑑𝑒.", "[§K14]🎲 [§K1]𝐂𝐎𝐑𝐓𝐄𝐒𝐈𝐀 - 𝐓𝐎𝐃𝐎𝐒 𝐎𝐒 𝐉𝐎𝐆𝐀𝐃𝐎𝐑𝐄𝐒 𝐕𝐎𝐋𝐔𝐍𝐓𝐀𝐑𝐈𝐎𝐒, 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]O personagem vencedor ganha +𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴘᴀʀᴄɪᴀʟ:[§B] [§K14]+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]+𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒. 𝐶𝑜𝑟𝑡𝑒𝑠𝑖𝑎 ✓.\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você não se passa por um idiota completo.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Outros convidados ficam furiosos com sua impropriedade\n (–𝟺 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟏", "𝕺 𝕬𝖓𝖋𝖎𝖙𝖗𝖎𝖆̃𝖔 𝕻𝖆𝖘𝖘𝖆", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑝𝑎𝑠𝑠𝑎 𝑒 𝑓𝑎𝑙𝑎 𝑐𝑜𝑚 𝑣𝑜𝑐𝑒̂ 𝑠𝑜𝑏𝑟𝑒 𝑢𝑚 𝑎𝑠𝑠𝑢𝑛𝑡𝑜 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑎𝑑𝑜𝑟𝑎.", "[§K14]🎲 [§K1]𝐒𝐔𝐀 𝐏𝐀𝐈𝐗𝐀̃𝐎 𝐌𝐀𝐈𝐒 𝐅𝐎𝐑𝐓𝐄 (𝐄𝐒𝐂𝐎𝐋𝐇𝐀 𝐒𝐄 𝐄𝐌𝐏𝐀𝐓𝐀𝐃𝐀𝐒)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Bem colocado! (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Todos na mesa estão impressionados (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você e o anfitrião concordam em discordar (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]O anfitrião pede graciosamente que você cale a boca\n (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟏", "𝕺 𝕬𝖓𝖋𝖎𝖙𝖗𝖎𝖆̃𝖔 𝕻𝖆𝖘𝖘𝖆", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑝𝑎𝑠𝑠𝑎 𝑒 𝑓𝑎𝑙𝑎 𝑐𝑜𝑚 𝑣𝑜𝑐𝑒̂ 𝑠𝑜𝑏𝑟𝑒 𝑢𝑚 𝑎𝑠𝑠𝑢𝑛𝑡𝑜 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑎𝑑𝑜𝑟𝑎.", "[§K14]🎲 [§K1]𝐒𝐔𝐀 𝐏𝐀𝐈𝐗𝐀̃𝐎 𝐌𝐀𝐈𝐒 𝐅𝐎𝐑𝐓𝐄 (𝐄𝐒𝐂𝐎𝐋𝐇𝐀 𝐒𝐄 𝐄𝐌𝐏𝐀𝐓𝐀𝐃𝐀𝐒)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Bem colocado! (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Todos na mesa estão impressionados (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você e o anfitrião concordam em discordar (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]O anfitrião pede graciosamente que você cale a boca\n (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟎", "𝕺 𝕬𝖓𝖋𝖎𝖙𝖗𝖎𝖆̃𝖔 𝕱𝖆𝖑𝖆 𝕰𝖝𝖙𝖊𝖓𝖘𝖆𝖒𝖊𝖓𝖙𝖊", "𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑠𝑒 𝑙𝑒𝑣𝑎𝑛𝑡𝑎 𝑒 𝑓𝑎𝑙𝑎 𝑠𝑜𝑏𝑟𝑒 𝑜 𝑎𝑚𝑏𝑖𝑒𝑛𝑡𝑒 𝑝𝑜𝑙𝑖𝑡𝑖𝑐𝑜 𝑎𝑡𝑢𝑎𝑙.", "[§K14]🎲 [§K1]𝐄𝐍𝐄𝐑𝐆𝐈𝐀 𝐕𝐒. 𝐏𝐑𝐄𝐆𝐔𝐈𝐂̧𝐀", " [§B][§K1]ᴇɴᴇʀɢɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você ouve com atenção. Role 𝐼𝑛𝑡𝑟𝑖𝑔𝑎.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você tem um vislumbre do que está por vir. Ganhe +5 em\n 𝐼𝑛𝑡𝑟𝑖𝑔𝑎 pelo resto do banquete.\n \n [§B][§K1]ᴘʀᴇɢᴜɪᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você rola os olhos e volta a comer. 𝑃𝑟𝑒𝑔𝑢𝑖𝑐̧𝑎 ✓.\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟏", "𝕬𝖍... 𝕰𝖑𝖆?", "𝐴 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃ 𝑝𝑟𝑒𝑐𝑖𝑠𝑎 𝑑𝑒 𝑎𝑗𝑢𝑑𝑎 𝑒𝑚 𝑠𝑒𝑢𝑠 𝑝𝑟𝑜𝑏𝑙𝑒𝑚𝑎𝑠 𝑐𝑜𝑚 𝑜𝑢𝑡𝑟𝑎 𝑙𝑎𝑑𝑦.\n 𝑃𝑜𝑟 𝑎𝑙𝑔𝑢𝑚 𝑚𝑜𝑡𝑖𝑣𝑜, 𝑒𝑙𝑎 𝑒𝑠𝑐𝑜𝑙𝘩𝑒𝑢 𝑝𝑒𝑟𝑔𝑢𝑛𝑡𝑎𝑟 𝑎 𝑢𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜.", "[§K14]🎲 [§K1]𝐈𝐍𝐓𝐑𝐈𝐆𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]A anfitriã concorda com o seu conselho (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]A anfitriã está impressionada com sua habilidade.\n 𝐼𝑛𝑡𝑟𝑖𝑔𝑎 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]De algum jeito você conseguiu tomar o partido daquela vadia.\n Ela olha furiosamente para você e se afasta (–𝟻 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟎", "𝕺 𝕸𝖊𝖗𝖈𝖆𝖉𝖔𝖗 𝖉𝖊 𝖁𝖊𝖓𝖊𝖓𝖔", "𝑂 𝑏𝑜𝑏𝑜 𝑑𝑎 𝑐𝑜̂𝑟𝑡𝑒 𝑜𝑢 𝑎𝑛𝑎̃𝑜 𝑟𝑒𝑠𝑖𝑑𝑒𝑛𝑡𝑒 𝑒𝑠𝑐𝑜𝑙𝘩𝑒𝑢 𝑣𝑜𝑐𝑒̂ 𝑝𝑎𝑟𝑎 𝑠𝑎𝑡𝑖𝑟𝑖𝑧𝑎𝑟.", "[§K14]🎲 [§K1]𝐌𝐎𝐃𝐄𝐒𝐓𝐈𝐀 𝐕𝐒. 𝐎𝐑𝐆𝐔𝐋𝐇𝐎", " [§B][§K1]ᴍᴏᴅᴇsᴛɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você ri junto com todos os outros (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ (ᴍᴏᴅᴇsᴛɪᴀ):[§B] [§K14]Você dá uma réplica para o bobo da côrte\n que faz os outros rirem, e ele ir irritar outra pessoa. (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴏʀɢᴜʟʜᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Seu constrangimento está claro para todos verem\n (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ (ᴏʀɢᴜʟʜᴏ):[§B] [§K14]Você não consegue se conter e dá um murro\n no bobo da côrte, derrubando-o no chão enquanto o salão cai em um\n silêncio constrangedor (–𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕬𝖖𝖚𝖊𝖑𝖊𝖘 𝕭𝖆𝖓𝖉𝖎𝖉𝖔𝖘", "𝑈𝑚 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑙𝑜𝑐𝑎𝑙 𝑚𝑒𝑛𝑐𝑖𝑜𝑛𝑎 𝑡𝑒𝑟 𝑝𝑟𝑜𝑏𝑙𝑒𝑚𝑎𝑠 𝑐𝑜𝑚 𝑏𝑎𝑛𝑑𝑖𝑑𝑜𝑠.", "[§K14]🎲 [§K1]𝐂𝐀𝐂̧𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você discute o problema longamente e ele fica feliz com seu\n conselho. 𝐶𝑎𝑐̧𝑎 ✓.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você lhe dá alguns bons conselhos e ele pede que você\n o ajude com o assunto nos dias seguintes à festa. 𝐶𝑎𝑐̧𝑎 ✓ (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕿𝖊𝖒𝖕𝖔 𝕻𝖆𝖗𝖆 𝕻𝖆𝖗𝖙𝖎𝖑𝖍𝖆𝖗", "𝑉𝑜𝑐𝑒̂ 𝑓𝑜𝑖 𝑎𝑡𝑖𝑛𝑔𝑖𝑑𝑜 𝑝𝑜𝑟 𝑢𝑚 𝑟𝑎𝑖𝑜 𝑑𝑒 𝑏𝑜𝑎 𝑣𝑜𝑛𝑡𝑎𝑑𝑒. 𝐷𝑒 𝑟𝑒𝑝𝑒𝑛𝑡𝑒, 𝑠𝑒𝑢𝑠 𝑎𝑠𝑠𝑢𝑛𝑡𝑜𝑠\n 𝑝𝑎𝑟𝑒𝑐𝑒𝑚 𝑠𝑒𝑚 𝑖𝑚𝑝𝑜𝑟𝑡𝑎̂𝑛𝑐𝑖𝑎 𝑒 𝑣𝑜𝑐𝑒̂ 𝑞𝑢𝑒𝑟 𝑞𝑢𝑒 𝑠𝑒𝑢𝑠 𝑎𝑚𝑖𝑔𝑜𝑠 𝑠𝑒 𝑑𝑖𝑣𝑖𝑟𝑡𝑎𝑚.", "", " [§K14][§B]Fique com esta carta.[§B] Sempre que você comprar uma carta durante este\n banquete, você pode dá-la a outro jogador.\n \n Para cada carta distribuída, +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒.\n \n Se você não distribuir nenhuma carta dessa maneira até o final da festa,\n 𝐸𝑔𝑜𝑖𝑠𝑚𝑜 ✓."},
{"𝟎", "𝕮𝖆𝖓𝖘𝖆𝖉𝖔", "𝑉𝑜𝑐𝑒̂ 𝑠𝑒 𝑠𝑒𝑛𝑡𝑒 𝑒𝑥𝑎𝑢𝑠𝑡𝑜 𝑒 𝑝𝑒𝑛𝑠𝑎 𝑒𝑚 𝑠𝑒 𝑟𝑒𝑡𝑖𝑟𝑎𝑟.", "[§K14]🎲 [§K1]𝐄𝐍𝐄𝐑𝐆𝐈𝐀 𝐕𝐒. 𝐏𝐑𝐄𝐆𝐔𝐈𝐂̧𝐀", " [§K14][§B]Fique com esta carta.[§B] A cada rodada, jogue 𝐸𝑛𝑒𝑟𝑔𝑖𝑎 vs. 𝑃𝑟𝑒𝑔𝑢𝑖𝑐̧𝑎.\n \n [§B][§K1]ᴇɴᴇʀɢɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você reúne resistência para ficar por mais uma rodada.\n \n [§B][§K1]ᴘʀᴇɢᴜɪᴄ̧ᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Haverá outras oportunidades para comer e beber em\n companhia. Você se despede e [§B]parte do banquete[§B]."},
{"𝟏", "𝕯𝖆𝖒𝖆 𝕬𝖈𝖆𝖓𝖍𝖆𝖉𝖆", "𝑉𝑜𝑐𝑒̂ 𝑝𝑒𝑟𝑐𝑒𝑏𝑒 𝑢𝑚𝑎 𝑗𝑜𝑣𝑒𝑚 𝑙𝑎𝑑𝑦 𝑡𝑖𝑚𝑖𝑑𝑎 𝑠𝑒𝑛𝑡𝑎𝑑𝑎 𝑠𝑜𝑧𝑖𝑛𝘩𝑎.", "[§K14]🎲 [§K1]𝐄𝐍𝐓𝐑𝐄𝐓𝐄𝐍𝐈𝐌𝐄𝐍𝐓𝐎", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]A lady solitária agradece sua atenção, mas insiste que prefere\n ficar sozinha. Foi alguma coisa que você disse? 𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜 ✓.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]A lady vê em você um semelhante e fica com você até que\n você seja chamado (ao sacar uma carta de [§B]Anfitrião[§B] ou ser forçado a partir).\n [§B]Fique com esta carta[§B]. +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 (por rodada).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Gente como você é o motivo dela querer ficar sozinha\n (–𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕬𝖛𝖊𝖓𝖙𝖚𝖗𝖆𝖘 𝖓𝖆 𝕯𝖎𝖘𝖕𝖊𝖓𝖘𝖆", "𝑂𝑢𝑡𝑟𝑜 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑒𝑠𝑡𝑎 𝑝𝑟𝑜𝑐𝑢𝑟𝑎𝑛𝑑𝑜 𝑠𝑢𝑎 𝑒𝑠𝑝𝑜𝑠𝑎 — 𝑞𝑢𝑒 𝑎𝑐𝑎𝑏𝑜𝑢 𝑑𝑒 𝑠𝑒 𝑎𝑓𝑎𝑠𝑡𝑎𝑟,\n 𝑑𝑒𝑝𝑜𝑖𝑠 𝑑𝑒 𝑓𝑎𝑧𝑒𝑟 𝑢𝑚𝑎 𝑝𝑟𝑜𝑝𝑜𝑠𝑡𝑎 𝑝𝑎𝑟𝑎 𝑣𝑜𝑐𝑒̂.", "[§K14]🎲 [§K1]𝐇𝐎𝐍𝐄𝐒𝐓𝐈𝐃𝐀𝐃𝐄 𝐕𝐒 𝐌𝐀𝐋𝐈𝐂𝐈𝐀", " [§B][§K1]ʜᴏɴᴇsᴛɪᴅᴀᴅᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Você guia o cavaleiro até sua esposa. Ganhe o\n agradecimento do cavaleiro (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴍᴀʟɪᴄɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você não diz nada ao cavaleiro. Você pode optar por\n [§B]perder a próxima rodada[§B] do banquete. Se você fizer isso, 𝐿𝑢𝑥𝑢𝑟𝑖𝑎 ✓.\n Role 𝑁𝑎𝑠𝑐𝑖𝑚𝑒𝑛𝑡𝑜 𝑑𝑒 𝐶𝑟𝑖𝑎𝑛𝑐̧𝑎 nesta [§B]Fase de Inverno[§B]."},
{"𝟏", "𝕭𝖊𝖒 𝖁𝖊𝖘𝖙𝖎𝖉𝖔", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑝𝑎𝑠𝑠𝑎 𝑒 𝑐𝑜𝑚𝑒𝑛𝑡𝑎 𝑠𝑜𝑏𝑟𝑒 𝑠𝑢𝑎𝑠 𝑟𝑜𝑢𝑝𝑎𝑠.", "[§K14]🎲 [§K1]𝐀𝐏𝐀𝐑𝐄̂𝐍𝐂𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Ela observa sua escolha de padrões. [§B]ᴀᴘᴘ[§B] ✓.\n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Ela passa um tempo conversando com você sobre\n suas roupas. [§B]ᴀᴘᴘ[§B] ✓. Você pode escolher 𝐸𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝑖𝑚𝑒𝑛𝑡𝑜 ✓ em vez disso.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]A visão das suas roupas deixou ela tão revoltada que ela\n precisou cruzar o salão para te dizer. (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕼𝖚𝖊𝖒 𝖊 𝖁𝖔𝖈𝖊̂?", "𝑈𝑚𝑎 𝑙𝑎𝑑𝑦 𝑑𝑒𝑠𝑐𝑜𝑛𝘩𝑒𝑐𝑖𝑑𝑎 𝑝𝑒𝑑𝑒 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑎 𝑒𝑛𝑡𝑟𝑒𝑡𝑒𝑛𝘩𝑎 𝑑𝑢𝑟𝑎𝑛𝑡𝑒 𝑜 𝑏𝑎𝑛𝑞𝑢𝑒𝑡𝑒.", "[§K14]🎲 [§K1]𝐑𝐄𝐂𝐎𝐍𝐇𝐄𝐂𝐈𝐌𝐄𝐍𝐓𝐎", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você vê que ela é uma lady importante disfarçada. Role 𝐼𝑛𝑡𝑟𝑖𝑔𝑎.\n \n [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14][§T]10 Glória[§T] por manter o segredo dela.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Ela está irritada por você ter estragado o disfarce dela\n (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟏", "𝕼𝖚𝖊𝖒 𝖊𝖗𝖆 𝕰𝖑𝖊?", "𝑂 𝑡𝑒𝑑𝑖𝑜 𝑑𝑜 𝑏𝑎𝑛𝑞𝑢𝑒𝑡𝑒 𝑡𝑒 𝑙𝑒𝑣𝑎 𝑝𝑜𝑟 𝑐𝑎𝑚𝑖𝑛𝘩𝑜𝑠 𝑒𝑠𝑡𝑟𝑎𝑛𝘩𝑜𝑠, 𝑒 𝑣𝑜𝑐𝑒̂ 𝑎𝑐𝑎𝑏𝑎\n 𝑑𝑖𝑠𝑐𝑢𝑡𝑖𝑛𝑑𝑜 𝑐𝑜𝑚 𝑜𝑢𝑡𝑟𝑜 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜 𝑠𝑜𝑏𝑟𝑒 𝑞𝑢𝑒𝑚 𝑒 𝑜 𝑛𝑜𝑣𝑜 𝑐𝑜𝑛𝑣𝑖𝑑𝑎𝑑𝑜 𝑞𝑢𝑒 𝑎𝑐𝑎𝑏𝑜𝑢\n 𝑑𝑒 𝑐𝘩𝑒𝑔𝑎𝑟.", "[§K14]🎲 [§K1]𝐑𝐄𝐂𝐎𝐍𝐇𝐄𝐂𝐈𝐌𝐄𝐍𝐓𝐎 - 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]Para determinar o 𝑅𝑒𝑐𝑜𝑛𝘩𝑒𝑐𝑖𝑚𝑒𝑛𝑡𝑜 do cavaleiro, se desconhecido,\n role 1d6 + 5.\n \n [§B][§K1]ᴠᴏᴄᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Você identifica o cavaleiro antes dele. Parabéns.\n 𝑅𝑒𝑐𝑜𝑛𝘩𝑒𝑐𝑖𝑚𝑒𝑛𝑡𝑜 ✓.\n \n [§B][§K1]ᴠᴏᴄᴇ ᴠᴇɴᴄᴇ (sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ):[§B] [§K14]Olha só, era alguém interessante para variar!\n (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴇʟᴇ ᴠᴇɴᴄᴇ:[§B] [§K14]Você erra completamente. Que pena, eu acho. (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕯𝖊𝖘𝖌𝖗𝖆𝖈̧𝖆𝖘 𝕮𝖔𝖓𝖏𝖚𝖌𝖆𝖎𝖘", "𝑆𝑢𝑎 𝑒𝑠𝑝𝑜𝑠𝑎 𝑠𝑒 𝑠𝑒𝑛𝑡𝑒 𝑐𝑎𝑛𝑠𝑎𝑑𝑎 𝑒 𝑑𝑖𝑧 𝑞𝑢𝑒 𝑞𝑢𝑒𝑟 𝑖𝑟 𝑒𝑚𝑏𝑜𝑟𝑎.", "[§K14]🎲 [§K1]𝐌𝐈𝐒𝐄𝐑𝐈𝐂𝐎𝐑𝐃𝐈𝐀 𝐕𝐒. 𝐄𝐆𝐎𝐈𝐒𝐌𝐎", " [§B][§K1]ᴍɪsᴇʀɪᴄᴏʀᴅɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você se despede e parte do banquete. Ela te agradece\n na saída. 𝐴𝑚𝑜𝑟(𝐸𝑠𝑝𝑜𝑠𝑎) ✓.\n \n [§B][§K1]ᴇɢᴏɪsᴍᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Você fica, mas sua esposa está entediada. (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B]𝐴𝑝𝑒𝑛𝑎𝑠 𝑐𝑎𝑠𝑎𝑑𝑜𝑠; 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑠𝑜𝑙𝑡𝑒𝑖𝑟𝑜𝑠 𝑑𝑒𝑣𝑒𝑚 𝑠𝑎𝑐𝑎𝑟 𝑛𝑜𝑣𝑎𝑚𝑒𝑛𝑡𝑒[§B]."},
{"𝟎", "𝕵𝖔𝖛𝖊𝖓𝖘 𝕱𝖆𝖓𝖋𝖆𝖗𝖗𝖔̃𝖊𝖘", "𝑈𝑚 𝑔𝑟𝑢𝑝𝑜 𝑑𝑒 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑗𝑜𝑣𝑒𝑛𝑠 𝑒𝑠𝑡𝑎 𝑔𝑟𝑖𝑡𝑎𝑛𝑑𝑜 𝑠𝑒𝑢𝑠 𝑓𝑒𝑖𝑡𝑜𝑠 𝑢𝑚 𝑝𝑎𝑟𝑎 𝑜 𝑜𝑢𝑡𝑟𝑜\n 𝑒𝑚 𝑣𝑜𝑧𝑒𝑠 𝑐𝑎𝑑𝑎 𝑣𝑒𝑧 𝑚𝑎𝑖𝑠 𝑎𝑙𝑡𝑎𝑠.", "[§K14]🎲 [§K1]𝐎𝐑𝐆𝐔𝐋𝐇𝐎", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você conta alguns de seus feitos e eles lhe dão outra bebida.\n Você ainda não está tão velho, olha só! (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Os cavaleiros riem de suas ideias ridículas e continuam sem você\n (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
-- THIRTEEN
{"𝟎", "𝕱𝖑𝖊𝖈𝖍𝖆, 𝕰𝖓𝖈𝖔𝖓𝖙𝖗𝖊 𝖘𝖊𝖚 𝕬𝖑𝖛𝖔", "𝐴𝑙𝑔𝑢𝑛𝑠 𝑗𝑜𝑣𝑒𝑛𝑠 𝑐𝑎𝑣𝑎𝑙𝑒𝑖𝑟𝑜𝑠 𝑒𝑠𝑡𝑎̃𝑜 𝑑𝑖𝑠𝑝𝑢𝑡𝑎𝑛𝑑𝑜 𝑞𝑢𝑒𝑚 𝑒 𝑜 𝑚𝑒𝑙𝘩𝑜𝑟 𝑑𝑒 𝑚𝑖𝑟𝑎 𝑐𝑜𝑚\n 𝑢𝑚 𝑎𝑟𝑐𝑜. 𝐸𝑙𝑒𝑠 𝑝𝑒𝑑𝑒𝑚 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑡𝑒𝑛𝑡𝑒 𝑠𝑢𝑎 𝑚𝑎̃𝑜.", "[§K14]🎲 [§K1]𝐀𝐑𝐂𝐎 𝐕𝐒. 𝟏𝐃𝟔 𝐂𝐀𝐕𝐀𝐋𝐄𝐈𝐑𝐎𝐒 - 𝐑𝐎𝐋𝐀𝐆𝐄𝐌 𝐎𝐏𝐎𝐒𝐓𝐀", " [§K14]Para determinar o valor de 𝐴𝑟𝑐𝑜 de cada cavaleiro, se desconhecido,\n role 2d6 + 3.\n \n Ganhe +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 para cada cavaleiro que você derrotar, mais\n +𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒 adicional se você vencer todos eles."},
{"𝟏", "𝕸𝖆𝖗𝖆𝖛𝖎𝖑𝖍𝖆𝖘 𝕲𝖆𝖘𝖙𝖗𝖔𝖓𝖔̂𝖒𝖎𝖈𝖆𝖘", "𝑂𝑠 𝑝𝑟𝑎𝑡𝑜𝑠 𝑝𝑟𝑖𝑛𝑐𝑖𝑝𝑎𝑖𝑠 𝑠𝑎̃𝑜 𝑠𝑒𝑟𝑣𝑖𝑑𝑜𝑠 𝑑𝑒 𝑚𝑎𝑛𝑒𝑖𝑟𝑎 𝑡𝑒𝑎𝑡𝑟𝑎𝑙! 𝑈𝑚𝑎 𝑡𝑜𝑟𝑡𝑎 𝑒𝑛𝑜𝑟𝑚𝑒\n 𝑐𝘩𝑒𝑔𝑎, 𝑐𝑎𝑟𝑟𝑒𝑔𝑎𝑑𝑎 𝑝𝑜𝑟 𝑢𝑚 𝑔𝑎𝑟𝑜𝑡𝑜 𝑚𝑜𝑛𝑡𝑎𝑑𝑜 𝑛𝑢𝑚 𝑐𝑒𝑟𝑣𝑜 𝑏𝑟𝑎𝑛𝑐𝑜. 𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜\n 𝑝𝑒𝑑𝑒 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑐𝑜𝑟𝑡𝑒 𝑎 𝑡𝑜𝑟𝑡𝑎.", "[§K14]🎲 [§K1]𝐀𝐓𝐄𝐍𝐂̧𝐀̃𝐎", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você nota que há algo se mexendo na torta e a corta\n delicadamente, revelando pombos ainda vivos que saem voando!\n (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Você começa um golpe descuidado mas é interrompido bem\n a tempo (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]As ladies ao redor ficam chocadas conforme você mata\n metade das aves num golpe só (–𝟹 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒). Você não pode jogar\n nenhuma carta de [§B]Anfitrião[§B] até o final do banquete.\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;"},
{"𝟎", "𝕮𝖆𝖛𝖆𝖑𝖊𝖎𝖗𝖔𝖘 𝖊𝖒 𝕵𝖚𝖘𝖙𝖆", "𝑉𝑜𝑐𝑒̂ 𝑠𝑒 𝑒𝑠𝑞𝑢𝑒𝑐𝑒𝑢 𝑑𝑒 𝑎𝑙𝑔𝑜 𝑛𝑜 𝑎𝑙𝑓𝑜𝑟𝑔𝑒 𝑑𝑒 𝑠𝑒𝑢 𝑐𝑎𝑣𝑎𝑙𝑜.\n 𝐴𝑜 𝑐𝘩𝑒𝑔𝑎𝑟 𝑛𝑜 𝑒𝑠𝑡𝑎𝑏𝑢𝑙𝑜, 𝑣𝑜𝑐𝑒̂ 𝑜𝑢𝑣𝑒 𝑏𝑎𝑟𝑢𝑙𝘩𝑜𝑠 𝑒𝑠𝑡𝑟𝑎𝑛𝘩𝑜𝑠.", "[§K14]🎲 [§K1]𝐃𝐄𝐒𝐓𝐑𝐄𝐙𝐀 (𝐂𝐎𝐌 -𝟑)", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você se aproxima silenciosamente e encontra dois jovens\n cavaleiros se arrumando apressadamente. Role 𝑀𝑖𝑠𝑒𝑟𝑖𝑐𝑜𝑟𝑑𝑖𝑎 vs. 𝐸𝑔𝑜𝑖𝑠𝑚𝑜.\n \n [§B][§K1]ᴍɪsᴇʀɪᴄᴏʀᴅɪᴀ ᴠᴇɴᴄᴇ:[§B] [§K14]Você finge não ver nada e guarda o segredo deles.\n (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ᴇɢᴏɪsᴍᴏ ᴠᴇɴᴄᴇ:[§B] [§K14]Você extorque £1 dos dois cavaleiros em troca de seu\n silêncio. 𝐸𝑔𝑜𝑖𝑠𝑚𝑜 ✓, 𝐶𝑟𝑢𝑒𝑙𝑑𝑎𝑑𝑒 ✓. Se mesmo assim você preferir manter\n seu silêncio, você pode abrir mão do dinheiro e marcas e ganhar\n 𝑀𝑖𝑠𝑒𝑟𝑖𝑐𝑜𝑟𝑑𝑖𝑎 ✓ ao invés disso."},
-- ANDRAKIAN
{"𝟎", "𝕭𝖔𝖔!", "𝑈𝑚 𝑔𝑟𝑢𝑝𝑜 𝑑𝑒 𝑐𝑟𝑖𝑎𝑛𝑐̧𝑎𝑠 𝑡𝑒 𝑝𝑒𝑑𝑒 𝑞𝑢𝑒 𝑐𝑜𝑛𝑡𝑒 𝑎𝑙𝑔𝑢𝑚𝑎 𝑝𝑎𝑟𝑡𝑒 𝑎𝑠𝑠𝑢𝑠𝑡𝑎𝑑𝑜𝑟𝑎 𝑑𝑒\n 𝑠𝑢𝑎𝑠 𝑣𝑖𝑎𝑔𝑒𝑛𝑠.", "[§K14]🎲 [§K1]𝐄𝐄𝐑𝐈𝐄", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você costura alguns pedaços de histórias reais em alguma coisa\n que elas vão gostar. Elas graças a Deus te deixam em paz depois\n (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14] Elas te vaiam. Uma delas chuta sua canela e te chama de\n [§T]“um mentiroso e um falso nobre, boa noite, meu senhor![§T]” (–𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒). \n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]Você não devia ter colocado tantos detalhes. Elas estão\n correndo e chorando, e a mãe de uma delas olha feio para você\n (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒)."},
{"𝟎", "𝕼𝖚𝖊𝖎𝖒𝖆𝖉𝖔", "𝐷𝑢𝑎𝑠 𝑐𝑟𝑖𝑎𝑑𝑎𝑠 𝑢𝑚 𝑝𝑜𝑢𝑐𝑜 𝑏𝑒̂𝑏𝑎𝑑𝑎𝑠 𝑒𝑠𝑡𝑎̃𝑜 𝑏𝑟𝑖𝑔𝑎𝑛𝑑𝑜 𝑛𝑜 𝑚𝑒𝑖𝑜 𝑑𝑎 𝑐𝑜𝑧𝑖𝑛𝘩𝑎.\n 𝑆𝑒 𝑖𝑠𝑠𝑜 𝑠𝑒 𝑒𝑠𝑝𝑎𝑙𝘩𝑎𝑟, 𝑎 𝑐𝑜𝑧𝑖𝑛𝘩𝑎 𝑝𝑜𝑑𝑒 𝑠𝑎𝑖𝑟 𝑑𝑜 𝑐𝑜𝑛𝑡𝑟𝑜𝑙𝑒 𝑒 𝑜 𝑏𝑎𝑛𝑞𝑢𝑒𝑡𝑒 𝑣𝑎𝑖\n 𝑎𝑓𝑢𝑛𝑑𝑎𝑟.", "[§K14]🎲 [§K1]𝐎𝐑𝐀𝐓𝐎𝐑𝐈𝐀", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você consegue separar as duas com a ajuda das cozinheiras.\n A festa está salva... por enquanto (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n Role [§B]ᴀᴘᴘ[§B] -𝟻. Em um sucesso, elas estavam brigando sobre quem ia te servir\n e você três são empurrados na direção do estábulo pelo resto dos servos\n para sair do caminho deles. [§B]Deixe o banquete.[§B]\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14] Elas te ignoram, mas as outras criadas eventualmente separam\n as duas à força. Pelo menos você aprendeu alguns insultos novos!\n 𝑉𝑎𝑑𝑖𝑎𝑔𝑒𝑚 ✓"},
{"𝟏", "𝕯𝖊𝖘𝖆𝖘𝖙𝖗𝖊!", "𝑃𝑎̂𝑛𝑖𝑐𝑜! 𝐷𝑒𝑠𝑎𝑠𝑡𝑟𝑒! 𝐷𝑖𝑒𝑠 𝐼𝑟𝑎𝑒! 𝑂𝘩 𝑚𝑢𝑟𝑜𝑠 𝑣𝑎𝑧𝑖𝑜𝑠 𝑑𝑒 𝑇𝑟𝑜𝑖𝑎, 𝑜𝘩 𝐷𝑦𝑠 𝑠𝑜𝑏\n 𝑜 𝑜𝑐𝑒𝑎𝑛𝑜, 𝑜𝘩 𝐼𝑟𝑒𝑚 𝑑𝑜𝑠 𝑃𝑖𝑙𝑎𝑟𝑒𝑠! 𝑂 𝑠𝑒𝑛𝑒𝑠𝑐𝑎𝑙 𝑒𝑟𝑟𝑜𝑢 𝑎𝑠 𝑐𝑜𝑛𝑡𝑎𝑠 𝑒 𝑜 𝑣𝑖𝑛𝘩𝑜 𝑎𝑐𝑎𝑏𝑜𝑢.\n 𝑂 𝑎𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜 𝑞𝑢𝑒𝑟 𝑞𝑢𝑒 𝑣𝑜𝑐𝑒̂ 𝑓𝑎𝑐̧𝑎 𝑎𝑙𝑔𝑜 𝑎 𝑟𝑒𝑠𝑝𝑒𝑖𝑡𝑜 𝑟𝑎𝑝𝑖𝑑𝑜.", "[§K14]🎲 [§K1]𝐀𝐃𝐌𝐈𝐍𝐈𝐒𝐓𝐑𝐀𝐂̧𝐀̃𝐎 𝐎𝐔 𝐕𝐀𝐃𝐈𝐀𝐆𝐄𝐌", " [§B][§K1]sᴜᴄᴇssᴏ:[§B] [§K14]Você faz uma visita noturna à casa do mercador de vinho e salva\n o banquete (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒). O vinho custa £2, você pode ser reembolsado\n pelo anfitrião depois ou ganhar 𝐺𝑒𝑛𝑒𝑟𝑜𝑠𝑖𝑑𝑎𝑑𝑒 ✓.\n \n Se você usou 𝑉𝑎𝑑𝑖𝑎𝑔𝑒𝑚, ele veio de um mercador duvidoso e tem aditivos\n para render mais. Role 1d4. [§K1][§B]𝟣-𝟥:[§B][§K14] Os convidados estão estranhamente felizes\n e rindo um pouco demais (+𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒). [§K1][§B]𝟦:[§B][§K14] Metade da festa está\n passando mal, mas você aprendeu algo sobre venenos.\n 𝐼𝑛𝑡𝑟𝑖𝑔𝑎 ✓ (–𝟷 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒). \n \n [§B][§K1]sᴜᴄᴇssᴏ ᴄʀɪᴛɪᴄᴏ:[§B] [§K14]O seu anfitrião está tão emocionado que ele te\n parabeniza publicamente na frente dos convidados (+𝟸 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n [§B][§K1]ғᴀʟʜᴀ:[§B] [§K14]Sem mais álcool, infelizmente o [§B]banquete acaba[§B] mais cedo.\n \n [§B][§K1]ғᴀʟʜᴀ ᴄʀɪᴛɪᴄᴀ:[§B] [§K14]Todo mundo está correndo para os banheiros. O [§B]banquete\n acabou[§B] mais cedo, [§T]e é culpa sua![§T] (–𝟻 𝐺𝑒𝑛𝑖𝑎𝑙𝑖𝑑𝑎𝑑𝑒).\n \n 𝐶𝑎𝑟𝑡𝑎 𝑑𝑒 𝐴𝑛𝑓𝑖𝑡𝑟𝑖𝑎̃𝑜;" }
};
-- RESULTADO
enviar("⠀\n[§K14] ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━༻❁༺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n⠀")
enviar("## [§K14] 🙞 [§K#AD0000]【 ".. tbCartas[carta][1] .." 】 [§K1]"..tbCartas[carta][2].." [§K14]🙜\n[§K1] ".. tbCartas[carta][3] .."\n⠀\n[§K15] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ ✠ ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n[§K1] ".. tbCartas[carta][4] .."\n" .. tbCartas[carta][5] .."\n⠀\n[§K14] ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━༻❁༺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\n⠀");
|
require("ltest.init")
require "libtdrlua"
pkg_table = {
head = {
magic = 0x7FFF,
msgid = 10000001,
cmd = 1,
version = 0,
bodyLen = 0,
datetime = libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"),
srcIp = libtdrlua.str2tdrip("127.0.0.1"),
},
body = {
login = {
name = "FrancisHe",
pass = "123456",
zone = "Japan",
destIp = libtdrlua.str2tdrip("127.0.0.1"),
},
logout = {
reason = -1,
count = 2,
attr = {-1, 0, 1},
},
xxx = {
typeTester = {
date = libtdrlua.str2tdrdate("2015-09-08"),
time = libtdrlua.str2tdrtime("22:17:59"),
int8 = -1,
uint8Array = {0, 23, 255},
int8VarArrayRefer = 2,
int8VarArray = {-128, 127 ,0},
int = -6, -- -6.6
uintArray = {0, 1721, 0xFFFFFFFF},
intVarArrayRefer = 1, -- 0
intVarArray = {-0x80000000, 0x7FFFFFFF, 0},
strArray = {"Francis", "Francis"},
uint64 = 0xFFFFFFFFFFFFF, -- 1(s) + 11(e) + 52(m)
int64Array = {-0x8000000000000000, 0xFFFFFFFFFFFFF, 0x7FFFFFFFFFFFFFFF},
float = 0xFFFFFFFF,
floatArray = {-3.40282346e+38, 1.17549435e-38, 3.40282346e+38}, -- 3.40282347e+38
double = 2.2250738585072014e-308,
doubleArray = {-1.7976931348623157e+308, -2.2250738585072014e-308, 1.7976931348623157e+308},
},
boundary = -1.1,
selector = 1,
innerUnion = {
field1 = {
{
uint64 = 0x0FFFFFFFFFFFFFFF,
uint = 0xFFFFFFFF,
},
{
uint64 = 0x0FFFFFFFFFFFFFFF,
uint = 0,
}
}
},
structArray = {
count = 1, -- 0
array = {
{
uint64 = 0x0FFFFFFFFFFFFFFF,
uint = 0xFFFFFFFF,
},
{
uint64 = 0x0FFFFFFFFFFFFFFF,
uint = 0xFFFFFFFF,
},
{
uint64 = 0x0FFFFFFFFFFFFFFF,
uint = 0xFFFFFFFF,
},
}
},
boundary2 = 1.111111,
},
ext1 = -1,
ext2 = {0, 1, 2},
ext3 = {"Francis", "Francis"},
ext4 = "Francis",
}
}
pkg_table_v4 = {
head = {
magic = 0x7FFF,
msgid = 10000001,
cmd = 1,
version = 0,
bodyLen = 0,
datetime = libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"),
srcIp = libtdrlua.str2tdrip("127.0.0.1"),
destIp = libtdrlua.str2tdrip("127.0.0.2"),
},
body = {
login = {
name = "FrancisHe",
pass = "123456",
zone = "Japan",
destIp = libtdrlua.str2tdrip("127.0.0.1"),
},
logout = {
reason = -1,
count = 2,
attr = {-1, 0, 1},
},
xxx = {
typeTester = {
date = libtdrlua.str2tdrdate("2015-09-08"),
time = libtdrlua.str2tdrtime("22:17:59"),
int8 = -1,
uint8Array = {0, 23, 255},
int8VarArrayRefer = 2,
int8VarArray = {-128, 127 ,0},
int = -6, -- -6.6
uintArray = {0, 1721, 0xFFFFFFFF},
intVarArrayRefer = 1, -- 0
intVarArray = {-0x80000000, 0x7FFFFFFF, 0},
strArray = {"Francis", "Francis"},
uint64 = 0xFFFFFFFFFFFFF, -- 1(s) + 11(e) + 52(m)
int64Array = {-0x8000000000000000, 0xFFFFFFFFFFFFF, 0x7FFFFFFFFFFFFFFF},
float = 0xFFFFFFFF,
floatArray = {-3.40282346e+38, 1.17549435e-38, 3.40282346e+38}, -- 3.40282347e+38
double = 2.2250738585072014e-308,
doubleArray = {-1.7976931348623157e+308, -2.2250738585072014e-308, 1.7976931348623157e+308},
},
boundary = -1.1,
selector = 1,
innerUnion = {
field1 = {
{
uint64 = 0x0FFFFFFFFFFFFFFF,
uint = 0xFFFFFFFF,
},
{
uint64 = 0x0FFFFFFFFFFFFFFF,
uint = 0,
}
}
},
structArray = {
count = 1, -- 0
array = {
{
uint64 = 0x0FFFFFFFFFFFFFFF,
uint = 0xFFFFFFFF,
},
{
uint64 = 0x0FFFFFFFFFFFFFFF,
uint = 0xFFFFFFFF,
},
{
uint64 = 0x0FFFFFFFFFFFFFFF,
uint = 0xFFFFFFFF,
},
}
},
boundary2 = 1.111111,
},
ext1 = -1,
ext2 = {0, 1, 2},
ext3 = {"Francis", "Francis"},
ext4 = "Francis",
}
}
function copyTab(st)
local tab = {}
for k, v in pairs(st or {}) do
if type(v) ~= "table" then
tab[k] = v
else
tab[k] = copyTab(v)
end
end
return tab
end
local function table_to_string(t)
local ret = ''
local ltype = type(t)
if (ltype == 'table') then
ret = ret .. '{ '
for key,value in pairs(t) do
ret = ret .. tostring(key) .. '=' .. table_to_string(value) .. ' '
end
ret = ret .. '}'
elseif ltype == 'string' then
ret = ret .. "'" .. tostring(t) .. "'"
else
ret = ret .. tostring(t)
end
return ret
end
-- for test case
CMyTestCaseLuaTdr = TestCase:new()
function CMyTestCaseLuaTdr:new(oo)
local o = oo or {}
o.count = 1
setmetatable(o, self)
self.__index = self
return o
end
function CMyTestCaseLuaTdr.SetUpTestCase(self)
self.count = 1 + self.count
print("CMyTestCaseLuaTdr.SetUpTestCase")
end
function CMyTestCaseLuaTdr.TearDownTestCase(self)
self.count = 1 + self.count
print("CMyTestCaseLuaTdr.TearDownTestCase")
end
function CMyTestCaseLuaTdr.SetUp(self)
self.count = 1 + self.count
print("CMyTestCaseLuaTdr.SetUp")
end
function CMyTestCaseLuaTdr.TearDown(self)
self.count = 1 + self.count
print("CMyTestCaseLuaTdr.TearDown")
end
function CMyTestCaseLuaTdr.LoadMetalib(self, load_type, file_path, cmd)
--加载meta元数据库
local ret_code, metalib
if load_type == 0 then
ret_code, metalib = libtdrlua.load_metalib(file_path)
if ret_code ~= 0 then
print("libtdrlua.load_metalib() failed: " .. metalib)
end
end
if load_type == 1 then
local tdrmeta = CS.UnityEngine.Resources.Load(file_path).bytes
ret_code, metalib = libtdrlua.load_metalib_buf(tdrmeta)
if ret_code ~= 0 then
print("libtdrlua.load_metalib_buf() failed: " .. metalib)
end
end
ASSERT_EQ(ret_code, 0)
print("libtdrlua.load_metalib ok")
--获取最大meta buff size
local ret_code, buf_size = libtdrlua.metamaxbufsize(metalib, "Pkg")
if ret_code ~= 0 then
print("libtdrlua.metamaxbufsize() failed: " .. buf_size)
end
ASSERT_EQ(ret_code, 0)
print("libtdrlua.metamaxbufsize() ok: buf_size = " .. buf_size)
--分配buff
local ret_code, buf = libtdrlua.bufalloc(buf_size)
if ret_code ~= 0 then
print("libtdrlua.bufalloc() failed: " .. buf)
end
ASSERT_EQ(ret_code, 0)
print("libtdrlua.bufalloc() ok")
print( "pkg = " .. table_to_string(pkg_table))
------------------------------------------------------------------------
-- API - get_meta
-- return value - ret_code, meta/err_msg
----------------------------------------------------------------------
local ret_code, meta = libtdrlua.get_meta(metalib, "Pkg")
if ret_code ~= 0 then
print("libtdrlua.get_meta() failed: " .. meta)
end
ASSERT_EQ(ret_code, 0)
print("libtdrlua.get_meta() ok")
pkg_table.head.cmd = cmd
----------------------------------------------------------------------
-- API - table2buf
-- return value - ret_code, used_size/err_msg
----------------------------------------------------------------------
local ret_code, used_size = libtdrlua.table2buf(meta, pkg_table, buf, buf_size, 0)
if ret_code ~= 0 then
print("libtdrlua.table2buf() failed: " .. used_size)
libtdrlua.buffree(buf)
end
ASSERT_EQ(ret_code, 0)
print("libtdrlua.table2buf() ok, used_size = " .. used_size)
----------------------------------------------------------------------
-- API - buf2str
-- return value - ret_code, str/err_msg
----------------------------------------------------------------------
local ret_code, str = libtdrlua.buf2str(buf, used_size)
if ret_code ~= 0 then
print("libtdrlua.buf2str() failed: " .. str)
libtdrlua.buffree(buf)
end
ASSERT_EQ(ret_code, 0)
print("libtdrlua.buf2str() ok")
print("buf2str:" .. str)
----------------------------------------------------------------------
-- API - buf2table
-- return value - ret_code, pkg_table, used_size/err_msg
----------------------------------------------------------------------
local ret_code, pkg_table2, used_size2 = libtdrlua.buf2table(meta, buf, used_size, 0)
if ret_code ~= 0 then
print("libtdrlua.buf2table() failed: " .. used_size2)
print(DataDumper(pkg_table2, "pkg2 = "))
libtdrlua.buffree(buf)
end
ASSERT_EQ(ret_code, 0)
print("libtdrlua.buf2table() ok, used_size = " .. used_size2)
print("unpakc pkg = ", table_to_string(pkg_table2))
--print(DataDumper(pkg_table2, "pkg2 = "))
--因为str为空,所以会引起Unity crash
----------------------------------------------------------------------
-- API - str2table
-- return value - ret_code, pkg_table, used_size/err_msg
----------------------------------------------------------------------
local ret_code, pkg_table3, used_size3 = libtdrlua.str2table(meta, str, 0)
if ret_code ~= 0 then
print("libtdrlua.str2table() failed: " .. used_size3)
print(DataDumper(pkg_table3, "pkg3 = "))
libtdrlua.buffree(buf)
end
ASSERT_EQ(ret_code, 0)
print("libtdrlua.str2table() ok, used_size = " .. used_size3)
print("str2buf unpack pkg = ", table_to_string(pkg_table2))
----------------------------------------------------------------------
-- API - buffree
-- return value - nil/err_msg
----------------------------------------------------------------------
local err_msg = libtdrlua.buffree(buf)
if err_msg ~= nil then
print("libtdrlua.buffree() failed: " .. err_msg)
end
print("libtdrlua.buffree() ok")
ASSERT_EQ(err_msg, nil)
----------------------------------------------------------------------
-- API - free_metalib
-- return value - nil/err_msg
-- Note: metalib will be automatically released by lua gc. Thus, this
-- step is optional.
----------------------------------------------------------------------
local err_msg = libtdrlua.free_metalib(metalib)
if err_msg ~= nil then
print("libtdrlua.free_metalib() failed: " .. err_msg)
end
print("libtdrlua.free_metalib() ok")
ASSERT_EQ(err_msg, nil)
return pkg_table2, pkg_table3
end
function CMyTestCaseLuaTdr.CaseLoadMetalib_1(self)
self.count = 1 + self.count
if CS.LuaTestCommon.android_platform == true then
return
end
pkg_table2, pkg_table3 = self:LoadMetalib(0, CS.LuaTestCommon.xxxtdrfilepath, 1)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 1)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 39)
--ASSERT_EQ(tostring(pkg_table2.head.bodyLen),"39")
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login.name, "FrancisHe")
ASSERT_EQ(pkg_table2.body.login.pass, "123456")
ASSERT_EQ(pkg_table2.body.login.zone, "Japan")
ASSERT_EQ(pkg_table2.body.login.destIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.ext1, nil)
ASSERT_EQ(pkg_table3.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table3.head.msgid), "10000001")
ASSERT_EQ(pkg_table3.head.cmd, 1)
ASSERT_EQ(pkg_table3.head.version, 3)
ASSERT_EQ(pkg_table3.head.bodyLen, 39)
--ASSERT_EQ(tostring(pkg_table3.head.bodyLen),"39")
ASSERT_EQ(pkg_table3.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table3.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table3.body.login.name, "FrancisHe")
ASSERT_EQ(pkg_table3.body.login.pass, "123456")
ASSERT_EQ(pkg_table3.body.login.zone, "Japan")
ASSERT_EQ(pkg_table3.body.login.destIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table3.body.ext1, nil)
end
function CMyTestCaseLuaTdr.CaseLoadMetalibBuff_1(self)
self.count = 1 + self.count
pkg_table2, pkg_table3 = self:LoadMetalib(1, "testxxx.tdr", 1)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 1)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 39)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login.name, "FrancisHe")
ASSERT_EQ(pkg_table2.body.login.pass, "123456")
ASSERT_EQ(pkg_table2.body.login.zone, "Japan")
ASSERT_EQ(pkg_table2.body.login.destIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.ext1, nil)
ASSERT_EQ(pkg_table3.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table3.head.msgid), "10000001")
ASSERT_EQ(pkg_table3.head.cmd, 1)
ASSERT_EQ(pkg_table3.head.version, 3)
ASSERT_EQ(pkg_table3.head.bodyLen, 39)
ASSERT_EQ(pkg_table3.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table3.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table3.body.login.name, "FrancisHe")
ASSERT_EQ(pkg_table3.body.login.pass, "123456")
ASSERT_EQ(pkg_table3.body.login.zone, "Japan")
ASSERT_EQ(pkg_table3.body.login.destIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table3.body.ext1, nil)
end
function CMyTestCaseLuaTdr.CaseLoadMetalib_2(self)
self.count = 1 + self.count
if CS.LuaTestCommon.android_platform == true then
return
end
pkg_table2, pkg_table3 = self:LoadMetalib(0, CS.LuaTestCommon.xxxtdrfilepath, 2)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 2)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 16)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
ASSERT_EQ(tostring(pkg_table2.body.logout.reason + 1), "0")
ASSERT_EQ(pkg_table2.body.logout.count, 2)
ASSERT_EQ(pkg_table2.body.logout.attr, {-1, 0})
ASSERT_EQ(pkg_table2.body.ext1, nil)
ASSERT_EQ(pkg_table3.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table3.head.msgid), "10000001")
ASSERT_EQ(pkg_table3.head.cmd, 2)
ASSERT_EQ(pkg_table3.head.version, 3)
ASSERT_EQ(pkg_table3.head.bodyLen, 16)
ASSERT_EQ(pkg_table3.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table3.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table3.body.login, nil)
ASSERT_EQ(tostring(pkg_table3.body.logout.reason + 1), "0")
ASSERT_EQ(pkg_table3.body.logout.count, 2)
ASSERT_EQ(pkg_table3.body.logout.attr, {-1, 0})
ASSERT_EQ(pkg_table3.body.ext1, nil)
end
function CMyTestCaseLuaTdr.CaseLoadMetalibBuff_2(self)
self.count = 1 + self.count
pkg_table2, pkg_table3 = self:LoadMetalib(1, "testxxx.tdr", 2)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 2)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 16)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
local ret = -1
ASSERT_EQ(ret, -1)
ASSERT_EQ(tostring(pkg_table2.body.logout.reason + 1), "0")
ASSERT_EQ(pkg_table2.body.logout.count, 2)
ASSERT_EQ(pkg_table2.body.logout.attr, {-1, 0})
ASSERT_EQ(pkg_table2.body.ext1, nil)
ASSERT_EQ(pkg_table3.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table3.head.msgid), "10000001")
ASSERT_EQ(pkg_table3.head.cmd, 2)
ASSERT_EQ(pkg_table3.head.version, 3)
ASSERT_EQ(pkg_table3.head.bodyLen, 16)
ASSERT_EQ(pkg_table3.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table3.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table3.body.login, nil)
local ret = -1
ASSERT_EQ(ret, -1)
ASSERT_EQ(tostring(pkg_table3.body.logout.reason + 1), "0")
ASSERT_EQ(pkg_table3.body.logout.count, 2)
ASSERT_EQ(pkg_table3.body.logout.attr, {-1, 0})
ASSERT_EQ(pkg_table3.body.ext1, nil)
end
function CMyTestCaseLuaTdr.CaseLoadMetalib_3(self)
self.count = 1 + self.count
if CS.LuaTestCommon.android_platform == true then
return
end
pkg_table2, pkg_table3 = self:LoadMetalib(0, CS.LuaTestCommon.xxxtdrfilepath, 3)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 3)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 222)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(libtdrlua.tdrip2str(pkg_table2.head.srcIp), "127.0.0.1")
ASSERT_EQ(pkg_table2.body.login, nil)
ASSERT_EQ(pkg_table2.body.logout, nil)
ASSERT_EQ(libtdrlua.tdrdate2str(pkg_table2.body.xxx.typeTester.date), "2015-09-08")
ASSERT_EQ(libtdrlua.tdrtime2str(pkg_table2.body.xxx.typeTester.time), " 22:17:59")
ASSERT_EQ(pkg_table2.body.xxx.typeTester.time, libtdrlua.str2tdrtime("22:17:59"))
ASSERT_EQ(pkg_table2.body.xxx.typeTester.int8, -1)
ASSERT_EQ(pkg_table2.body.xxx.typeTester.uint8Array, {0, 23, 255})
ASSERT_EQ(pkg_table2.body.xxx.typeTester.int8VarArrayRefer, 2)
ASSERT_EQ(pkg_table2.body.xxx.typeTester.int8VarArray, {-128, 127})
--ASSERT_EQ(pkg_table2.body.xxx.typeTester.uintArray, {0, 1721, 0xFFFFFFFF}) --测试不过,0xFFFFFFFF解包后变长了0x80000000
ASSERT_EQ(pkg_table2.body.xxx.typeTester.intVarArray, {-0x80000000})
ASSERT_EQ(pkg_table2.body.xxx.typeTester.strArray, {"Francis", "Francis"})
ASSERT_EQ(tostring(pkg_table2.body.xxx.typeTester.uint64), "4503599627370495") --0xFFFFFFFFFFFFF
--ASSERT_EQ(pkg_table2.body.xxx.typeTester.int64Array, {-9223372036854775808, 4503599627370495, 9223372036854775807}) --{-0x8000000000000000, 0xFFFFFFFFFFFFF, 0x7FFFFFFFFFFFFFFF},,测试不过,解包后0x7FFFFFFFFFFFFFFF变长了-9223372036854775808
ASSERT_EQ(pkg_table.body.xxx.typeTester.int64Array[3], 0x7FFFFFFFFFFFFFFF)--此处验证打包前是ok的
--ASSERT_EQ(pkg_table2.body.xxx.typeTester.float, 0xFFFFFFFF) --此处验证不过,ASSERT_EQ failed --> left:4294967296, right:4294967295.
ASSERT_EQ(pkg_table.body.xxx.typeTester.float, 0xFFFFFFFF)--此处验证打包前是ok的
---会存在精度问题,实际为{-3.40282346e+38, 1.17549435e-38, 3.40282346e+38}
ASSERT_EQ(tostring(pkg_table2.body.xxx.typeTester.floatArray[1]), "-3.4028234663853e+38")
ASSERT_EQ(tostring(pkg_table2.body.xxx.typeTester.floatArray[2]), "1.1754943508223e-38")
ASSERT_EQ(tostring(pkg_table2.body.xxx.typeTester.floatArray[3]), "3.4028234663853e+38")
ASSERT_EQ(pkg_table2.body.xxx.typeTester.double, 2.2250738585072014e-308)
ASSERT_EQ(pkg_table2.body.xxx.typeTester.doubleArray, {-1.7976931348623157e+308, -2.2250738585072014e-308, 1.7976931348623157e+308})
ASSERT_EQ(string.sub(tostring(pkg_table2.body.xxx.boundary),1, 4), "-1.1")
ASSERT_EQ(pkg_table2.body.xxx.selector, 1)
print("to_string filed1:" .. table_to_string(pkg_table2.body.xxx.innerUnion.field1[1]))
--ASSERT_EQ(pkg_table2.body.xxx.innerUnion.field1[1], {unit64 = 0x0FFFFFFFFFFFFFFF, uint = 0xFFFFFFFF})
ASSERT_EQ(type(pkg_table.body.xxx.innerUnion.field1[1]), 'table')
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[1].uint64, 0x0FFFFFFFFFFFFFFF)
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[1].uint, 0xFFFFFFFF)
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[2].uint64, 0x0FFFFFFFFFFFFFFF)
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[2].uint, 0)
ASSERT_EQ(tostring(pkg_table2.body.xxx.innerUnion.field1[1].uint64 - 0x0FFFFFFFFFFFFFFF), "0")
--ASSERT_EQ(pkg_table2.body.xxx.innerUnion.field1[1].uint, 0xFFFFFFFF) --这个值解包后有问题,ASSERT_EQ failed --> left:4294967296, right:4294967295.
ASSERT_EQ(tostring(pkg_table2.body.xxx.innerUnion.field1[2].uint64 - 0x0FFFFFFFFFFFFFFF), "0")
ASSERT_EQ(pkg_table2.body.xxx.innerUnion.field1[2].uint, 0)
ASSERT_EQ(pkg_table2.body.xxx.structArray.count, 1)
ASSERT_EQ(tostring(pkg_table2.body.xxx.structArray.array[1].uint64 - 0x0FFFFFFFFFFFFFFF), "0")
--ASSERT_EQ(pkg_table2.body.xxx.structArray.array[1].uint, 0xFFFFFFFF) --这个值解包后有问题,ASSERT_EQ failed --> left:4294967296, right:4294967295.
ASSERT_EQ(pkg_table2.body.xxx.structArray.array[2], nil)
ASSERT_EQ(string.sub(tostring(pkg_table2.body.xxx.boundary2),1, 8), "1.111111")
ASSERT_EQ(pkg_table3.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table3.head.msgid), "10000001")
ASSERT_EQ(pkg_table3.head.cmd, 3)
ASSERT_EQ(pkg_table3.head.version, 3)
ASSERT_EQ(pkg_table3.head.bodyLen, 222)
ASSERT_EQ(pkg_table3.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(libtdrlua.tdrip2str(pkg_table3.head.srcIp), "127.0.0.1")
ASSERT_EQ(pkg_table3.body.login, nil)
ASSERT_EQ(pkg_table3.body.logout, nil)
ASSERT_EQ(libtdrlua.tdrdate2str(pkg_table3.body.xxx.typeTester.date), "2015-09-08")
ASSERT_EQ(libtdrlua.tdrtime2str(pkg_table3.body.xxx.typeTester.time), " 22:17:59")
ASSERT_EQ(pkg_table3.body.xxx.typeTester.time, libtdrlua.str2tdrtime("22:17:59"))
ASSERT_EQ(pkg_table3.body.xxx.typeTester.int8, -1)
ASSERT_EQ(pkg_table3.body.xxx.typeTester.uint8Array, {0, 23, 255})
ASSERT_EQ(pkg_table3.body.xxx.typeTester.int8VarArrayRefer, 2)
ASSERT_EQ(pkg_table3.body.xxx.typeTester.int8VarArray, {-128, 127})
--ASSERT_EQ(pkg_table3.body.xxx.typeTester.uintArray, {0, 1721, 0xFFFFFFFF}) --测试不过,0xFFFFFFFF解包后变长了0x80000000
ASSERT_EQ(pkg_table3.body.xxx.typeTester.intVarArray, {-0x80000000})
ASSERT_EQ(pkg_table3.body.xxx.typeTester.strArray, {"Francis", "Francis"})
ASSERT_EQ(tostring(pkg_table3.body.xxx.typeTester.uint64), "4503599627370495") --0xFFFFFFFFFFFFF
--ASSERT_EQ(pkg_table3.body.xxx.typeTester.int64Array, {-9223372036854775808, 4503599627370495, 9223372036854775807}) --{-0x8000000000000000, 0xFFFFFFFFFFFFF, 0x7FFFFFFFFFFFFFFF},,测试不过,解包后0x7FFFFFFFFFFFFFFF变长了-9223372036854775808
ASSERT_EQ(pkg_table.body.xxx.typeTester.int64Array[3], 0x7FFFFFFFFFFFFFFF)--此处验证打包前是ok的
--ASSERT_EQ(pkg_table3.body.xxx.typeTester.float, 0xFFFFFFFF) --此处验证不过,ASSERT_EQ failed --> left:4294967296, right:4294967295.
ASSERT_EQ(pkg_table.body.xxx.typeTester.float, 0xFFFFFFFF)--此处验证打包前是ok的
---会存在精度问题,实际为{-3.40282346e+38, 1.17549435e-38, 3.40282346e+38}
ASSERT_EQ(tostring(pkg_table3.body.xxx.typeTester.floatArray[1]), "-3.4028234663853e+38")
ASSERT_EQ(tostring(pkg_table3.body.xxx.typeTester.floatArray[2]), "1.1754943508223e-38")
ASSERT_EQ(tostring(pkg_table3.body.xxx.typeTester.floatArray[3]), "3.4028234663853e+38")
ASSERT_EQ(pkg_table3.body.xxx.typeTester.double, 2.2250738585072014e-308)
ASSERT_EQ(pkg_table3.body.xxx.typeTester.doubleArray, {-1.7976931348623157e+308, -2.2250738585072014e-308, 1.7976931348623157e+308})
ASSERT_EQ(string.sub(tostring(pkg_table3.body.xxx.boundary),1, 4), "-1.1")
ASSERT_EQ(pkg_table3.body.xxx.selector, 1)
print("to_string filed1:" .. table_to_string(pkg_table3.body.xxx.innerUnion.field1[1]))
--ASSERT_EQ(pkg_table3.body.xxx.innerUnion.field1[1], {unit64 = 0x0FFFFFFFFFFFFFFF, uint = 0xFFFFFFFF})
ASSERT_EQ(type(pkg_table.body.xxx.innerUnion.field1[1]), 'table')
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[1].uint64, 0x0FFFFFFFFFFFFFFF)
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[1].uint, 0xFFFFFFFF)
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[2].uint64, 0x0FFFFFFFFFFFFFFF)
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[2].uint, 0)
ASSERT_EQ(tostring(pkg_table3.body.xxx.innerUnion.field1[1].uint64 - 0x0FFFFFFFFFFFFFFF), "0")
--ASSERT_EQ(pkg_table3.body.xxx.innerUnion.field1[1].uint, 0xFFFFFFFF) --这个值解包后有问题,ASSERT_EQ failed --> left:4294967296, right:4294967295.
ASSERT_EQ(tostring(pkg_table3.body.xxx.innerUnion.field1[2].uint64 - 0x0FFFFFFFFFFFFFFF), "0")
ASSERT_EQ(pkg_table3.body.xxx.innerUnion.field1[2].uint, 0)
ASSERT_EQ(pkg_table3.body.xxx.structArray.count, 1)
ASSERT_EQ(tostring(pkg_table3.body.xxx.structArray.array[1].uint64 - 0x0FFFFFFFFFFFFFFF), "0")
--ASSERT_EQ(pkg_table3.body.xxx.structArray.array[1].uint, 0xFFFFFFFF) --这个值解包后有问题,ASSERT_EQ failed --> left:4294967296, right:4294967295.
ASSERT_EQ(pkg_table3.body.xxx.structArray.array[2], nil)
ASSERT_EQ(string.sub(tostring(pkg_table3.body.xxx.boundary2),1, 8), "1.111111")
end
function CMyTestCaseLuaTdr.CaseLoadMetalibBuff_3(self)
self.count = 1 + self.count
pkg_table2, pkg_table3 = self:LoadMetalib(1, "testxxx.tdr", 3)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 3)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 222)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
ASSERT_EQ(pkg_table2.body.logout, nil)
ASSERT_EQ(libtdrlua.tdrdate2str(pkg_table2.body.xxx.typeTester.date), "2015-09-08")
ASSERT_EQ(libtdrlua.tdrtime2str(pkg_table2.body.xxx.typeTester.time), " 22:17:59")
ASSERT_EQ(pkg_table2.body.xxx.typeTester.time, libtdrlua.str2tdrtime("22:17:59"))
ASSERT_EQ(pkg_table2.body.xxx.typeTester.int8, -1)
ASSERT_EQ(pkg_table2.body.xxx.typeTester.uint8Array, {0, 23, 255})
ASSERT_EQ(pkg_table2.body.xxx.typeTester.int8VarArrayRefer, 2)
ASSERT_EQ(pkg_table2.body.xxx.typeTester.int8VarArray, {-128, 127})
ASSERT_EQ(pkg_table.body.xxx.typeTester.uintArray, {0, 1721, 0xFFFFFFFF})
--ASSERT_EQ(pkg_table2.body.xxx.typeTester.uintArray, {0, 1721, 0xFFFFFFFF}) --测试不过,0xFFFFFFFF解包后变长了0x80000000
ASSERT_EQ(pkg_table2.body.xxx.typeTester.intVarArray, {-0x80000000})
ASSERT_EQ(pkg_table2.body.xxx.typeTester.strArray, {"Francis", "Francis"})
ASSERT_EQ(tostring(pkg_table2.body.xxx.typeTester.uint64), "4503599627370495") --0xFFFFFFFFFFFFF
--ASSERT_EQ(pkg_table2.body.xxx.typeTester.int64Array, {-9223372036854775808, 4503599627370495, 9223372036854775807}) --{-0x8000000000000000, 0xFFFFFFFFFFFFF, 0x7FFFFFFFFFFFFFFF},,测试不过,解包后0x7FFFFFFFFFFFFFFF变长了-9223372036854775808
ASSERT_EQ(pkg_table.body.xxx.typeTester.int64Array[3], 0x7FFFFFFFFFFFFFFF)--此处验证打包前是ok的
--ASSERT_EQ(pkg_table2.body.xxx.typeTester.float, 0xFFFFFFFF) --此处验证不过,ASSERT_EQ failed --> left:4294967296, right:4294967295.
ASSERT_EQ(pkg_table.body.xxx.typeTester.float, 0xFFFFFFFF)--此处验证打包前是ok的
---会存在精度问题,实际为{-3.40282346e+38, 1.17549435e-38, 3.40282346e+38}
ASSERT_EQ(tostring(pkg_table2.body.xxx.typeTester.floatArray[1]), "-3.4028234663853e+38")
ASSERT_EQ(tostring(pkg_table2.body.xxx.typeTester.floatArray[2]), "1.1754943508223e-38")
ASSERT_EQ(tostring(pkg_table2.body.xxx.typeTester.floatArray[3]), "3.4028234663853e+38")
ASSERT_EQ(pkg_table2.body.xxx.typeTester.double, 2.2250738585072014e-308)
ASSERT_EQ(pkg_table2.body.xxx.typeTester.doubleArray, {-1.7976931348623157e+308, -2.2250738585072014e-308, 1.7976931348623157e+308})
ASSERT_EQ(string.sub(tostring(pkg_table2.body.xxx.boundary),1, 4), "-1.1")
ASSERT_EQ(pkg_table2.body.xxx.selector, 1)
print("to_string filed1:" .. table_to_string(pkg_table2.body.xxx.innerUnion.field1[1]))
--ASSERT_EQ(pkg_table2.body.xxx.innerUnion.field1[1], {unit64 = 0x0FFFFFFFFFFFFFFF, uint = 0xFFFFFFFF})
ASSERT_EQ(type(pkg_table.body.xxx.innerUnion.field1[1]), 'table')
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[1].uint64, 0x0FFFFFFFFFFFFFFF)
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[1].uint, 0xFFFFFFFF)
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[2].uint64, 0x0FFFFFFFFFFFFFFF)
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[2].uint, 0)
ASSERT_EQ(tostring(pkg_table2.body.xxx.innerUnion.field1[1].uint64 - 0x0FFFFFFFFFFFFFFF), "0")
--ASSERT_EQ(pkg_table2.body.xxx.innerUnion.field1[1].uint, 0xFFFFFFFF) --这个值解包后有问题,ASSERT_EQ failed --> left:4294967296, right:4294967295.
ASSERT_EQ(tostring(pkg_table2.body.xxx.innerUnion.field1[2].uint64 - 0x0FFFFFFFFFFFFFFF), "0")
ASSERT_EQ(pkg_table2.body.xxx.innerUnion.field1[2].uint, 0)
ASSERT_EQ(pkg_table2.body.xxx.structArray.count, 1)
ASSERT_EQ(tostring(pkg_table2.body.xxx.structArray.array[1].uint64 - 0x0FFFFFFFFFFFFFFF), "0")
--ASSERT_EQ(pkg_table2.body.xxx.structArray.array[1].uint, 0xFFFFFFFF) --这个值解包后有问题,ASSERT_EQ failed --> left:4294967296, right:4294967295.
ASSERT_EQ(pkg_table2.body.xxx.structArray.array[2], nil)
ASSERT_EQ(string.sub(tostring(pkg_table2.body.xxx.boundary2),1, 8), "1.111111")
ASSERT_EQ(pkg_table3.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table3.head.msgid), "10000001")
ASSERT_EQ(pkg_table3.head.cmd, 3)
ASSERT_EQ(pkg_table3.head.version, 3)
ASSERT_EQ(pkg_table3.head.bodyLen, 222)
ASSERT_EQ(pkg_table3.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(libtdrlua.tdrip2str(pkg_table3.head.srcIp), "127.0.0.1")
ASSERT_EQ(pkg_table3.body.login, nil)
ASSERT_EQ(pkg_table3.body.logout, nil)
ASSERT_EQ(libtdrlua.tdrdate2str(pkg_table3.body.xxx.typeTester.date), "2015-09-08")
ASSERT_EQ(libtdrlua.tdrtime2str(pkg_table3.body.xxx.typeTester.time), " 22:17:59")
ASSERT_EQ(pkg_table3.body.xxx.typeTester.time, libtdrlua.str2tdrtime("22:17:59"))
ASSERT_EQ(pkg_table3.body.xxx.typeTester.int8, -1)
ASSERT_EQ(pkg_table3.body.xxx.typeTester.uint8Array, {0, 23, 255})
ASSERT_EQ(pkg_table3.body.xxx.typeTester.int8VarArrayRefer, 2)
ASSERT_EQ(pkg_table3.body.xxx.typeTester.int8VarArray, {-128, 127})
--ASSERT_EQ(pkg_table3.body.xxx.typeTester.uintArray, {0, 1721, 0xFFFFFFFF}) --测试不过,0xFFFFFFFF解包后变长了0x80000000
ASSERT_EQ(pkg_table3.body.xxx.typeTester.intVarArray, {-0x80000000})
ASSERT_EQ(pkg_table3.body.xxx.typeTester.strArray, {"Francis", "Francis"})
ASSERT_EQ(tostring(pkg_table3.body.xxx.typeTester.uint64), "4503599627370495") --0xFFFFFFFFFFFFF
--ASSERT_EQ(pkg_table3.body.xxx.typeTester.int64Array, {-9223372036854775808, 4503599627370495, 9223372036854775807}) --{-0x8000000000000000, 0xFFFFFFFFFFFFF, 0x7FFFFFFFFFFFFFFF},,测试不过,解包后0x7FFFFFFFFFFFFFFF变长了-9223372036854775808
ASSERT_EQ(pkg_table.body.xxx.typeTester.int64Array[3], 0x7FFFFFFFFFFFFFFF)--此处验证打包前是ok的
--ASSERT_EQ(pkg_table3.body.xxx.typeTester.float, 0xFFFFFFFF) --此处验证不过,ASSERT_EQ failed --> left:4294967296, right:4294967295.
ASSERT_EQ(pkg_table.body.xxx.typeTester.float, 0xFFFFFFFF)--此处验证打包前是ok的
---会存在精度问题,实际为{-3.40282346e+38, 1.17549435e-38, 3.40282346e+38}
ASSERT_EQ(tostring(pkg_table3.body.xxx.typeTester.floatArray[1]), "-3.4028234663853e+38")
ASSERT_EQ(tostring(pkg_table3.body.xxx.typeTester.floatArray[2]), "1.1754943508223e-38")
ASSERT_EQ(tostring(pkg_table3.body.xxx.typeTester.floatArray[3]), "3.4028234663853e+38")
ASSERT_EQ(pkg_table3.body.xxx.typeTester.double, 2.2250738585072014e-308)
ASSERT_EQ(pkg_table3.body.xxx.typeTester.doubleArray, {-1.7976931348623157e+308, -2.2250738585072014e-308, 1.7976931348623157e+308})
ASSERT_EQ(string.sub(tostring(pkg_table3.body.xxx.boundary),1, 4), "-1.1")
ASSERT_EQ(pkg_table3.body.xxx.selector, 1)
print("to_string filed1:" .. table_to_string(pkg_table3.body.xxx.innerUnion.field1[1]))
--ASSERT_EQ(pkg_table3.body.xxx.innerUnion.field1[1], {unit64 = 0x0FFFFFFFFFFFFFFF, uint = 0xFFFFFFFF})
ASSERT_EQ(type(pkg_table.body.xxx.innerUnion.field1[1]), 'table')
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[1].uint64, 0x0FFFFFFFFFFFFFFF)
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[1].uint, 0xFFFFFFFF)
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[2].uint64, 0x0FFFFFFFFFFFFFFF)
ASSERT_EQ(pkg_table.body.xxx.innerUnion.field1[2].uint, 0)
ASSERT_EQ(tostring(pkg_table3.body.xxx.innerUnion.field1[1].uint64 - 0x0FFFFFFFFFFFFFFF), "0")
--ASSERT_EQ(pkg_table3.body.xxx.innerUnion.field1[1].uint, 0xFFFFFFFF) --这个值解包后有问题,ASSERT_EQ failed --> left:4294967296, right:4294967295.
ASSERT_EQ(tostring(pkg_table3.body.xxx.innerUnion.field1[2].uint64 - 0x0FFFFFFFFFFFFFFF), "0")
ASSERT_EQ(pkg_table3.body.xxx.innerUnion.field1[2].uint, 0)
ASSERT_EQ(pkg_table3.body.xxx.structArray.count, 1)
ASSERT_EQ(tostring(pkg_table3.body.xxx.structArray.array[1].uint64 - 0x0FFFFFFFFFFFFFFF), "0")
--ASSERT_EQ(pkg_table3.body.xxx.structArray.array[1].uint, 0xFFFFFFFF) --这个值解包后有问题,ASSERT_EQ failed --> left:4294967296, right:4294967295.
ASSERT_EQ(pkg_table3.body.xxx.structArray.array[2], nil)
ASSERT_EQ(string.sub(tostring(pkg_table3.body.xxx.boundary2),1, 8), "1.111111")
end
function CMyTestCaseLuaTdr.CaseLoadMetalib_4(self)
self.count = 1 + self.count
if CS.LuaTestCommon.android_platform == true then
return
end
pkg_table2 = self:LoadMetalib(0, CS.LuaTestCommon.xxxtdrfilepath, 4)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 4)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 4)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
ASSERT_EQ(pkg_table2.body.ext1, -1)
end
function CMyTestCaseLuaTdr.CaseLoadMetalibBuff_4(self)
self.count = 1 + self.count
pkg_table2 = self:LoadMetalib(1, "testxxx.tdr", 5)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 5)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 4)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
ASSERT_EQ(pkg_table2.body.ext1, -1)
end
function CMyTestCaseLuaTdr.CaseLoadMetalib_5(self)
self.count = 1 + self.count
if CS.LuaTestCommon.android_platform == true then
return
end
pkg_table2 = self:LoadMetalib(0, CS.LuaTestCommon.xxxtdrfilepath, 70)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 70)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 3)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
ASSERT_EQ(pkg_table2.body.ext2, {0, 1, 2})
end
function CMyTestCaseLuaTdr.CaseLoadMetalibBuff_5(self)
self.count = 1 + self.count
pkg_table2 = self:LoadMetalib(1, "testxxx.tdr", 80)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 80)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 3)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
ASSERT_EQ(pkg_table2.body.ext2, {0, 1, 2})
end
function CMyTestCaseLuaTdr.CaseLoadMetalib_6(self)
self.count = 1 + self.count
if CS.LuaTestCommon.android_platform == true then
return
end
pkg_table2 = self:LoadMetalib(0, CS.LuaTestCommon.xxxtdrfilepath, 75)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 75)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 3)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
ASSERT_EQ(pkg_table2.body.ext2, {0, 1, 2})
end
function CMyTestCaseLuaTdr.CaseLoadMetalibBuff_6(self)
self.count = 1 + self.count
pkg_table2 = self:LoadMetalib(1, "testxxx.tdr", 81)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 81)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 4)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
ASSERT_EQ(pkg_table2.body.ext1, -1)
end
function CMyTestCaseLuaTdr.CaseLoadMetalib_7(self)
self.count = 1 + self.count
if CS.LuaTestCommon.android_platform == true then
return
end
pkg_table2 = self:LoadMetalib(0, CS.LuaTestCommon.xxxtdrfilepath, 15)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 15)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 24)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
ASSERT_EQ(pkg_table2.body.ext3, {"Francis", "Francis"})
end
function CMyTestCaseLuaTdr.CaseLoadMetalibBuff_7(self)
self.count = 1 + self.count
pkg_table2 = self:LoadMetalib(1, "testxxx.tdr", 100)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 100)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 12)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
ASSERT_EQ(pkg_table2.body.ext4, "Francis")
end
function CMyTestCaseLuaTdr.CaseLoadMetalibNoExistTdr(self)
self.count = 1 + self.count
local ret_code, err_msg = libtdrlua.load_metalib("noexist.tdr")
ASSERT_EQ(ret_code, -2113862584)
print("CaseLoadMetalibNoExistTdr err_msg:" .. err_msg)
end
function CMyTestCaseLuaTdr.CaseLoadMetalibErrorTdrFile(self)
self.count = 1 + self.count
local ret_code, err_msg = libtdrlua.load_metalib("test2.lua")
ASSERT_EQ(ret_code, -2113862584)
print("CaseLoadMetalibErrorTdrFile err_msg:" .. err_msg)
end
function CMyTestCaseLuaTdr.CaseLoadMetalibMultiTimes(self)
self.count = 1 + self.count
local tdrmeta = CS.UnityEngine.Resources.Load("testxxx.tdr").bytes
local ret_code, metalib = libtdrlua.load_metalib_buf(tdrmeta)
local ret_code2, metalib2 = libtdrlua.load_metalib_buf(tdrmeta)
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(ret_code2, 0)
local err_msg = libtdrlua.free_metalib(metalib)
ASSERT_EQ(err_msg, nil)
local err_msg2 = libtdrlua.free_metalib(metalib2)
ASSERT_EQ(err_msg2, nil)
end
function CMyTestCaseLuaTdr.CaseLoadMetalibDiffTdrFile(self)
self.count = 1 + self.count
local tdrmeta = CS.UnityEngine.Resources.Load("testxxx.tdr").bytes
local tdrmeta2 = CS.UnityEngine.Resources.Load("testxxx2.tdr").bytes
local ret_code, metalib = libtdrlua.load_metalib_buf(tdrmeta)
local ret_code2, metalib2 = libtdrlua.load_metalib_buf(tdrmeta2)
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(ret_code2, 0)
local err_msg = libtdrlua.free_metalib(metalib)
ASSERT_EQ(err_msg, nil)
local err_msg2 = libtdrlua.free_metalib(metalib2)
ASSERT_EQ(err_msg2, nil)
end
function CMyTestCaseLuaTdr.CaseLoadMetalibBufFromEmptyStr(self)
self.count = 1 + self.count
local ret_code, metalib = libtdrlua.load_metalib_buf("")
ASSERT_EQ(ret_code, -2113862536)
end
function CMyTestCaseLuaTdr.CaseLoadMetalibBufFromNoTdrStr(self)
self.count = 1 + self.count
local ret_code, metalib = libtdrlua.load_metalib_buf("testtdr")
ASSERT_EQ(ret_code, -2113862536)
end
function CMyTestCaseLuaTdr.CaseGetMeta(self)
--加载meta元数据库
local tdrmeta = CS.UnityEngine.Resources.Load("testxxx.tdr").bytes
local ret_code, metalib = libtdrlua.load_metalib_buf(tdrmeta)
ASSERT_EQ(ret_code, 0)
print("libtdrlua.load_metalib ok")
------------------------------------------------------------------------
-- API - get_meta
-- return value - ret_code, meta/err_msg
----------------------------------------------------------------------
local ret_code, meta = libtdrlua.get_meta(metalib, "PkgBody")
ASSERT_EQ(ret_code, 0)
local ret_code, meta = libtdrlua.get_meta(metalib, "PkgNoExist")
ASSERT_EQ(ret_code, -1)
local ret_code, meta = libtdrlua.get_meta(metalib, "PKG_ID")
ASSERT_EQ(ret_code, -1)
local err_msg = libtdrlua.free_metalib(metalib)
ASSERT_EQ(err_msg, nil)
end
function CMyTestCaseLuaTdr.CaseTable2Buf_1(self)
--长度等于实际长度
local tdrmeta = CS.UnityEngine.Resources.Load("testxxx.tdr").bytes
local ret_code, metalib = libtdrlua.load_metalib_buf(tdrmeta)
ASSERT_EQ(ret_code, 0)
buf_size = 71
local ret_code, buf = libtdrlua.bufalloc(buf_size)
ASSERT_EQ(ret_code, 0)
local ret_code, meta = libtdrlua.get_meta(metalib, "Pkg")
ASSERT_EQ(ret_code, 0)
pkg_table.head.cmd = 1
local ret_code, used_size = libtdrlua.table2buf(meta, pkg_table, buf, buf_size, 0)
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(used_size, buf_size)
local ret_code, pkg_table2, used_size2 = libtdrlua.buf2table(meta, buf, used_size, 0)
print("table2buf pkg_table2: " .. table_to_string(pkg_table2))
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 1)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 39)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login.name, "FrancisHe")
ASSERT_EQ(pkg_table2.body.login.pass, "123456")
ASSERT_EQ(pkg_table2.body.login.zone, "Japan")
ASSERT_EQ(pkg_table2.body.login.destIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.ext1, nil)
local err_msg = libtdrlua.free_metalib(metalib)
ASSERT_EQ(err_msg, nil)
local err_msg = libtdrlua.buffree(buf)
ASSERT_EQ(err_msg, nil)
end
function CMyTestCaseLuaTdr.CaseTable2Buf_2(self)
--buf 和 len 小于pkg_table实际长度
local tdrmeta = CS.UnityEngine.Resources.Load("testxxx.tdr").bytes
local ret_code, metalib = libtdrlua.load_metalib_buf(tdrmeta)
ASSERT_EQ(ret_code, 0)
buf_size = 56
local ret_code, buf = libtdrlua.bufalloc(buf_size)
ASSERT_EQ(ret_code, 0)
local ret_code, meta = libtdrlua.get_meta(metalib, "Pkg")
ASSERT_EQ(ret_code, 0)
pkg_table.head.cmd = 1
local ret_code, used_size = libtdrlua.table2buf(meta, pkg_table, buf, buf_size, 0)
ASSERT_EQ(ret_code, -2113862654)
local err_msg = libtdrlua.free_metalib(metalib)
ASSERT_EQ(err_msg, nil)
local err_msg = libtdrlua.buffree(buf)
ASSERT_EQ(err_msg, nil)
end
function CMyTestCaseLuaTdr.CaseTable2Buf_3(self)
--4.不设置version参数打包
local tdrmeta = CS.UnityEngine.Resources.Load("testxxx.tdr").bytes
local ret_code, metalib = libtdrlua.load_metalib_buf(tdrmeta)
ASSERT_EQ(ret_code, 0)
local buf_size = 71
local ret_code, buf = libtdrlua.bufalloc(buf_size)
ASSERT_EQ(ret_code, 0)
local ret_code, meta = libtdrlua.get_meta(metalib, "Pkg")
ASSERT_EQ(ret_code, 0)
pkg_table.head.cmd = 1
local ret_code, used_size = libtdrlua.table2buf(meta, pkg_table, buf, buf_size)
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(used_size, buf_size)
local ret_code, pkg_table2, used_size2 = libtdrlua.buf2table(meta, buf, used_size)
print("table2buf pkg_table2: " .. table_to_string(pkg_table2))
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 1)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 39)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login.name, "FrancisHe")
ASSERT_EQ(pkg_table2.body.login.pass, "123456")
ASSERT_EQ(pkg_table2.body.login.zone, "Japan")
ASSERT_EQ(pkg_table2.body.login.destIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.ext1, nil)
local err_msg = libtdrlua.free_metalib(metalib)
ASSERT_EQ(err_msg, nil)
local err_msg = libtdrlua.buffree(buf)
ASSERT_EQ(err_msg, nil)
end
function CMyTestCaseLuaTdr.CaseTable2Buf_4(self)
--5.version参数值小于等于meta中设置的version
local tdrmeta = CS.UnityEngine.Resources.Load("testxxx.tdr").bytes
local ret_code, metalib = libtdrlua.load_metalib_buf(tdrmeta)
ASSERT_EQ(ret_code, 0)
local buf_size = 71
local ret_code, buf = libtdrlua.bufalloc(buf_size)
ASSERT_EQ(ret_code, 0)
local ret_code, meta = libtdrlua.get_meta(metalib, "Pkg")
ASSERT_EQ(ret_code, 0)
pkg_table.head.cmd = 1
--Struct Pkg有设置versionindicator="head.version",因此会按照打包时的version解包,buf2table输入的version不会生效
local ret_code, used_size = libtdrlua.table2buf(meta, pkg_table, buf, buf_size, 2)
ASSERT_EQ(ret_code, 0)
local ret_code, pkg_table2, used_size2 = libtdrlua.buf2table(meta, buf, used_size, 3)
print("table2buf pkg_table2: " .. table_to_string(pkg_table2))
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 1)
ASSERT_EQ(pkg_table2.head.version, 2)
ASSERT_EQ(pkg_table2.head.bodyLen, 39)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, 0) --srcIp的version为3
ASSERT_EQ(pkg_table2.body.login.name, "FrancisHe")
ASSERT_EQ(pkg_table2.body.login.pass, "123456")
ASSERT_EQ(pkg_table2.body.login.zone, "Japan")
ASSERT_EQ(pkg_table2.body.login.destIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.ext1, nil)
local ret_code, meta = libtdrlua.get_meta(metalib, "PkgHead")
ASSERT_EQ(ret_code, 0)
local ret_code, used_size = libtdrlua.table2buf(meta, pkg_table.head, buf, buf_size, 3)
ASSERT_EQ(ret_code, 0)
local ret_code, pkg_table2, used_size2 = libtdrlua.buf2table(meta, buf, used_size, 2)
print("table2buf pkghead pkg_table2: " .. table_to_string(pkg_table2))
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(pkg_table2.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.msgid), "10000001")
ASSERT_EQ(pkg_table2.cmd, 1)
ASSERT_EQ(pkg_table2.version, 2)
ASSERT_EQ(pkg_table2.bodyLen, 0)
ASSERT_EQ(pkg_table2.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.srcIp, 0) --srcIp的version为3
--6.version参数值大于meta中设置的version
local ret_code, pkg_table3, used_size2 = libtdrlua.buf2table(meta, buf, used_size, 4)
print("table2buf pkghead pkg_table3: " .. table_to_string(pkg_table3))
ASSERT_EQ(ret_code, 0)
local ret_code, used_size = libtdrlua.table2buf(meta, pkg_table.head, buf, buf_size, 4)
ASSERT_EQ(ret_code, 0)
local err_msg = libtdrlua.free_metalib(metalib)
ASSERT_EQ(err_msg, nil)
local err_msg = libtdrlua.buffree(buf)
ASSERT_EQ(err_msg, nil)
end
function CMyTestCaseLuaTdr.CaseBuf2Table_1(self)
--2.len 大于buf长度,version为0
local tdrmeta = CS.UnityEngine.Resources.Load("testxxx.tdr").bytes
local ret_code, metalib = libtdrlua.load_metalib_buf(tdrmeta)
ASSERT_EQ(ret_code, 0)
buf_size = 128
local ret_code, buf = libtdrlua.bufalloc(buf_size)
ASSERT_EQ(ret_code, 0)
local ret_code, meta = libtdrlua.get_meta(metalib, "Pkg")
ASSERT_EQ(ret_code, 0)
pkg_table.head.cmd = 1
local ret_code, used_size = libtdrlua.table2buf(meta, pkg_table, buf, buf_size, 0)
ASSERT_EQ(ret_code, 0)
local ret_code, pkg_table2, used_size2 = libtdrlua.buf2table(meta, buf, used_size + 10, 0)
print("table2buf pkg_table2: " .. table_to_string(pkg_table2))
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 1)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 39)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login.name, "FrancisHe")
ASSERT_EQ(pkg_table2.body.login.pass, "123456")
ASSERT_EQ(pkg_table2.body.login.zone, "Japan")
ASSERT_EQ(pkg_table2.body.login.destIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.ext1, nil)
--3.len小于message(buf)长度
local ret_code, pkg_table2, used_size2 = libtdrlua.buf2table(meta, buf, used_size - 10, 0)
ASSERT_EQ(ret_code, -2113862654)
--4.meta和buf中数据结构定义不一致
local ret_code, meta_2 = libtdrlua.get_meta(metalib, "PkgBodyPrevious")
ASSERT_EQ(ret_code, 0)
local ret_code, pkg_table2, used_size2 = libtdrlua.buf2table(meta_2, buf, used_size, 0)
ASSERT_EQ(ret_code, -2113862552)
local err_msg = libtdrlua.free_metalib(metalib)
ASSERT_EQ(err_msg, nil)
local err_msg = libtdrlua.buffree(buf)
ASSERT_EQ(err_msg, nil)
end
function CMyTestCaseLuaTdr.CaseStr2Buf(self)
--1. str为空
local tdrmeta = CS.UnityEngine.Resources.Load("testxxx.tdr").bytes
local ret_code, metalib = libtdrlua.load_metalib_buf(tdrmeta)
ASSERT_EQ(ret_code, 0)
local buf_size = 71
local ret_code, buf = libtdrlua.bufalloc(buf_size)
ASSERT_EQ(ret_code, 0)
pkg_table.head.cmd = 1
local ret_code, meta = libtdrlua.get_meta(metalib, "PkgHead")
ASSERT_EQ(ret_code, 0)
local ret_code, used_size = libtdrlua.table2buf(meta, pkg_table.head, buf, buf_size, 0)
ASSERT_EQ(ret_code, 0)
local ret_code, str = libtdrlua.buf2str(buf, used_size)
ASSERT_EQ(ret_code, 0)
local ret_code, err_msg = libtdrlua.str2table(meta, "", 3)
ASSERT_EQ(ret_code, -2113862552)
--3.meta和str中数据结构定义不一致
local ret_code, meta2 = libtdrlua.get_meta(metalib, "PkgBody")
local ret_code, err_msg = libtdrlua.str2table(meta2, str, 0)
ASSERT_EQ(ret_code, -2113862552)
--4. version不设置
local ret_code, pkg_table2 = libtdrlua.str2table(meta, str)
ASSERT_EQ(ret_code, 0)
--5. version小于等于meta中version值
local ret_code, pkg_table3 = libtdrlua.str2table(meta, str, 2)
ASSERT_EQ(ret_code, 0)
--6. version大于meta中version值
local ret_code, pkg_table4 = libtdrlua.str2table(meta, str, 2)
ASSERT_EQ(ret_code, 0)
print("table2buf pkghead pkg_table2: " .. table_to_string(pkg_table2))
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(pkg_table2.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.msgid), "10000001")
ASSERT_EQ(pkg_table2.cmd, 1)
ASSERT_EQ(pkg_table2.version, 3)
ASSERT_EQ(pkg_table2.bodyLen, 0)
ASSERT_EQ(pkg_table2.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
local err_msg = libtdrlua.free_metalib(metalib)
ASSERT_EQ(err_msg, nil)
local err_msg = libtdrlua.buffree(buf)
ASSERT_EQ(err_msg, nil)
end
function CMyTestCaseLuaTdr.CaseZZZRefer_1(self)
--2 某数组refer的值大于数组count,调用table2buf函数
self.count = 1 + self.count
pkg_table.body.logout.count = 4
pkg_table.head.cmd = 2
local tdrmeta = CS.UnityEngine.Resources.Load("testxxx.tdr").bytes
local ret_code, metalib = libtdrlua.load_metalib_buf(tdrmeta)
ASSERT_EQ(ret_code, 0)
buf_size = 128
local ret_code, buf = libtdrlua.bufalloc(buf_size)
ASSERT_EQ(ret_code, 0)
local ret_code, meta = libtdrlua.get_meta(metalib, "Pkg")
ASSERT_EQ(ret_code, 0)
local ret_code, used_size = libtdrlua.table2buf(meta, pkg_table, buf, buf_size, 0)
ASSERT_EQ(ret_code, -2113862521)
--3 某数组refer的值等于数组count,调用table2buf打包和buf2table解包
pkg_table.body.logout.count = 3
local ret_code, used_size = libtdrlua.table2buf(meta, pkg_table, buf, buf_size, 0)
ASSERT_EQ(ret_code, 0)
local ret_code, pkg_table2 = libtdrlua.buf2table(meta, buf, used_size, 0)
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 2)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 17)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
local ret = -1
ASSERT_EQ(ret, -1)
ASSERT_EQ(tostring(pkg_table2.body.logout.reason + 1), "0")
ASSERT_EQ(pkg_table2.body.logout.count, 3)
ASSERT_EQ(pkg_table2.body.logout.attr, {-1, 0, 1})
ASSERT_EQ(pkg_table2.body.ext1, nil)
-- 4 某数组refer的值等于0,调用table2buf打包和buf2table解包
pkg_table.body.logout.count = 0
local ret_code, used_size = libtdrlua.table2buf(meta, pkg_table, buf, buf_size, 0)
ASSERT_EQ(ret_code, 0)
local ret_code, pkg_table2 = libtdrlua.buf2table(meta, buf, used_size, 0)
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 2)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 14)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.login, nil)
local ret = -1
ASSERT_EQ(ret, -1)
ASSERT_EQ(tostring(pkg_table2.body.logout.reason + 1), "0")
ASSERT_EQ(pkg_table2.body.logout.count, 0)
ASSERT_EQ(pkg_table2.body.logout.attr, {})
ASSERT_EQ(pkg_table2.body.ext1, nil)
pkg_table.body.logout.count = 2
pkg_table.head.cmd = 1
local err_msg = libtdrlua.free_metalib(metalib)
ASSERT_EQ(err_msg, nil)
local err_msg = libtdrlua.buffree(buf)
ASSERT_EQ(err_msg, nil)
end
function CMyTestCaseLuaTdr.CaseZZZZVersion_1(self)
--4.高版本多2个字段,用高版本meta,打包时传入低版本version, 然后用低版本meta解包(version为0)
self.count = 1 + self.count
pkg_table.head.cmd = 1
local tdrmeta = CS.UnityEngine.Resources.Load("testxxx.tdr").bytes
local ret_code, metalib_v3 = libtdrlua.load_metalib_buf(tdrmeta)
ASSERT_EQ(ret_code, 0)
local tdrmeta2 = CS.UnityEngine.Resources.Load("testxxx2.tdr").bytes
local ret_code, metalib_v4 = libtdrlua.load_metalib_buf(tdrmeta2)
ASSERT_EQ(ret_code, 0)
buf_size = 128
local ret_code, buf = libtdrlua.bufalloc(buf_size)
ASSERT_EQ(ret_code, 0)
local ret_code, meta_v3 = libtdrlua.get_meta(metalib_v3, "Pkg")
ASSERT_EQ(ret_code, 0)
local ret_code, meta_v4 = libtdrlua.get_meta(metalib_v4, "Pkg")
ASSERT_EQ(ret_code, 0)
local ret_code, used_size = libtdrlua.table2buf(meta_v4, pkg_table_v4, buf, buf_size, 3)
ASSERT_EQ(ret_code, 0)
local ret_code, pkg_table2 = libtdrlua.buf2table(meta_v3, buf, used_size, 0)
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(pkg_table2.head.magic, 32767)
ASSERT_EQ(tostring(pkg_table2.head.msgid), "10000001")
ASSERT_EQ(pkg_table2.head.cmd, 1)
ASSERT_EQ(pkg_table2.head.version, 3)
ASSERT_EQ(pkg_table2.head.bodyLen, 39)
ASSERT_EQ(pkg_table2.head.datetime, libtdrlua.str2tdrdatetime("2015-09-08 21:17:59"))
ASSERT_EQ(pkg_table2.head.srcIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.head.destIp, nil)
ASSERT_EQ(pkg_table2.body.login.name, "FrancisHe")
ASSERT_EQ(pkg_table2.body.login.pass, "123456")
ASSERT_EQ(pkg_table2.body.login.zone, "Japan")
ASSERT_EQ(pkg_table2.body.login.destIp, libtdrlua.str2tdrip("127.0.0.1"))
ASSERT_EQ(pkg_table2.body.ext1, nil)
--1.1 pack低版本(meta对应低版本),unpack高版本(meta对应高版本)
local ret_code, used_size = libtdrlua.table2buf(meta_v3, pkg_table, buf, buf_size, 0)
ASSERT_EQ(ret_code, 0)
local ret_code, pkg_table2 = libtdrlua.buf2table(meta_v4, buf, used_size, 0)
ASSERT_EQ(ret_code, 0)
--1.2 pack高版本,unpack低版本
local ret_code, used_size = libtdrlua.table2buf(meta_v4, pkg_table_v4, buf, buf_size, 0)
ASSERT_EQ(ret_code, 0)
local ret_code, pkg_table2 = libtdrlua.buf2table(meta_v3, buf, used_size, 0)
ASSERT_EQ(ret_code, -2113862544)
pkg_table.head.cmd = 1
local err_msg = libtdrlua.free_metalib(metalib_v3)
ASSERT_EQ(err_msg, nil)
local err_msg = libtdrlua.free_metalib(metalib_v4)
ASSERT_EQ(err_msg, nil)
local err_msg = libtdrlua.buffree(buf)
ASSERT_EQ(err_msg, nil)
end
function CMyTestCaseLuaTdr.CaseZZZZRandom(self)
--6.同一个结构类 entry 类型乱序排列,调用table2buf打包和buf2table解包
self.count = 1 + self.count
local tdrmeta = CS.UnityEngine.Resources.Load("testxxx.tdr").bytes
local ret_code, metalib = libtdrlua.load_metalib_buf(tdrmeta)
ASSERT_EQ(ret_code, 0)
buf_size = 128
local ret_code, buf = libtdrlua.bufalloc(buf_size)
ASSERT_EQ(ret_code, 0)
local ret_code, meta_v1 = libtdrlua.get_meta(metalib, "TestInnerStruct1")
ASSERT_EQ(ret_code, 0)
local ret_code, meta_v2 = libtdrlua.get_meta(metalib, "TestInnerStruct2")
ASSERT_EQ(ret_code, 0)
pkg_table_v1 = {
int8 = 127,
double = 2.2250738585072114e-308,
float = 1,
int16 = 32767,
int32Array = {-0x7FFFFFFF, 0, 0x7FFFFFFF},
}
pkg_table_v2 = {
double = 2.2250738585072114e-308,
int8 = 127,
int32Array = {-0x7FFFFFFF, 0, 0x7FFFFFFF},
int16 = 32767,
float = 1,
}
local ret_code, used_size = libtdrlua.table2buf(meta_v1, pkg_table_v1, buf, buf_size, 3)
ASSERT_EQ(ret_code, 0)
local ret_code, pkg_table2 = libtdrlua.buf2table(meta_v1, buf, used_size, 0)
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(pkg_table2.int8, 127)
ASSERT_EQ(pkg_table2.double, 2.2250738585072114e-308)
ASSERT_EQ(pkg_table2.float, 1)
ASSERT_EQ(pkg_table2.int16, 32767)
ASSERT_EQ(pkg_table2.int32Array, {-0x7FFFFFFF, 0, 0x7FFFFFFF})
local ret_code, used_size = libtdrlua.table2buf(meta_v2, pkg_table_v2, buf, buf_size, 3)
ASSERT_EQ(ret_code, 0)
local ret_code, pkg_table2 = libtdrlua.buf2table(meta_v2, buf, used_size, 0)
ASSERT_EQ(ret_code, 0)
ASSERT_EQ(pkg_table2.int8, 127)
ASSERT_EQ(pkg_table2.double, 2.2250738585072114e-308)
ASSERT_EQ(pkg_table2.float, 1)
ASSERT_EQ(pkg_table2.int16, 32767)
ASSERT_EQ(pkg_table2.int32Array, {-0x7FFFFFFF, 0, 0x7FFFFFFF})
local err_msg = libtdrlua.free_metalib(metalib)
ASSERT_EQ(err_msg, nil)
local err_msg = libtdrlua.buffree(buf)
ASSERT_EQ(err_msg, nil)
end
|
local fiber = require('fiber')
local checks = require('checks')
local errors = require('errors')
local netbox = require('net.box')
local ClientError = errors.new_class('ClientError')
local SessionError = errors.new_class('SessionError')
local function acquire_lock(session, lock_args)
checks('stateboard_session', {
uuid = 'string',
uri = 'string',
})
assert(session.connection ~= nil)
local lock_acquired, err = errors.netbox_call(session.connection,
'acquire_lock', {lock_args},
{timeout = session.call_timeout}
)
if lock_acquired == nil then
return nil, SessionError:new(err)
end
session.lock_acquired = lock_acquired
return lock_acquired
end
local function get_lock_delay(session)
checks('stateboard_session')
assert(session.connection ~= nil)
if session.lock_delay ~= nil then
return session.lock_delay
end
local lock_delay, err = errors.netbox_call(session.connection,
'get_lock_delay', nil,
{timeout = session.call_timeout}
)
if lock_delay == nil then
return nil, SessionError:new(err)
end
session.lock_delay = lock_delay
return lock_delay
end
local function set_leaders(session, updates)
checks('stateboard_session', 'table')
assert(session.connection ~= nil)
local ok, err = errors.netbox_call(session.connection,
'set_leaders', {updates},
{timeout = session.call_timeout}
)
if ok == nil then
return nil, SessionError:new(err)
end
return ok
end
local function get_leaders(session)
checks('stateboard_session')
assert(session.connection ~= nil)
local leaders, err = errors.netbox_call(session.connection,
'get_leaders', nil,
{timeout = session.call_timeout}
)
if leaders == nil then
return nil, SessionError:new(err)
end
return leaders
end
local function get_coordinator(session)
checks('stateboard_session')
assert(session.connection ~= nil)
local coodinator, err = errors.netbox_call(session.connection,
'get_coordinator', nil,
{timeout = session.call_timeout}
)
if err ~= nil then
return nil, SessionError:new(err)
end
return coodinator
end
local function set_vclockkeeper(session, replicaset_uuid, instance_uuid, vclock)
checks('stateboard_session', 'string', 'string', '?table')
assert(session.connection ~= nil)
local keeper, err = errors.netbox_call(session.connection,
'get_vclockkeeper', {replicaset_uuid},
{timeout = session.call_timeout}
)
if err ~= nil then
return nil, SessionError:new(err)
end
local ordinal = nil
if keeper == nil then
-- No keeper persisted
goto set_vclockkeeper
else
ordinal = keeper.ordinal
end
if keeper.instance_uuid == instance_uuid
and vclock == nil
then
-- No update needed
return true
end
::set_vclockkeeper::
local ok, err = errors.netbox_call(session.connection,
'set_vclockkeeper', {
replicaset_uuid,
instance_uuid,
ordinal,
vclock,
},
{timeout = session.call_timeout}
)
if ok == nil then
return nil, SessionError:new(err)
end
return true
end
local function get_vclockkeeper(session, replicaset_uuid)
checks('stateboard_session', 'string')
local vclockkeeper, err = errors.netbox_call(session.connection,
'get_vclockkeeper', {replicaset_uuid},
{timeout = session.call_timeout}
)
if err ~= nil then
return nil, SessionError:new(err)
end
if vclockkeeper ~= nil then
vclockkeeper.ordinal = nil
end
return vclockkeeper
end
local function is_locked(session)
checks('stateboard_session')
assert(session.connection ~= nil)
return session.connection:is_connected()
and session.lock_acquired
end
local function is_alive(session)
checks('stateboard_session')
assert(session.connection ~= nil)
return session.connection.state ~= 'error'
and session.connection.state ~= 'closed'
end
local function drop(session)
checks('stateboard_session')
assert(session.connection ~= nil)
session.lock_acquired = false
pcall(function()
session.connection:close()
end)
end
local session_mt = {
__type = 'stateboard_session',
__index = {
is_alive = is_alive,
is_locked = is_locked,
acquire_lock = acquire_lock,
set_leaders = set_leaders,
get_leaders = get_leaders,
get_lock_delay = get_lock_delay,
get_coordinator = get_coordinator,
set_vclockkeeper = set_vclockkeeper,
get_vclockkeeper = get_vclockkeeper,
drop = drop,
},
}
local function get_session(client)
checks('stateboard_client')
if client.session ~= nil
and client.session:is_alive() then
return client.session
end
local connection = netbox.connect(client.cfg.uri, {
user = 'client',
password = client.cfg.password,
wait_connected = false,
})
local session = {
lock_acquired = false,
call_timeout = client.cfg.call_timeout,
connection = connection,
longpoll_ordinal = -1,
}
client.session = setmetatable(session, session_mt)
return client.session
end
local function drop_session(client)
checks('stateboard_client')
if client.session ~= nil then
client.session:drop()
client.session = nil
end
end
local function longpoll(client, timeout)
checks('stateboard_client', 'number')
local deadline = fiber.clock() + timeout
while true do
local session = client:get_session()
local timeout = deadline - fiber.clock()
local ret, err = errors.netbox_call(session.connection,
'longpoll', {timeout, session.longpoll_ordinal},
{timeout = timeout + client.cfg.call_timeout}
)
if ret ~= nil then
session.longpoll_ordinal = ret.ordinal
ret.ordinal = nil
return ret
end
if fiber.clock() < deadline then
fiber.sleep(client.cfg.call_timeout)
-- continue
else
return nil, ClientError:new(err)
end
end
end
--- Check that stateboard is available.
--
-- @function check_quorum
-- @treturn boolean true / false
local function check_quorum(client)
local session = client:get_session()
return session.connection:ping()
end
local client_mt = {
__type = 'stateboard_client',
__index = {
longpoll = longpoll,
get_session = get_session,
drop_session = drop_session,
check_quorum = check_quorum,
},
}
local function new(cfg)
checks({
uri = 'string',
password = 'string',
call_timeout = 'number',
})
local client = {
state_provider = 'tarantool',
session = nil,
cfg = table.deepcopy(cfg),
}
return setmetatable(client, client_mt)
end
return {
new = new,
}
|
local data = {}
data.CODE_TRUNCATE = 300 -- 300
data.COMMENT_TRUNCATE = 300 -- 300
data.BATCH_SIZE = 5
data.EOS_NUM = 1
data.RES_NUM = 1
function data.string_split(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t={} ; i=1
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
t[i] = str
i = i + 1
end
return t
end
function data.indexing(filenames)
local code_set, comment_set = {}, {}
for _, filename in ipairs(filenames) do
for line in io.open(filename):lines() do
local inputs = data.string_split(line, '\t')
local code_seq, comment_seq = data.string_split(inputs[1]), data.string_split(inputs[2])
for _, code_token in ipairs(code_seq) do code_set[code_token] = true end
for _, comment_token in ipairs(comment_seq) do comment_set[comment_token] = true end
end
end
-- the first word_cnt tokens are comment tokens; additional code tokens are indexed from word_cnt + 1 to token_cnt
-- data.RES_NUM is the number of reserved tokens (e.g. EOS), which take the indices starting from 1
local token2index, index2token, token_cnt, word_cnt = {}, {}, data.RES_NUM, 0
token2index['EOS'] = data.EOS_NUM
for token, _ in pairs(comment_set) do
token_cnt = token_cnt + 1
token2index[token] = token_cnt
end
word_cnt = token_cnt
for token, _ in pairs(code_set) do
if token2index[token] == nil then
token_cnt = token_cnt + 1
token2index[token] = token_cnt
end
end
for k, v in pairs(token2index) do
index2token[v] = k
end
return token2index, index2token, token_cnt, word_cnt
end
function data.prepare_data(filename, token2index, word_cnt)
local seq_data = {}
for line in io.open(filename):lines() do
local inputs = data.string_split(line, '\t')
local code_seq, comment_seq = data.string_split(inputs[1]), data.string_split(inputs[2])
table.insert(seq_data, {code_seq = code_seq, comment_seq = comment_seq})
end
table.sort(seq_data, function(a, b) return #a.comment_seq < #b.comment_seq end)
local batches = {}
local i, j = 1, 1
while i <= #seq_data do
j = math.min(i + data.BATCH_SIZE - 1, #seq_data)
local max_code_len, max_comment_len = 0, 0
for k = i, j do
-- seq length + 1 for eos
max_code_len = math.max(max_code_len, #seq_data[k].code_seq + 1)
max_comment_len = math.max(max_comment_len, #seq_data[k].comment_seq + 1)
end
max_code_len = math.min(max_code_len, data.CODE_TRUNCATE)
max_comment_len = math.min(max_comment_len, data.COMMENT_TRUNCATE)
local t_size = j - i + 1
-- code_matrix: code seq
-- comment matrix: EOS + code seq
-- comment next: code seq + EOS
-- mask indices correspond to "matrix"
local code_matrix, comment_matrix = torch.Tensor(t_size, max_code_len):fill(data.EOS_NUM), torch.Tensor(t_size, max_comment_len):fill(data.EOS_NUM)
local code_mask, comment_mask = torch.Tensor(t_size, max_code_len):zero(), torch.Tensor(t_size, max_comment_len):zero()
local comment_next = torch.Tensor(t_size, max_comment_len):fill(data.EOS_NUM)
local word_label = torch.Tensor(t_size, word_cnt):zero()
for k = i, j do
local word_dict = {}
local t_code_len = math.min(#seq_data[k].code_seq, max_code_len)
for l = 1, t_code_len do
code_matrix[k - i + 1][l] = token2index[seq_data[k].code_seq[l]]
code_mask[k - i + 1][l] = 1
end
local t_comment_len = math.min(#seq_data[k].comment_seq, max_comment_len - 1)
for l = 1, t_comment_len do
comment_matrix[k - i + 1][l + 1] = token2index[seq_data[k].comment_seq[l]]
comment_next[k - i + 1][l] = token2index[seq_data[k].comment_seq[l]]
comment_mask[k - i + 1][l + 1] = 1
word_dict[comment_next[k - i + 1][l]] = true
end
comment_mask[k - i + 1][1] = 1
local ind = 1
for key, _ in pairs(word_dict) do
word_label[k - i + 1][ind] = key
ind = ind + 1
end
end
table.insert(batches, {code_matrix, code_mask, comment_matrix, comment_mask, comment_next, word_label})
i = j + 1
end
return batches
end
return data
|
local damage = {
long_sword = {
name = "長剣",
verb = "切られた",
verb_and = "切り払い"
},
short_sword = {
name = "短剣",
verb = "刺された",
verb_and = "突き刺して"
},
axe = {
name = "斧",
verb = "切られた",
verb_and = "切り払い"
},
blunt = {
name = "鈍器",
verb = "打たれた",
verb_and = "打って"
},
polearm = {
name = "槍",
verb = "刺された",
verb_and = "突き刺して"
},
stave = {
name = "杖",
verb = "打たれた",
verb_and = "打って"
},
scythe = {
name = "鎌",
verb = "切られた",
verb_and = "切り払い"
},
bow = {
name = "弓",
verb = "撃たれた",
verb_and = "射撃し"
},
crossbow = {
name = "クロスボウ",
verb = "撃たれた",
verb_and = "射撃し"
},
firearm = {
name = "銃",
verb = "撃たれた",
verb_and = "射撃し"
},
throwing = {
verb = "攻撃された",
verb_and = "投げ"
}
}
return {
damage = {
weapon = {
elona = damage
}
}
}
|
r = math.random(#zensko_ime_nom);
ime = zensko_ime_nom[r];
|
slot0 = class("ShipRarity")
slot0.Gray = 2
slot0.Blue = 3
slot0.Purple = 4
slot0.Gold = 5
slot0.SSR = 6
slot0.Rarity2Print = function (slot0)
if not slot0.prints then
slot0.prints = {
nil,
"1",
"2",
"3",
"4",
"5"
}
end
return slot0.prints[slot0]
end
slot0.Rarity2HexColor = function (slot0)
if not slot0.colors then
slot0.colors = {
"FFFFFFFF",
"FFFFFFFF",
"41D7FFFF",
"CC7BFFFF",
"FDC637FF",
"ff5e39"
}
end
return slot0.colors[slot0]
end
slot0.Rarity2FrameColor = function (slot0)
if not slot0.frameColors then
slot0.frameColors = {
Color(0.7411764705882353, 0.7411764705882353, 0.7411764705882353, 1),
Color(0.7411764705882353, 0.7411764705882353, 0.7411764705882353, 1),
Color(0.396078431372549, 0.7803921568627451, 1, 1),
Color(0.7490196078431373, 0.6392156862745098, 1, 1),
Color(1, 0.9058823529411765, 0.2627450980392157, 1),
Color(1, 1, 1, 1)
}
end
return slot0.frameColors[slot0]
end
slot0.SSRGradient = function (slot0)
return "<material=outline c=#00000040 x=1 y=1><material=gradient from=#FF0000 to=#00FF00 x=1 y=1>" .. slot0 .. "</material></material>"
end
return slot0
|
--------------------------------------------------------------------------------
-- Handler.......... : onOpenItemInBrowser
-- Author........... :
-- Description...... :
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function Steam.onOpenItemInBrowser ( sItem )
--------------------------------------------------------------------------------
if user.getAIState ( this.getUser ( ), "Steam" ) == "Idle" then return 0 end
Steamworks.OpenItemInBrowser ( sItem )
--------------------------------------------------------------------------------
end
--------------------------------------------------------------------------------
|
package.path = "../?.lua;" .. package.path
local rawterm = require("rawterm")
rawterm.enableRawMode({ signals = true })
local function isControlChar(c)
if type(c) == "string" then c = c:byte() end
return not (c >= 32 and c <= 126)
end
local function copyTable(t)
local nt = {}
for i = 1, #t do
nt[i] = t[i]
end
return nt
end
local Key = {
ENTER = 1,
BACKSPACE = 2, DELETE = 3,
UP = 4, RIGHT = 5, DOWN = 6, LEFT = 7,
HOME = 8, END = 9,
UNKNOWN = 9999
}
local singleEscapes = { A = Key.UP, B = Key.DOWN, C = Key.RIGHT, D = Key.LEFT
, H = Key.HOME, F = Key.END }
local function parseSpecial(c)
if c == 13 then return Key.ENTER
elseif c == 127 then return Key.BACKSPACE
elseif c == 27 then
-- Escape sequence
local c2 = assert(io.read(1), "Empty escape sequence")
if c2 == "[" then
local c3 = assert(io.read(1), "Partial escape sequence")
-- Check for single char escapes
if singleEscapes[c3] then return singleEscapes[c3] end
if c3 == "3" then
local c4 = assert(io.read(1), "Partial escape sequence")
if c4 == "~" then
return Key.DELETE
end
end
end
end
return Key.UNKNOWN
end
local function read(prompt, history)
history = copyTable(history or {})
local historyPos = #history + 1
history[historyPos] = ""
local linePos = 0
local scrolled = 0
local startX, startY
local windowWidth, windowHeight = rawterm.getWindowSize()
local function getProjectedCursor()
local xPos = ((startX + linePos - 1) % windowWidth) + 1
local yPos = startY + math.floor((startX + linePos - 1) / windowWidth)
return xPos, yPos
end
local function checkWindowOverflow(doScroll)
-- Manage window overflow (line-wrap)
if startX + #history[historyPos] > (scrolled + 1)*windowWidth then
local oscroll = scrolled
scrolled = math.floor((startX + #history[historyPos]) / windowWidth)
if scrolled + startY > windowHeight then
local diff = scrolled - oscroll
startY = startY - diff
if doScroll then
rawterm.scroll(diff)
end
end
end
end
local function redrawToEnd(extra)
local xPos, yPos
if linePos == 0 then
-- Special case at the very beginning we don't want to backwrite
xPos, yPos = getProjectedCursor()
else
linePos = linePos - 1
xPos, yPos = getProjectedCursor()
linePos = linePos + 1
end
rawterm.setCursorPos(xPos, yPos)
io.write(history[historyPos]:sub(linePos) .. (extra or ""))
checkWindowOverflow(true)
end
local function redrawLine()
rawterm.setCursorPos(startX, startY)
rawterm.clearToLineEnd()
for i = startY + 1, startY + scrolled do
rawterm.setCursorPos(1, i)
rawterm.clearLine()
end
rawterm.setCursorPos(startX, startY)
io.write(history[historyPos])
checkWindowOverflow(false)
end
local function updateCursor()
if linePos < 0 then
linePos = 0
elseif linePos > #history[historyPos] then
linePos = #history[historyPos]
end
rawterm.setCursorPos(getProjectedCursor())
end
local function insertChar(c)
history[historyPos] =
history[historyPos]:sub(1, linePos) ..
c ..
history[historyPos]:sub(linePos + 1)
linePos = linePos + 1
end
local function deleteChar()
history[historyPos] =
history[historyPos]:sub(1, linePos - 1) ..
history[historyPos]:sub(linePos + 1)
linePos = linePos - 1
end
io.write(prompt or "")
startX, startY = rawterm.getCursorPos()
while true do
local char = io.read(1) or "\0"
if isControlChar(char) then
local key = parseSpecial(char:byte())
if key == Key.ENTER then
linePos = #history[historyPos]
updateCursor()
print() -- To exit this line
return history[historyPos]
end
if key == Key.LEFT then
linePos = linePos - 1
elseif key == Key.RIGHT then
linePos = linePos + 1
elseif key == Key.UP then
historyPos = math.max(1, historyPos - 1)
linePos = #history[historyPos]
redrawLine()
elseif key == Key.DOWN then
historyPos = math.min(historyPos + 1, #history)
linePos = #history[historyPos]
redrawLine()
elseif key == Key.HOME then
linePos = 0
elseif key == Key.END then
linePos = #history[historyPos]
elseif key == Key.BACKSPACE then
if linePos > 0 then
deleteChar()
redrawToEnd(" ")
end
elseif key == Key.DELETE then
if linePos < #history[historyPos] then
linePos = linePos + 1
updateCursor()
deleteChar()
redrawToEnd(" ")
end
end
updateCursor()
else -- Normal input
insertChar(char)
redrawToEnd()
updateCursor()
end
end
end
local history = {}
print("Type 'quit' to quit.")
while true do
local out = read("Tell me something: ", { history = history })
if out == "quit" then
print("Okay fine.")
break
end
print("Wow, " .. out .. " is pretty interesting.")
table.insert(history, out)
end
rawterm.disableRawMode()
|
--[[
Original work Copyright (c) 2015 Frank Edelhaeuser
Modified work Copyright (c) 2017 Uday G
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 mdnsclient = {}
function mdns_make_query(service)
-- header: transaction id, flags, qdcount, ancount, nscount, nrcount
local data = '\000\000'..'\000\000'..'\000\001'..'\000\000'..'\000\000'..'\000\000'
-- question section: qname, qtype, qclass
for n in string.gmatch(service, "([^.]+)") do
data = data..string.char(#n)..n
end
return data..string.char(0)..'\000\012'..'\000\001'
end
function mdns_parse(service, data, answers)
--- Helper function: parse DNS name field, supports pointers
-- @param data received datagram
-- @param offset offset within datagram (1-based)
-- @return parsed name
-- @return offset of first byte behind name (1-based)
local function parse_name(data, offset)
local n,d,l = '', '', data:byte(offset)
while (l > 0) do
if (l >= 192) then -- pointer
local p = (l % 192) * 256 + data:byte(offset + 1)
return n..d..parse_name(data, p + 1), offset + 2
end
n = n..d..data:sub(offset + 1, offset + l)
offset = offset + l + 1
l = data:byte(offset)
d = '.'
end
return n, offset + 1
end
--- Helper function: check if a single bit is set in a number
-- @param val number
-- @param mask mask (single bit only)
-- @return true if bit is set, false if not
local function bit_set(val, mask)
return val % (mask + mask) >= mask
end
-- decode and check header
if (not data) then
return nil, 'no data'
end
local len = #data
if (len < 12) then
return nil, 'truncated'
end
local header = {
id = data:byte(1) * 256 + data:byte(2),
flags = data:byte(3) * 256 + data:byte(4),
qdcount = data:byte(5) * 256 + data:byte(6),
ancount = data:byte(7) * 256 + data:byte(8),
nscount = data:byte(9) * 256 + data:byte(10),
arcount = data:byte(11) * 256 + data:byte(12),
}
if (not bit_set(header.flags, 0x8000)) then
return nil, 'not a reply'
end
if (bit_set(header.flags, 0x0200)) then
return nil, 'TC bit is set'
end
if (header.ancount == 0) then
return nil, 'no answer records'
end
-- skip question section
local name
local offset = 13
if (header.qdcount > 0) then
for i=1, header.qdcount do
if (offset > len) then
return nil, 'truncated'
end
name, offset = parse_name(data, offset)
offset = offset + 4
end
end
-- evaluate answer section
for i=1, header.ancount do
if (offset > len) then
return nil, 'truncated'
end
name, offset = parse_name(data, offset)
local type = data:byte(offset + 0) * 256 + data:byte(offset + 1)
local rdlength = data:byte(offset + 8) * 256 + data:byte(offset + 9)
local rdoffset = offset + 10
-- A record (IPv4 address)
if (type == 1) then
if (rdlength ~= 4) then
return nil, 'bad RDLENGTH with A record'
end
answers.a[name] = string.format('%d.%d.%d.%d', data:byte(rdoffset + 0), data:byte(rdoffset + 1), data:byte(rdoffset + 2), data:byte(rdoffset + 3))
end
-- PTR record (pointer)
if (type == 12) then
local target = parse_name(data, rdoffset)
table.insert(answers.ptr, target)
end
-- AAAA record (IPv6 address)
if (type == 28) then
if (rdlength ~= 16) then
return nil, 'bad RDLENGTH with AAAA record'
end
local offs = rdoffset
local aaaa = string.format('%x', data:byte(offs) * 256 + data:byte(offs + 1))
while (offs < rdoffset + 14) do
offs = offs + 2
aaaa = aaaa..':'..string.format('%x', data:byte(offs) * 256 + data:byte(offs + 1))
end
-- compress IPv6 address
for _, s in ipairs({ ':0:0:0:0:0:0:0:', ':0:0:0:0:0:0:', ':0:0:0:0:0:', ':0:0:0:0:', ':0:0:0:', ':0:0:' }) do
local r = aaaa:gsub(s, '::')
if (r ~= aaaa) then
aaaa = r
break
end
end
answers.aaaa[name] = aaaa
end
-- SRV record (service location)
if (type == 33) then
if (rdlength < 6) then
return nil, 'bad RDLENGTH with SRV record'
end
answers.srv[name] = {
target = parse_name(data, rdoffset + 6),
port = data:byte(rdoffset + 4) * 256 + data:byte(rdoffset + 5)
}
end
-- next answer record
offset = offset + 10 + rdlength
end
return answers
end
--- Locate MDNS services in local network
--
-- @param service MDNS service name to search for (e.g. _ipps._tcp). A .local postfix will
-- be appended if needed. If this parameter is not specified, all services
-- will be queried.
--
-- @param timeout Number of seconds to wait for MDNS responses. The default timeout is 2
-- seconds if this parameter is not specified.
--
-- @param own_ip querying device IP address
--
-- @param callback to receive Table of MDNS services. Entry keys are service identifiers. Each entry
-- is a table containing all or a subset of the following elements:
-- name: MDNS service name (e.g. HP Laserjet 4L @ server.example.com)
-- service: MDNS service type (e.g. _ipps._tcp.local)
-- hostname: hostname
-- port: port number
-- ipv4: IPv4 address
-- ipv6: IPv6 address
--
-- @return Nothing
--
function mdnsclient.query(service, timeout, own_ip, callback)
-- browse all services if no service name specified
local browse = false
if (not service) then
service = '_services._dns-sd._udp'
browse = true
end
-- append .local if needed
if (service:sub(-6) ~= '.local') then
service = service..'.local'
end
-- default timeout: 2 seconds
local timeout = timeout or 2.0
local mdns_multicast_ip, mdns_port = '224.0.0.251', 5353
net.multicastJoin(own_ip, mdns_multicast_ip)
udpSocket = net.createUDPSocket()
-- collect responses until timeout
local answers = { srv = {}, a = {}, aaaa = {}, ptr = {} }
udpSocket:on("receive", function(s, data, port, ip)
print(string.format("received '%s' from %s:%d", data, ip, port))
if data and (port == mdns_port) then
mdns_parse(service, data, answers)
if (browse) then
for _, ptr in ipairs(answers.ptr) do
s:send(mdns_port, mdns_multicast_ip, mdns_make_query(ptr))
end
answers.ptr = {}
end
end
end)
udpSocket:listen()
port, ip = udpSocket:getaddr()
local mdns_query = mdns_make_query(service)
udpSocket:send(mdns_port, mdns_multicast_ip, mdns_query)
tmr.create():alarm(timeout*1000,tmr.ALARM_SINGLE, function()
--once the timer is over, cleanup thesockets and collect the results
udpSocket:close()
net.multicastLeave(own_ip,mdns_multicast_ip)
local services = {}
for k,v in pairs(answers.srv) do
local pos = k:find('%.')
if (pos and (pos > 1) and (pos < #k)) then
local name, svc = k:sub(1, pos - 1), k:sub(pos + 1)
print("Name: "..name.." Service: "..svc)
if (browse) or (svc == service) then
if (v.target) then
if (answers.a[v.target]) then
v.ipv4 = answers.a[v.target]
end
if (answers.aaaa[v.target]) then
v.ipv6 = answers.aaaa[v.target]
end
if (v.target:sub(-6) == '.local') then
v.hostname = v.target:sub(1, #v.target - 6)
end
v.target = nil
end
v.service = svc
v.name = name
services[k] = v
end
end
end
local createCallbackWithArgs = function (err,data)
return function()
callback(err,data)
end
end
node.task.post(createCallbackWithArgs(nil,services))
end)
end
-- query results and 1 based index to identify the result to return when there are more than one matches
-- query results and 1 based index to identify the result to return when there are more than one matches
function mdnsclient.extractIpAndPortFromResults(results,index)
local ip,port
local result_index = 1
for k,v in pairs(results) do
print(k)
for k1,v1 in pairs(v) do
print(' '..k1..': '..v1)
if(k1=="ipv4") then ip = v1 end
if(k1=="ip") then ip = v1 end
if(k1=="ipv6") then ip = v1 end
if(k1=="port") then port = v1 end
end
if result_index == index then
return ip , port
else
result_index = result_index + 1
end
end
return nil , nil
end
return mdnsclient
|
return function(state, action)
state = state or false
if action.type == "ToggleWorldView" then
return action.enabled
end
return state
end
|
include( "shared.lua" )
include( "robloxhud.lua")
include( "robloxchat.lua")
--include( "camerastuff.lua")
include( "buildmode.lua")
include( "lavakillfield.lua")
function GM:SpawnMenuOpen()
--Just for the competition i'm disabling the q menu cuz I dont have any way to figure out if this admin check works.
--return LocalPlayer():IsAdmin()
return false
end
hook.Add('OnContextMenuOpen', 'NoContext4u', function()return false end)
local hide = {
["CHudWeaponSelection"] = true
--["CHudChatC"] = true
}
hook.Add( "HUDShouldDraw", "HideHUD", function( name )
if ( hide[ name ] ) then return false end
end )
surface.CreateFont( "ConvictSansOverlay", {
font = "Comic Sans MS", -- Use the font-name which is shown to you by your operating system Font Viewer, not the file name
extended = false,
size = 32,
weight = 500,
blursize = 0,
scanlines = 0,
antialias = true,
underline = false,
italic = false,
strikeout = false,
symbol = false,
rotary = false,
shadow = false,
additive = false,
outline = false,
} )
local ZoomLevel = 20
function ClientZoom()
end
local messageOverlay = {}
messageOverlay.text = ""
messageOverlay.time = 0
function enableMoveControls()
enableMouseControls()
end
usermessage.Hook("openBuildControls", enableBuildControls)
net.Receive("client_ScreenMessage", function()
local ply = net.ReadEntity()
local message = net.ReadString()
messageOverlay.text = message
messageOverlay.target = ply
messageOverlay.time = CurTime() + 5
end)
function magicDupeMachine(dupeTable_c, fileName)
-- Make ourselves a new file name to work with given the filename they want to write to.
local newFileName = "fbg_" .. fileName .. ".txt"
-- Write this to a new file in the /data/ directory!
file.Write(newFileName, dupeTable_c)
if file.Exists(newFileName, "DATA") != true then
print("OOF! Somethings wrong! Saved file not found!")
else
print("DING! File done saving.")
print("File contents:")
print(file.Read(newFileName, "DATA"))
end
end
net.Receive("client_SaveWorld", function()
local ply = net.ReadEntity()
local message = net.ReadString()
local fileName = net.ReadString()
if LocalPlayer() == ply then
magicDupeMachine(message, fileName)
end
end)
LocalPlayer().EnableThirdPerson = false
net.Receive("client_changethird", function()
LocalPlayer().EnableThirdPerson = net.ReadBool()
end)
function messageOv(ply, message)
local greybox = draw.RoundedBox( 0, 0, 0, ScrW(), ScrH(), Color(214, 209, 209,150))
local offset = string.len(message) * 5
local text = draw.Text({
text = message,
font = "ConvictSansOverlay",
pos = { (ScrW() / 2) - offset, (ScrH() / 2) - 20 },
color = NormalColor
})
end
function messageOvControl()
if (messageOverlay.text != "") && (messageOverlay.time > CurTime()) then
messageOv(messageOverlay.target, messageOverlay.text)
end
end
hook.Add("HUDPaint", "RobloxOverlay", messageOvControl)
local ScrollDist = 0
local CamPos -- This is for keeping track of where the thirdperson cam is.
local moveClickDelay = 0
local Distance2Move = 0
local walktimeGlobal = 0
--local hasChanged = false
--local isMoving = false
--==============================================================
--[[ This controls the dank thirdperson cam. ]]
local thirdpersonCamera_Allowed = true
local mousePanel2 = vgui.Create("DFrame")
mousePanel2:SetSize(ScrW(), ScrH())
mousePanel2:SetPos(0,0)
mousePanel2:SetAlpha(0)
mousePanel2:SetWorldClicker(true)
mousePanel2:ShowCloseButton(true)
mousePanel2:SetCursor("blank")
mousePanel2:SetKeyboardInputEnabled( true )
--mousePanel2:SetDraggable(true)
function mousePanel2:OnMouseWheeled(delta)
if delta == 1 then
ScrollDist = ScrollDist - 10
elseif delta == -1 then
ScrollDist = ScrollDist + 10
end
end
--[[ This is how we do click to move. It's mega jank.]]
function click2move()
if LocalPlayer().EnableThirdPerson == true then
if (ScrollDist > 5 && input.IsMouseDown(MOUSE_MIDDLE) == true) && moveClickDelay < CurTime() then
local x, y = gui.MousePos()
local tr = util.QuickTrace( CamPos, gui.ScreenToVector( gui.MousePos() ) * 100000, LocalPlayer() )
local ShootyShootPos = LocalPlayer():GetShootPos()
local Dist = LocalPlayer():GetPos():Distance(tr.HitPos)
if Dist <= 1000 then
LocalPlayer():SetEyeAngles((tr.HitPos - ShootyShootPos):Angle())
local walktime = Dist / 210
walktimeGlobal = CurTime() + walktime
LocalPlayer():ConCommand("+forward")
timer.Simple(walktime, function()
if walktimeGlobal < CurTime() then
LocalPlayer():ConCommand("-forward")
end
end)
end
moveClickDelay = CurTime() + 0.5
end
end
end
hook.Add( "Think", "Click2Move", click2move )
--[[ Just a heads up this is basically gonna be a clone of the context menu meme
]]
--vgui.Register( "CoolmousePanel2", mousePanel2, "EditablePanel")
function mousePanel2:Init()
-- I guess we setup our panel here? Really hacky shit imo.
self:SetSize(ScrW(), ScrH())
--self:Center()
self:SetWorldClicker(false)
self:SetCursor("blank")
end
function mousePanel2:Open()
if (self:IsVisible()) then return end
CloseDermaMenus()
mousePanel2:SetAlpha(0)
--self:MakePopup()
gui.EnableScreenClicker(true)
self:SetVisible(true)
self:SetKeyboardInputEnabled( false )
self:SetMouseInputEnabled( true )
RestoreCursorPosition()
end
function mousePanel2:Close( bSkipAnim )
gui.EnableScreenClicker(false)
RememberCursorPosition()
--self:MakePopup(false)
self:SetKeyboardInputEnabled( false )
self:SetMouseInputEnabled( false )
self:KillFocus()
self:SetAlpha( 255 )
self:SetVisible( false )
--self:RestoreControlPanel()
CloseDermaMenus()
end
function enableMouseControls(ply)
mousePanel2:Open()
end
function disableMouseControls(ply)
mousePanel2:Close()
end
local toggle = false
local clicktoggle = false
function pivotView()
if LocalPlayer().EnableThirdPerson == true then
if CLIENT then
if input.IsMouseDown(MOUSE_MIDDLE) == true then
if clicktoggle == true then
local posx, posy = mousePanel2:CursorPos()
local aimpos = LocalPlayer():GetAimVector()
--print(aimpos)
clicktoggle = false
end
else
if clicktoggle == false then
clicktoggle = true
end
end
if input.IsMouseDown(MOUSE_RIGHT) == true then
if toggle == true then
disableMouseControls()
toggle = false
end
else
--
if toggle == false then
enableMouseControls()
toggle = true
end
end
end
if LocalPlayer():Team() == 2 then
disableMouseControls(LocalPlayer())
end
else
disableMouseControls(LocalPlayer())
end
--print(LocalPlayer().EnableThirdPerson)
end
hook.Add("Think", "pivotView", pivotView)
--[[
if thirdpersonCamera_Allowed == true then
enableMouseControls()
print("Thirdperson enabled")
else
disableMouseControls()
end
]]
usermessage.Hook("openMoveControls", enableMouseControls)
--==============================================================
-- CUSTOM THIRDPERSON CAM TEST
local function MyCalcView( ply, pos, angles, fov )
if ScrollDist < 5 then
ScrollDist = 5
disableMouseControls(ply)
end
if ScrollDist > 275 then ScrollDist = 275 end
if ScrollDist != 5 and LocalPlayer():Team() != 2 then
local view = {}
view.origin = pos + Vector(0,0,(ScrollDist))-( angles:Forward()*((ScrollDist * 4)) )
local ViewPos = pos + Vector(0,0,(ScrollDist))-( angles:Forward()*((ScrollDist * 4)) )
local ViewAng = (((ply:GetPos() + Vector(0,0,70)) - ViewPos)):GetNormalized():Angle()
CamPos = ViewPos
view.angles = ViewAng
view.fov = fov
view.drawviewer = true
return view
else
local view = {}
view.origin = pos
view.angles = ViewAng
view.fov = fov
view.drawviewer = false
return view
end
end
hook.Add( "CalcView", "MyCalcView", MyCalcView )
|
if game.SinglePlayer() then
util.AddNetworkString("arccw_sp_lhikanim")
util.AddNetworkString("arccw_sp_anim")
util.AddNetworkString("arccw_sp_health")
util.AddNetworkString("arccw_sp_checkpoints")
end
util.AddNetworkString("arccw_sendattinv")
util.AddNetworkString("arccw_slidepos")
util.AddNetworkString("arccw_colorindex")
util.AddNetworkString("arccw_asktoattach")
util.AddNetworkString("arccw_asktodetach")
util.AddNetworkString("arccw_asktodrop")
util.AddNetworkString("arccw_networkatts")
util.AddNetworkString("arccw_firemode")
util.AddNetworkString("arccw_quicknade")
util.AddNetworkString("arccw_togglecustomize")
util.AddNetworkString("arccw_ubgl")
util.AddNetworkString("arccw_npcgiverequest")
util.AddNetworkString("arccw_npcgivereturn")
util.AddNetworkString("arccw_rqwpnnet")
util.AddNetworkString("arccw_blacklist")
util.AddNetworkString("arccw_sendatthp")
util.AddNetworkString("arccw_reloadatts")
util.AddNetworkString("arccw_sendbullet")
util.AddNetworkString("arccw_sendconvar")
util.AddNetworkString("arccw_ttt_bodyattinfo")
util.AddNetworkString("arccw_networksound")
util.AddNetworkString("arccw_togglenum")
util.AddNetworkString("arccw_networktpanim")
|
-----------------------------------
-- Area: Yahse Hunting Grounds
-- NPC: Yahse Wildflower
-- Involved in quest Children of the Rune
-- pos 370.6285 0.6692 153.3728
-----------------------------------
require("scripts/globals/npc_util")
local ID = require("scripts/zones/Yahse_Hunting_Grounds/IDs")
function onTrade(player, npc, trade)
end
function onTrigger(player, npc)
-- CHILDREN OF THE RUNE
if player:getQuestStatus(ADOULIN, tpz.quest.id.adoulin.CHILDREN_OF_THE_RUNE) == QUEST_ACCEPTED then
npcUtil.giveKeyItem(player, tpz.ki.YAHSE_WILDFLOWER_PETAL)
end
end
function onEventUpdate(player, csid, option)
end
function onEventFinish(player, csid, option)
end
|
local p = {}
p.ssid = "linksys"
p.pass = "1234"
return p
|
--------------------------------
-- @module EventFocus
-- @extend Event
-- @parent_module cc
--------------------------------
-- Constructor.<br>
-- param widgetLoseFocus The widget which lose focus.<br>
-- param widgetGetFocus The widget which get focus.<br>
-- js ctor
-- @function [parent=#EventFocus] EventFocus
-- @param self
-- @param #ccui.Widget widgetLoseFocus
-- @param #ccui.Widget widgetGetFocus
-- @return EventFocus#EventFocus self (return value: cc.EventFocus)
return nil
|
--[[------------------------------------------------
-- Love Frames - A GUI library for LOVE --
-- Copyright (c) 2012-2014 Kenny Shields --
--]]------------------------------------------------
return function(loveframes)
---------- module start ----------
-- button object
local newobject = loveframes.newObject("treenode", "loveframes_object_treenode", true)
--[[---------------------------------------------------------
- func: initialize()
- desc: initializes the object
--]]---------------------------------------------------------
function newobject:initialize()
self.type = "treenode"
self.text = "Node"
self.width = 250
self.height = 16
self.level = 0
self.leftpadding = 0
self.lastclick = 0
self.open = false
self.internal = true
self.internals = {}
self.icon = nil
self.onOpen = nil
self.onClose = nil
self:setDrawFunc()
end
--[[---------------------------------------------------------
- func: update(deltatime)
- desc: updates the object
--]]---------------------------------------------------------
function newobject:_update(dt)
local state = loveframes.state
local selfstate = self.state
if state ~= selfstate then
return
end
local visible = self.visible
local alwaysupdate = self.alwaysupdate
if not visible then
if not alwaysupdate then
return
end
end
self:checkHover()
local parent = self.parent
local base = loveframes.base
local update = self.update
local tree = self.tree
self:setClickBounds(tree.x, tree.y, tree.width, tree.height)
for k, v in ipairs(self.internals) do
if v.type == "treenode" then
if self.open then
v.x = v.tree.x - v.tree.offsetx
v.y = (v.tree.y + self.tree.itemheight) - v.tree.offsety
if v.width > self.tree.itemwidth then
self.tree.itemwidth = v.width
end
self.tree.itemheight = self.tree.itemheight + v.height
v:_update(dt)
end
else
v:_update(dt)
end
end
if update then
update(self, dt)
end
end
--[[---------------------------------------------------------
- func: draw()
- desc: draws the object
--]]---------------------------------------------------------
function newobject:_draw()
if loveframes.state ~= self.state then
return
end
if not self.visible then
return
end
-- set the object's draw order
self:setDrawOrder()
local drawfunc = self.draw or self.drawfunc
if drawfunc then
drawfunc(self)
end
local internals = self.internals
if internals then
for k, v in ipairs(internals) do
if v.type == "treenode" then
if self.open then
v:_draw()
end
else
v:_draw()
end
end
end
end
--[[---------------------------------------------------------
- func: mousepressed(x, y, button)
- desc: called when the player presses a mouse button
--]]---------------------------------------------------------
function newobject:mousepressed(x, y, button)
local state = loveframes.state
local selfstate = self.state
if state ~= selfstate then
return
end
local visible = self.visible
if not visible then
return
end
for k, v in ipairs(self.internals) do
v:mousepressed(x, y, button)
end
if self.hover and button == 1 then
local time = os.time()
if self.lastclick + 0.40 > time then
self.open = not self.open
end
self.lastclick = time
local onselectnode = self.tree.onSelectNode
self.tree.selectednode = self
if onselectnode then
onselectnode(self.parent, self)
end
end
end
--[[---------------------------------------------------------
- func: mousereleased(x, y, button)
- desc: called when the player releases a mouse button
--]]---------------------------------------------------------
function newobject:mousereleased(x, y, button)
local state = loveframes.state
local selfstate = self.state
if state ~= selfstate then
return
end
local visible = self.visible
if not visible then
return
end
for k, v in ipairs(self.internals) do
v:mousereleased(x, y, button)
end
end
--[[---------------------------------------------------------
- func: setIcon(icon)
- desc: sets the object's icon
--]]---------------------------------------------------------
function newobject:setIcon(icon)
if type(icon) == "string" then
self.icon = love.graphics.newImage(icon)
self.icon:setFilter("nearest", "nearest")
else
self.icon = icon
end
return self
end
--[[---------------------------------------------------------
- func: getIcon()
- desc: gets the object's icon
--]]---------------------------------------------------------
function newobject:getIcon()
return self.icon
end
--[[---------------------------------------------------------
- func: setText(text)
- desc: sets the object's text
--]]---------------------------------------------------------
function newobject:setText(text)
self.text = text
return self
end
--[[---------------------------------------------------------
- func: getText()
- desc: gets the object's text
--]]---------------------------------------------------------
function newobject:getText()
return self.text
end
--[[---------------------------------------------------------
- func: addNode(text)
- desc: adds a new node to the object
--]]---------------------------------------------------------
function newobject:addNode(text)
if not self.internals[1] then
local openbutton = loveframes.objects["treenodebutton"]:new()
openbutton.parent = self
openbutton.staticx = 2
openbutton.staticy = 2
table.insert(self.internals, openbutton)
end
local node = loveframes.objects["treenode"]:new()
node.parent = self
node.tree = self.tree
node.text = text
node.level = self.level + 1
table.insert(self.internals, node)
return node
end
--[[---------------------------------------------------------
- func: removeNode(id)
- desc: removes a node from the object
--]]---------------------------------------------------------
function newobject:removeNode(id)
id = id + 1
for k, v in ipairs(self.internals) do
if k == id then
v:remove()
break
end
end
end
--[[---------------------------------------------------------
- func: setOpen(bool)
- desc: sets whether or not the object is open
--]]---------------------------------------------------------
function newobject:setOpen(bool)
self.open = bool
return self
end
--[[---------------------------------------------------------
- func: getOpen()
- desc: gets whether or not the object is open
--]]---------------------------------------------------------
function newobject:getOpen()
return self.open
end
---------- module end ----------
end
|
return {
"000_base_oauth2",
--"001_14_to_15",
--"002_15_to_10",
}
|
--[[
General functions that control the operation and flow of the script.
Physical input -> Description
esc: Escape key
tab: Tab key
lmb: Left mouse button
rmb: Right mouse button
mmb: Middle mouse button
uparrow: Up arrow key
downarrow: Down arrow key
leftarrow: Left arrow key
rightarrow: Right arrow key
f1-f12: Function keys
backspace: Backspace key
alt: Alt key
delete: Delete key
home: Home key
end: End key
pgup: Pgup key
pgdown: Pgdown key
insert: Insert key
space: Space bar
shift: Shift key
ctrl: Ctrl key
return: Return key
any: Any key or button
a,b,c,...: Latin, alphabetical keys a through z
0-9: Digits, zero to nine
mousedx: Mouse horizontal diff. Only valid in InputValue.
mousedy: Mouse vertical diff. Only valid in InputValue.
mousewheel: Mouse wheel. Only valid in InputValue.
Logical input -> Description
up: Move forward / Accelerate
down: Move backward / Brake
left: Move left
right: Move right
interact: Interact
flashlight: Flashlight
jump: Jump
crouch: Crouch
usetool: Use tool
grab: Grab
handbrake: Handbrake
map: Map
pause: Pause game (escape)
camerax: Camera x movement, scaled by sensitivity. Only valid in InputValue.
cameray: Camera y movement, scaled by sensitivity. Only valid in InputValue.
]]
---@return string Dot separated string of current version of the game
---@see @https://www.teardowngame.com/modding/api.html#GetVersion
function GetVersion() end
---@param version string Reference version
---@return boolean True if current version is at least provided one
---@see @https://www.teardowngame.com/modding/api.html#HasVersion
function HasVersion(version) end
---@return number The time in seconds since level was started
---@see @https://www.teardowngame.com/modding/api.html#GetTime
function GetTime() end
---@return number The timestep in seconds
---@see @https://www.teardowngame.com/modding/api.html#GetTimeStep
function GetTimeStep() end
---@return string Name of last pressed key, empty if no key is pressed
---@see @https://www.teardowngame.com/modding/api.html#InputLastPressedKey
function InputLastPressedKey() end
---@param input string The input identifier
---@return boolean True if input was pressed during last frame
---@see @https://www.teardowngame.com/modding/api.html#InputPressed
function InputPressed(input) end
---@param input string The input identifier
---@return boolean True if input was released during last frame
---@see @https://www.teardowngame.com/modding/api.html#InputReleased
function InputReleased(input) end
---@param input string The input identifier
---@return boolean True if input is currently held down
---@see @https://www.teardowngame.com/modding/api.html#InputDown
function InputDown(input) end
---@param input string The input identifier
---@return number Depends on input type
---@see @https://www.teardowngame.com/modding/api.html#InputValue
function InputValue(input) end
---@param variable string Name of number variable in the global context
---@param value number The new value
---@param transition string _optional_ Transition type. See description.
---@param time number _optional_ Transition time (seconds)
---@return nil
---@see @https://www.teardowngame.com/modding/api.html#SetValue
function SetValue(variable, value, transition, time) end
---@param title string Text on button
---@return number True if clicked, false otherwise
---@see @https://www.teardowngame.com/modding/api.html#PauseMenuButton
function PauseMenuButton(title) end
---@param mission string An identifier of your choice
---@param path string Path to level XML file
---@param layers string _optional_ Active layers. Default is no layers.
---@param passThrough boolean _optional_ If set, loading screen will have no text and music will keep playing
---@return nil
---@see @https://www.teardowngame.com/modding/api.html#StartLevel
function StartLevel(mission, path, layers, passThrough) end
---@param paused boolean True if game should be paused
---@return nil
---@see @https://www.teardowngame.com/modding/api.html#SetPaused
function SetPaused(paused) end
---@return nil
---@see @https://www.teardowngame.com/modding/api.html#Restart
function Restart() end
---@return nil
---@see @https://www.teardowngame.com/modding/api.html#Menu
function Menu() end
|
-- ========== THIS IS AN AUTOMATICALLY GENERATED FILE! ==========
PlaceObj('StoryBit', {
ActivationEffects = {
PlaceObj('AddTrait', {
'Trait', "scientist",
}),
PlaceObj('AddTrait', {
'Trait', "Enthusiast",
}),
},
Effects = {},
Prerequisites = {
PlaceObj('IsAssociatedObject', nil),
},
ScriptDone = true,
SuppressTime = 720000,
Text = T(844058523219, --[[StoryBit Shocky_FollowUp4 Text]] "Yet the mystic influence of Shocky marked him for life.\n\n<effect>Matthew Gore has grown up as an Enthusiast Scientist."),
TextReadyForValidation = true,
TextsDone = true,
Title = T(645958771130, --[[StoryBit Shocky_FollowUp4 Title]] "Shocky"),
Trigger = "ColonistBecameYouth",
VoicedText = T(555194026559, --[[voice:narrator]] "In time, the imaginary friend of Matthew seemed to disappear and he stopped talking about it. He grew up as a wonderful young man, fully dedicated to science."),
group = "Colonists",
id = "Shocky_FollowUp4",
})
|
-----------------------------------
-- Area: Lebros Cavern (Wamoura Farm Raid)
-- Mob: Ranch Wamouracampa
-----------------------------------
function onMobEngaged(mob,target)
end;
function onMobDeath(mob, player, isKiller)
end;
function onMobDespawn(mob)
local instance = mob:getInstance();
instance:setProgress(instance:getProgress() + 1);
end;
|
-- audio
function InitialiseAudio()
FCAudio.AddCollisionTypeHandler( "BallActor", "BallActor", "BallCollisionAudioHandler" )
FCAudio.AddCollisionTypeHandler( "WorldActor", "BallActor", "BallCollisionAudioHandler" )
FCAudio.AddCollisionTypeHandler( "WorldActor", "GemActor", "GemCollisionAudioHandler" )
FCAudio.AddCollisionTypeHandler( "BallActor", "GemActor", "GemCollisionAudioHandler" )
FCAudio.AddCollisionTypeHandler( "GemActor", "GemActor", "GemCollisionAudioHandler" )
kAudioBufferWood = FCAudio.CreateBuffer( "Assets/Audio/wood" )
kAudioBufferClink = FCAudio.CreateBuffer( "Assets/Audio/clink" )
kAudioBufferTurbine = FCAudio.CreateBuffer( "Assets/Audio/turbine" )
end
function ShutdownAudio()
FCAudio.DeleteBuffer( kAudioBufferWood )
FCAudio.RemoveCollisionTypeHandler( "BallActor", "BallActor" )
FCAudio.RemoveCollisionTypeHandler( "WorldActor", "BallActor" )
end
-- handlers
function BallCollisionAudioHandler( h1, h2, x, y, z, vel )
if vel > -0.5 then
return
end
local h = FCAudio.PrepareSourceWithBuffer( kAudioBufferWood, false )
if h ~= 0 then
local volume = vel / -20.0
if volume > 0.5 then
volume = 0.5
end
FCAudio.SourceSetVolume( h, volume )
FCAudio.SourcePosition( h, x * 10, 0, 0 )
FCAudio.SourcePitch( h, 0.95 + (volume * 0.2))
FCAudio.SourcePlay( h )
end
end
function GemCollisionAudioHandler( h1, h2, x, y, z, vel )
if vel > -0.5 then
return
end
local h = FCAudio.PrepareSourceWithBuffer( kAudioBufferClink, false )
if h ~= 0 then
local volume = vel / -20.0
if volume > 0.75 then
volume = 0.75
end
FCAudio.SourceSetVolume( h, volume )
FCAudio.SourcePosition( h, x * 10, 0, 0 )
FCAudio.SourcePitch( h, 0.95 + (volume * 0.2))
FCAudio.SourcePlay( h )
end
end
|
local BackgroundSlice = require "class.BackgroundSlice"
local Background = class("Background")
function Background:initialize(slices, path)
self.slices = {}
self.y = 0
for i, slice in ipairs(slices) do
local img = love.graphics.newImage(path .. i .. ".png")
img:setWrap("repeat", "repeat")
table.insert(self.slices, BackgroundSlice:new(img, i))
end
end
function Background:update(dt)
self.y = self.y-self.y*3*dt
end
function Background:draw()
local y = self.y
for _, slice in ipairs(self.slices) do
slice:draw(y)
y = y + slice.h
end
end
function Background:moveTo(x)
for _, slice in ipairs(self.slices) do
slice:moveTo(x)
end
end
function Background:moveY(y)
self.y = math.max(-HEIGHT, self.y - y)
end
return Background
|
-- Gkyl --------------------------------------------------------------
local Plasma = require ("App.PlasmaOnCartGrid").VlasovMaxwell
-- Maxwellian in 2v
local function maxwellian2D(n, vx, vy, ux, uy, vth)
local v2 = (vx - ux)^2 + (vy - uy)^2
return n/(2*math.pi*vth^2)*math.exp(-v2/(2*vth^2))
end
sim = Plasma.App {
logToFile = false,
tEnd = 5.0, -- end time
nFrame = 100, -- number of frames to write
lower = {0.0}, -- configuration space lower left
upper = {1.0}, -- configuration space upper right
cells = {1}, -- configuration space cells
basis = "serendipity", -- one of "serendipity" or "maximal-order"
polyOrder = 2, -- polynomial order
timeStepper = "rk3", -- one of "rk2", "rk3" or "rk3s4"
cflFrac = 0.1,
-- decomposition for configuration space
decompCuts = {1}, -- cuts in each configuration direction
useShared = false, -- if to use shared memory
-- boundary conditions for configuration space
periodicDirs = {1}, -- periodic directions
-- electrons
neut = Plasma.Species {
charge = 1.0, mass = 1.0,
-- velocity space grid
lower = {-8.0, -8.0},
upper = {8.0, 8.0},
cells = {16, 16},
decompCuts = {1, 1},
-- initial conditions
init = function (t, xn)
local x, vx, vy = xn[1], xn[2], xn[3]
return maxwellian2D(0.5, vx, vy, 3.0, 0.0, 0.5) +
maxwellian2D(0.5, vx, vy, 0.0, 3.0, 0.5)
end,
evolveCollisionless = false,
evolveCollisions = true,
-- collisions
lbo = Plasma.LBOCollisions {
collideWith = {"neut"},
frequencies = {1.0},
},
-- diagnostics
diagnosticMoments = { "M0", "M1i" },
diagnosticIntegratedMoments = {
"intM0", "intM1i", "intM2Flow", "intM2Thermal" },
},
}
-- run application
sim:run()
|
local utils = require 'renamer.mappings.utils'
local stub = require 'luassert.stub'
local eq = assert.are.same
describe('mappings', function()
describe('utils', function()
describe('exec_in_normal', function()
it('should exit "insert" mode and execute callback', function()
local was_called = false
local nvim_command = stub(vim.api, 'nvim_command')
utils.exec_in_normal(function()
was_called = true
end)
eq(true, was_called)
assert.spy(nvim_command).was_called_with [[stopinsert]]
assert.spy(nvim_command).called_at_most(1)
end)
it('should execute callback with arguments', function()
local was_called = false
utils.exec_in_normal(function(val)
was_called = val
end, true)
eq(true, was_called)
end)
end)
describe('set_cursor_to_end', function()
it('should call `vim.api.nvim_input` with "A"', function()
local nvim_input = stub(vim.api, 'nvim_input')
utils.set_cursor_to_end()
assert.spy(nvim_input).was_called_with 'A'
end)
end)
describe('set_cursor_to_start', function()
it('should call `vim.api.nvim_input` with "I"', function()
local nvim_input = stub(vim.api, 'nvim_input')
utils.set_cursor_to_start()
assert.spy(nvim_input).was_called_with 'I'
end)
end)
describe('set_cursor_to_word_end', function()
it('should call `vim.api.nvim_input` with "e"', function()
local nvim_input = stub(vim.api, 'nvim_input')
utils.set_cursor_to_word_end()
assert.spy(nvim_input).was_called_with 'ei'
end)
end)
describe('set_cursor_to_word_start', function()
it('should call `vim.api.nvim_input` with "bi"', function()
local nvim_input = stub(vim.api, 'nvim_input')
utils.set_cursor_to_word_start()
assert.spy(nvim_input).was_called_with 'bi'
end)
end)
describe('clear_line', function()
it('should call `vim.api.nvim_input` with "0C"', function()
local nvim_input = stub(vim.api, 'nvim_input')
utils.clear_line()
assert.spy(nvim_input).was_called_with '0C'
end)
end)
describe('undo', function()
it('should call `vim.api.nvim_input` with "ui"', function()
local nvim_input = stub(vim.api, 'nvim_input')
utils.undo()
assert.spy(nvim_input).was_called_with 'ui'
end)
end)
describe('redo', function()
it('should call `vim.api.nvim_input` with "<c-r>i"', function()
local nvim_input = stub(vim.api, 'nvim_input')
utils.redo()
assert.spy(nvim_input).was_called_with '<c-r>i'
end)
end)
end)
end)
|
local path = require 'pl.path'
local hasMoon, moonscript = pcall(require, 'moonscript')
return function()
local loadHelper = function(busted, helper, options)
local old_arg = arg
local success, err = pcall(function()
arg = options.arguments
if helper:match('%.lua$') then
dofile(path.normpath(helper))
elseif hasMoon and helper:match('%.moon$') then
moonscript.dofile(path.normpath(helper))
else
require(helper)
end
end)
arg = old_arg
if not success then
busted.publish({ 'error', 'helper' }, { descriptor = 'helper', name = helper }, nil, err, {})
end
end
return loadHelper
end
|
---
-- Ball Class
-- @author debuss-a
--
Ball = {}
Ball.__index = Ball
function Ball.new(x, y, colors, velocity)
local self = setmetatable({}, Ball)
-- Coordinates
self.x = x or love.math.random(0, love.graphics.getWidth())
self.y = y or love.math.random(0, love.graphics.getHeight())
self.colors = colors or {1, 1, 1, 1}
self.velocity = velocity or 300
-- Directions
self.sign_x = "+"
self.sign_y = "+"
-- Misc
self.points = {}
table.insert(self.points, {x = self.x, y = self.y})
return self
end
function Ball.draw(self)
love.graphics.setColor(self.colors)
love.graphics.circle("fill", self.x, self.y, 10, 20)
end
function Ball.update(self, dt)
local x = self.x
local y = self.y
local z = self.velocity * dt
local rx = love.math.random(5, 20)
local ry = love.math.random(5, 20)
-- New positions
if self.sign_x == "+" then
x = x + z
else
x = x - z
end
if self.sign_y == "+" then
y = y + z
else
y = y - z
end
-- Checks
if x > love.graphics.getWidth() then
self.sign_x = "-"
x = self.x - z
elseif x < 0 then
self.sign_x = "+"
x = self.x + z
end
if y > love.graphics.getHeight() then
self.sign_y = "-"
y = self.y - z
elseif y < 0 then
self.sign_y = "+"
y = self.y + z
end
-- Set
self.x = x
self.y = y
end
|
----
--- @alias SocketName "spine_01"|"spine_02"|"spine_03"|"spine_04"|"spine_05"|"neck_01"|"neck_02"|"head"|"clavicle_l"|"shoulder_l"|"upperarm_l"|"lowerarm_l"|"hand_l"|"weapon_l"|"clavicle_r"|"shoulder_r"|"upperarm_r"|"lowerarm_r"|"hand_r"|"weapon_r"|"thigh_l"|"calf_l"|"foot_l"|"thigh_r"|"calf_r"|"foot_r"
----
|
modifier_ability_power = class(Modifier)
LinkLuaModifier("modifier_ability_power", modifier_ability_power)
function modifier_ability_power:OnCreated ()
self.GetModifierBonus = self.GetModifierBonus
self:SetVisible(false)
self:AttachVariableModifier("ability_power");
end
function modifier_ability_power:GetModifierBonus_ability_power()
return self:GetAbility():GetSpecialValue("bonus_ability_power")
end
|
--FPS Engine premake4 build script generaor
local Libs_common = { "freeimage", "glfw3", "pthread"}
local Libs_lin = { "GL", "GLU", "X11", "Xxf86vm", "Xrandr", "Xi", "rt" }
local Libs_win = { "opengl32", "glu32", "gdi32", }
solution "ppcheckers"
configurations { "Release" }
language "C++"
links(Libs_common)
includedirs { "src/", "src/**", "include/" }
configuration "windows"
links(Libs_win)
configuration "linux"
links(Libs_lin)
defines "NO_WINDOWS"
configuration "gmake"
libdirs { "inclue/gcc" }
configuration "vs2010"
libdirs { "lib/vs" }
-- location "bin"
project "ppcheckers"
kind "ConsoleApp"
--kind "WindowedApp"
location "bin"
files "src/**"
|
--[[
TheNexusAvenger
Test for SurfaceGuis containing unwrapped buttons.
--]]
local BaseTest = require(script.Parent:WaitForChild("BaseTest"))
local ProblemHighlights = require(script.Parent:WaitForChild("Common"):WaitForChild("ProblemHighlights"))
local UnwrappedSurfaceGuiButtonsTest = BaseTest:Extend()
UnwrappedSurfaceGuiButtonsTest:SetClassName("UnwrappedSurfaceGuiButtonsTest")
--[[
Creates the test.
--]]
function UnwrappedSurfaceGuiButtonsTest:__new()
self:InitializeSuper()
--Set up the initial state.
self.Name = "Unwrapped SurfaceGui Buttons"
self.Icon = "NONE"
self.Status = "Not Detected"
self.ProblemText = "Buttons in SurfaceGuis can be very difficult to interact with in VR. Sometimes user interfaces become unusable in VR."
self.SolutionText = "Wrapping buttons with Nexus VR Core is recommended for button integration."
self.SurfaceGuiEvents = {}
self.SurfaceGuiProblems = {}
self.Highlights = ProblemHighlights.new(self)
--Connect SurfaceGuis in the game.
game.DescendantRemoving:Connect(function(Ins)
if not self.SurfaceGuiEvents[Ins] then return end
for _,Event in pairs(self.SurfaceGuiEvents[Ins]) do
Event:Disconnect()
end
self.SurfaceGuiEvents[Ins] = nil
self.SurfaceGuiProblems[Ins] = nil
self:UpdateState()
end)
game.DescendantAdded:Connect(function(Ins)
if self.SurfaceGuiEvents[Ins] then return end
self:ConnectSurfaceGui(Ins)
end)
for _,Ins in pairs(game:GetDescendants()) do
self:ConnectSurfaceGui(Ins)
end
end
--[[
Connects a SurfaceGui.
--]]
function UnwrappedSurfaceGuiButtonsTest:ConnectSurfaceGui(SurfaceGui)
--Use a pcall to determine the type. game exposes non-usable instances.
local Worked,Return = pcall(function()
return SurfaceGui:IsA("SurfaceGui")
end)
if not Worked or not Return then return end
--Connect the events.
self.SurfaceGuiEvents[SurfaceGui] = {}
self.SurfaceGuiProblems[SurfaceGui] = {}
table.insert(self.SurfaceGuiEvents[SurfaceGui],SurfaceGui.DescendantAdded:Connect(function(Ins)
if not Ins:IsA("GuiButton") then return end
self.SurfaceGuiProblems[SurfaceGui][Ins] = true
self:UpdateState()
end))
table.insert(self.SurfaceGuiEvents[SurfaceGui],SurfaceGui.DescendantRemoving:Connect(function(Ins)
if not Ins:IsA("GuiButton") then return end
self.SurfaceGuiProblems[SurfaceGui][Ins] = nil
self:UpdateState()
end))
--Connect the existing instances.
for _,Ins in pairs(SurfaceGui:GetDescendants()) do
if Ins:IsA("GuiButton") then
self.SurfaceGuiProblems[SurfaceGui][Ins] = true
self:UpdateState()
end
end
--Occasionally update the ClickDetectors.
coroutine.wrap(function()
while true do
self:UpdateState()
wait(0.25)
end
end)()
end
--[[
Updates the state.
--]]
function UnwrappedSurfaceGuiButtonsTest:UpdateState()
--Determine the problematic SurfaceGuis.
local SurfaceGuis = {}
local NexusVRCore = self:GetNexusVRCore()
local NexusWrappedInstance = NexusVRCore and NexusVRCore:GetResource("NexusWrappedInstance")
for SurfaceGui,FrameProblemsMap in pairs(self.SurfaceGuiProblems) do
for Frame,_ in pairs(FrameProblemsMap) do
if (not NexusWrappedInstance or not NexusWrappedInstance.CachedInstances[Frame]) then
table.insert(SurfaceGuis,SurfaceGui)
break
end
end
end
--Set the state if there is a problematic SurfaceGui and it wasn't set already.
if #SurfaceGuis > 0 then
self.Icon = "WARNING"
self.Status = "Problem Detected"
else
self.Icon = "NONE"
self.Status = "Not Detected"
end
--Get the parts to adorn.
local AdornParts = {}
local AdornPartsMap = {}
for _,SurfaceGui in pairs(SurfaceGuis) do
local Adornee = SurfaceGui.Adornee or (SurfaceGui.Parent and SurfaceGui.Parent:IsA("BasePart") and SurfaceGui.Parent)
if Adornee and not AdornPartsMap[Adornee] then
AdornPartsMap[Adornee] = true
table.insert(AdornParts,Adornee)
end
end
self.Highlights.Objects = AdornParts
end
return UnwrappedSurfaceGuiButtonsTest
|
fx_version 'bodacious'
games { 'rdr3', 'gta5' }
author 'JRenZ'
description "Motel resource, using MLO by JRenZ."
version "1.1"
server_scripts {
"@async/async.lua",
"@mysql-async/lib/MySQL.lua",
"server/*"
}
client_scripts {
"client/*"
}
shared_scripts {
"configs/*",
"shared/*"
}
|
object_mobile_dug_static = object_mobile_shared_dug_static:new {
}
ObjectTemplates:addTemplate(object_mobile_dug_static, "object/mobile/dug_static.iff")
|
test=function(url)
local req= HTTP:New("GET",url)
req.GetID()
req.GetURL()
req.SetURL(url)
req.GetBody()
req.SetBody("test")
req.ResetHeader()
req.SetHeader("uid","123")
req.AddHeader("uid","234")
req.GetHeader("uid")
req.DelHeader("uid")
req.GetMethod()
req.SetMethod("POST")
req.HeaderValues("uid")
req.HeaderFields()
req.Execute()
req.ExecuteStatus()
req.FinishedAt()
req.ResponseStatusCode()
req.ResponseStatusCode()
req.ResponseBody()
req.ResponseHeader()
req.ResponseHeaderValues()
req.ResponseHeaderFields()
end
|
return NOTESKIN:LoadActor("DownLeft","Hold Head")..{
--InitCommand=cmd(rotationy,180);
};
|
local Event = {}
Event.__index = Event;
function Event:set_keyboard(keycode, release, is_repeat)
self.keycode = keycode
self.release = jge.try_or(release, false)
self.is_repeat = jge.try_or(is_repeat, false)
end
function Event:set_directory(dir)
self.directory = dir;
end
function Event:set_mousemove(x, y, relx, rely, touch)
self[1] = x
self[2] = y
self.x = x
self.y = y
self.rx = relx
self.ry = rely
self.is_touch = touch
end
function Event:set_mousebutton(x, y, button, release)
self.button = button
self.release = release
self[1] = x
self[2] = y
self.x = x
self.y = y
end
function Event:set_mousewheel(x, y)
self[1] = x
self[2] = y
self.x = x
self.y = y
end
function Event:set_windowresize(x, y)
self[1] = x
self[2] = y
self.x = x
self.y = y
end
function Event.new(event_type, ...)
local self = setmetatable({
taken = false,
event_type = event_type or EVENTTYPE.null
}, Event);
if event_type == EVENTTYPE.keyboard then
self:set_keyboard(...);
elseif event_type == EVENTTYPE.directory then
self:set_directory(...);
elseif event_type == EVENTTYPE.mousemove then
self:set_mousemove(...);
elseif event_type == EVENTTYPE.mousebutton then
self:set_mousebutton(...);
elseif event_type == EVENTTYPE.mousewheel then
self:set_mousewheel(...);
elseif event_type == EVENTTYPE.windowresize then
self:set_windowresize(...);
end
return self
end
function Event:take()
self.taken = true;
end
return setmetatable(Event, {
__call = function(t, ...)
return Event.new(...);
end
})
|
slot0 = class("WorldScene", import("..base.BaseUI"))
slot0.SceneOp = "WorldScene.SceneOp"
slot0.Listeners = {
onAchievementAchieved = "OnAchievementAchieved",
onUpdateEventTips = "OnUpdateEventTips",
onSelectFleet = "OnSelectFleet",
onUpdateSubmarineSupport = "OnUpdateSubmarineSupport",
onClearMoveQueue = "ClearMoveQueue",
onModelSelectMap = "OnModelSelectMap",
onUpdateRound = "OnUpdateRound",
onUpdateProgress = "OnUpdateProgress",
onUpdateScale = "OnUpdateScale",
onDisposeMap = "OnDisposeMap",
onFleetSelected = "OnFleetSelected"
}
slot0.optionsPath = {
"top/adapt/top_chapter/option",
"top/adapt/top_stage/option"
}
slot0.getUIName = function (slot0)
return "WorldUI"
end
slot0.getBGM = function (slot0)
slot1 = {}
if slot0:GetInMap() == false then
else
table.insert(slot1, nowWorld:GetActiveMap():GetBGM() or "")
end
for slot5, slot6 in ipairs(slot1) do
if slot6 ~= "" then
return slot6
end
end
return slot0.super.getBGM(slot0)
end
slot0.init = function (slot0)
for slot4, slot5 in pairs(slot0.Listeners) do
slot0[slot4] = function (...)
slot0[slot1](slot2, ...)
end
end
slot0.bind(slot0, slot0.SceneOp, function (slot0, ...)
slot0:Op(...)
end)
slot0.camera = GameObject.Find("LevelCamera").transform.GetComponent(slot1, typeof(Camera))
slot0.rtUIMain = GameObject.Find("LevelCamera").transform.Find(slot1, "Canvas/UIMain")
setActive(slot0.rtUIMain, false)
GetOrAddComponent(slot0.rtUIMain, typeof(Image)).color = Color.New(0, 0, 0, 0.5)
slot0.rtGrid = slot0.rtUIMain:Find("LevelGrid")
setActive(slot0.rtGrid, true)
slot0.rtDragLayer = slot0.rtGrid:Find("DragLayer")
setImageAlpha(slot0.rtDragLayer, 0)
slot0.rtEnvBG = slot0:findTF("main/bg")
slot0.rtTop = slot0:findTF("top")
slot0.rtTopAtlas = slot0.rtTop:Find("adapt/top_chapter")
setActive(slot0.rtTopAtlas, false)
slot0.rtRightAtlas = slot0.rtTop:Find("adapt/right_chapter")
setActive(slot0.rtRightAtlas, false)
slot0.rtBottomAtlas = slot0.rtTop:Find("adapt/bottom_chapter")
setActive(slot0.rtBottomAtlas, false)
slot0.rtTransportAtlas = slot0.rtTop:Find("transport_chapter")
setActive(slot0.rtTransportAtlas, false)
slot0.rtTopMap = slot0.rtTop:Find("adapt/top_stage")
setActive(slot0.rtTopMap, false)
slot0.rtLeftMap = slot0.rtTop:Find("adapt/left_stage")
setActive(slot0.rtLeftMap, false)
slot0.rtRightMap = slot0.rtTop:Find("adapt/right_stage")
setActive(slot0.rtRightMap, false)
slot0.rtOutMap = slot0.rtTop:Find("effect_stage")
setActive(slot0.rtOutMap, false)
slot0.rtClickStop = slot0.rtTop:Find("stop_click")
onButton(slot0, slot0.rtClickStop:Find("long_move"), function ()
if #slot0.moveQueue > 0 then
pg.TipsMgr.GetInstance():ShowTips(i18n("world_fleet_stop"))
pg.TipsMgr.GetInstance().ShowTips:ClearMoveQueue()
end
end)
onButton(slot0, slot0.rtClickStop:Find("auto_fight"), function ()
if nowWorld.isAutoFight then
pg.TipsMgr.GetInstance():ShowTips(i18n("autofight_tip_bigworld_stop"))
nowWorld:TriggerAutoFight(false)
end
end)
setActive(slot0.rtClickStop, false)
slot0.resAtlas = WorldResource.New()
slot0.resAtlas.setParent(slot2, slot0.rtTopAtlas:Find("resources"), false)
slot0.resMap = WorldResource.New()
slot0.resMap:setParent(slot0.rtTopMap:Find("resources"), false)
slot0.wsPool = WSPool.New()
slot0.wsPool:Setup(slot0:findTF("resources"))
slot0.wsAnim = WSAnim.New()
slot0.wsAnim:Setup()
slot0.wsTimer = WSTimer.New()
slot0.wsTimer:Setup()
slot0.wsDragProxy = WSDragProxy.New()
slot0.wsDragProxy.transform = slot0.rtDragLayer
slot0.wsDragProxy.wsTimer = slot0.wsTimer
slot0.wsDragProxy:Setup({
clickCall = function (slot0, slot1)
if slot0.svScannerPanel:isShowing() then
slot2, slot3 = slot0:CheckScannerEnable(slot0:ScreenPos2MapPos(slot1.position))
if slot2 then
slot0.svScannerPanel:ActionInvoke("DisplayWindow", slot2, slot3)
else
slot0.svScannerPanel:ActionInvoke("HideWindow")
end
else
slot0:OnClickMap(slot0:ScreenPos2MapPos(slot1.position))
end
end,
longPressCall = function ()
slot0:OnLongPressMap(slot0:ScreenPos2MapPos(Vector3(Input.mousePosition.x, Input.mousePosition.y)))
end
})
slot0.wsMapCamera = WSMapCamera.New()
slot0.wsMapCamera.camera = slot0.camera
slot0.wsMapCamera.Setup(slot2)
slot0:InitSubView()
slot0:AddWorldListener()
slot0.moveQueue = {}
slot0.achievedList = {}
slot0.mapOps = {}
slot0.wsCommands = {}
WSCommand.Bind(slot0)
slot0:OpOpen()
end
slot0.InitSubView = function (slot0)
slot0.rtPanelList = slot0:findTF("panel_list")
slot0.svOrderPanel = SVOrderPanel.New(slot0.rtPanelList, slot0.event, {
wsPool = slot0.wsPool
})
slot0.svScannerPanel = SVScannerPanel.New(slot0.rtPanelList, slot0.event)
slot0:bind(SVScannerPanel.ShowView, function (slot0)
slot0.wsMap:ShowScannerMap(true)
setActive(slot0.wsMap.rtTop, false)
slot0:HideMapUI()
end)
slot0.bind(slot0, SVScannerPanel.HideView, function (slot0)
slot0.wsMap:ShowScannerMap(false)
setActive(slot0.wsMap.rtTop, true)
slot0:DisplayMapUI()
end)
slot0.bind(slot0, SVScannerPanel.HideGoing, function (slot0, slot1, slot2)
slot0.wsMap:ShowScannerMap(false)
setActive(slot0.wsMap.rtTop, true)
slot0:DisplayMapUI()
slot0:OnClickCell(slot1, slot2)
end)
slot0.svRealmPanel = SVRealmPanel.New(slot0.rtPanelList, slot0.event)
slot0.svAchievement = SVAchievement.New(slot0.rtPanelList, slot0.event)
slot0.bind(slot0, SVAchievement.HideView, function (slot0)
table.remove(slot0.achievedList, 1)
slot1 = (#slot0.achievedList > 0 and function ()
slot0:ShowSubView("Achievement", slot0.achievedList[1])
end) or function ()
slot0:Op("OpInteractive")
end
return slot1()
end)
slot0.svDebugPanel = SVDebugPanel.New(slot0.rtPanelList, slot0.event)
slot0.svMarkOverall = SVMarkOverall.New(slot0.rtPanelList, slot0.event)
slot0.bind(slot0, SVMarkOverall.ShowView, function (slot0, slot1, slot2)
slot3 = {}
_.each(slot1, function (slot0)
slot0[slot0] = true
end)
if #slot1 > 0 then
slot0.wsAtlasOverall.UpdateTargetEntrance(slot4, slot1[1])
end
slot0.wsAtlasOverall:UpdateStaticMark(slot3, slot2)
slot0:DisplayAtlasOverall()
end)
slot0.bind(slot0, SVMarkOverall.HideView, function (slot0, slot1)
slot0:HideAtlasOverall()
return existCall(slot1)
end)
slot0.svFloatPanel = SVFloatPanel.New(slot0.rtTop, slot0.event)
slot0.bind(slot0, SVFloatPanel.ReturnCall, function (slot0, slot1)
slot0:Op("OpCall", function (slot0)
slot0()
if slot0.id == nowWorld:GetActiveEntrance().id then
slot1.wsAtlas:UpdateSelect()
slot1.wsAtlas:UpdateSelect(slot0)
else
slot1:ClickAtlas(slot1)
end
end)
end)
slot0.svPoisonPanel = SVPoisonPanel.New(slot0.rtPanelList, slot0.event)
slot0.svGlobalBuff = SVGlobalBuff.New(slot0.rtPanelList, slot0.event)
slot0.bind(slot0, SVGlobalBuff.HideView, function (slot0, slot1)
return existCall(slot1)
end)
slot0.svBossProgress = SVBossProgress.New(slot0.rtPanelList, slot0.event)
slot0.bind(slot0, SVBossProgress.HideView, function (slot0, slot1)
return existCall(slot1)
end)
slot0.svSalvageResult = SVSalvageResult.New(slot0.rtPanelList, slot0.event)
end
slot0.didEnter = function (slot0)
pg.UIMgr.GetInstance():OverlayPanel(slot0.rtTop)
slot0.warningSairen = not slot0.contextData.inSave
if slot0.contextData.inWorld then
slot0:Op("OpSetInMap", false, function ()
slot0.wsAtlas:UpdateSelect(nowWorld:GetActiveEntrance())
end)
else
slot0.Op(slot0, "OpSetInMap", true)
end
end
slot0.onBackPressed = function (slot0)
if slot0.inCutIn then
return
elseif slot0.svDebugPanel:isShowing() then
slot0:HideSubView("DebugPanel")
elseif slot0.svAchievement:isShowing() then
slot0:HideSubView("Achievement")
elseif slot0.svGlobalBuff:isShowing() then
slot0:HideSubView("GlobalBuff")
elseif slot0.svBossProgress:isShowing() then
slot0:HideSubView("BossProgress")
elseif slot0.svMarkOverall:isShowing() then
slot0:HideSubView("MarkOverall")
elseif slot0.svOrderPanel:isShowing() then
slot0:HideSubView("OrderPanel")
elseif slot0.svScannerPanel:isShowing() then
slot0:HideSubView("ScannerPanel")
elseif slot0.svPoisonPanel:isShowing() then
slot0:HideSubView("PoisonPanel")
elseif slot0.svSalvageResult:isShowing() then
slot0:HideSubView("SalvageResult")
elseif slot0.wsMapLeft and isActive(slot0.wsMapLeft.toggleMask) then
slot0.wsMapLeft:HideToggleMask()
elseif slot0:GetInMap() then
triggerButton(slot0.wsMapTop.btnBack)
else
triggerButton(slot0.rtTopAtlas:Find("back_button"))
end
end
slot0.quickExitFunc = function (slot0)
slot0:Op("OpCall", function (slot0)
slot0()
slot1 = {}
if nowWorld:CheckReset() then
table.insert(slot1, function (slot0)
pg.MsgboxMgr.GetInstance():ShowMsgBox({
content = i18n("world_recycle_notice"),
onYes = slot0
})
end)
end
seriesAsync(slot1, function ()
slot0.super.quickExitFunc(slot1)
end)
end)
end
slot0.ExitWorld = function (slot0, slot1, slot2)
slot3 = {}
if not slot2 then
table.insert(slot3, function (slot0)
pg.MsgboxMgr.GetInstance():ShowMsgBox({
content = i18n("world_exit_tip"),
onYes = slot0,
onNo = function ()
return existCall(existCall)
end
})
end)
end
if not slot2 and nowWorld.CheckReset(slot4) then
table.insert(slot3, function (slot0)
pg.MsgboxMgr.GetInstance():ShowMsgBox({
content = i18n("world_recycle_notice"),
onYes = slot0,
onNo = function ()
return existCall(existCall)
end
})
end)
end
table.insert(slot3, function (slot0)
if slot0:GetInMap() then
slot0:EaseOutMapUI(slot0)
else
slot0:EaseOutAtlasUI(slot0)
end
end)
seriesAsync(slot3, function ()
existCall(existCall)
existCall:closeView()
end)
end
slot0.SaveState = function (slot0)
slot0.contextData.inSave = true
slot0.contextData.inWorld = slot0:GetInMap() == false
slot0.contextData.inShop = false
slot0.contextData.inPort = false
end
slot0.willExit = function (slot0)
slot0:SaveState()
slot0:RemoveWorldListener()
pg.UIMgr.GetInstance():UnOverlayPanel(slot0.rtTop, slot0._tf)
slot0.svOrderPanel:Destroy()
slot0.svScannerPanel:Destroy()
slot0.svAchievement:Destroy()
slot0.svMarkOverall:Destroy()
slot0.svRealmPanel:Destroy()
slot0.svDebugPanel:Destroy()
slot0.svFloatPanel:Destroy()
slot0.svPoisonPanel:Destroy()
slot0.svGlobalBuff:Destroy()
slot0.svBossProgress:Destroy()
slot0:DisposeAtlas()
slot0:DisposeAtlasUI()
slot0:DisposeMap()
slot0:DisposeMapUI()
slot0:DisposeAtlasOverall()
slot0.wsPool:Dispose()
slot0.wsPool = nil
slot0.wsAnim:Dispose()
slot0.wsAnim = nil
slot0.wsTimer:Dispose()
slot0.wsTimer = nil
slot0.wsDragProxy:Dispose()
slot0.wsDragProxy = nil
slot0.wsMapCamera:Dispose()
slot0.wsMapCamera = nil
slot0.resAtlas:exit()
slot0.resAtlas = nil
slot0.resMap:exit()
slot0.resMap = nil
slot0:VerifyMapOp()
slot0:OpDispose()
WSCommand.Unbind(slot0)
WBank:Recycle(WorldMapOp)
slot1 = pg.PoolMgr.GetInstance()
slot1:DestroyPrefab("world/object/world_cell", "world_cell")
slot1:DestroyPrefab("world/object/world_cell_quad", "world_cell_quad")
slot1:DestroyPrefab("world/object/world_cell_transport", "world_cell_transport")
slot1:DestroyPrefab("world/object/world_cell_item", "world_cell_item")
end
slot0.SetPlayer = function (slot0, slot1)
slot0.player = slot1
slot0.resAtlas:setPlayer(slot0.player)
slot0.resMap:setPlayer(slot0.player)
end
slot0.AddWorldListener = function (slot0)
nowWorld:AddListener(World.EventUpdateProgress, slot0.onUpdateProgress)
end
slot0.RemoveWorldListener = function (slot0)
nowWorld:RemoveListener(World.EventUpdateProgress, slot0.onUpdateProgress)
end
slot0.SetInMap = function (slot0, slot1, slot2)
slot3 = {}
if slot0.inMap ~= slot1 then
slot0:StopAnim()
if slot0.inMap ~= nil then
table.insert(slot3, (slot1 and function (slot0)
slot0:Op("OpSwitchOutWorld", slot0)
end) or function (slot0)
slot0:Op("OpSwitchOutMap", slot0)
end)
end
table.insert(slot3, (slot1 and function (slot0)
slot0:Op("OpSwitchInMap", slot0)
end) or function (slot0)
slot0:Op("OpSwitchInWorld", slot0)
end)
table.insert(slot3, function (slot0)
slot0:PlayBGM()
if slot0.PlayBGM then
slot2 = defaultValue(slot2, function ()
slot0:Op("OpInteractive")
end)
end
slot0()
end)
slot0.inMap = slot1
end
seriesAsync(slot3, function ()
if not slot0 and slot1.atlasDisplayInfo then
slot1.atlasDisplayInfo = nil
return existCall(nil, slot1.atlasDisplayInfo.entrance, slot1.atlasDisplayInfo.mapId, slot1.atlasDisplayInfo.mapTypes)
else
return existCall(slot2)
end
end)
end
slot0.GetInMap = function (slot0)
return slot0.inMap
end
slot0.ShowSubView = function (slot0, slot1, slot2, slot3)
slot0["sv" .. slot1].Load(slot4)
slot0["sv" .. slot1]:ActionInvoke("Setup", unpack(slot2 or {}))
slot4:ActionInvoke("Show", unpack(slot3 or {}))
end
slot0.HideSubView = function (slot0, slot1, ...)
slot0["sv" .. slot1]:ActionInvoke("Hide", ...)
end
slot0.DisplayAtlasUI = function (slot0)
slot0:DisplayAtlasTop()
slot0:DisplayAtlasRight()
slot0:DisplayAtlasBottom()
slot0:UpdateSystemOpen()
end
slot0.HideAtlasUI = function (slot0)
slot0:HideAtlasTop()
slot0:HideAtlasRight()
slot0:HideAtlasBottom()
end
slot0.EaseInAtlasUI = function (slot0, slot1)
slot0:CancelAtlasUITween()
parallelAsync({
function (slot0)
setAnchoredPosition(slot0.rtTopAtlas, {
y = slot0.rtTopAtlas.rect.height
})
slot0.wsTimer:AddTween(LeanTween.moveY(slot0.rtTopAtlas, 0, WorldConst.UIEaseFasterDuration):setEase(LeanTweenType.easeInSine):setOnComplete(System.Action(slot0)).uniqueId)
end,
function (slot0)
setAnchoredPosition(slot0.rtBottomAtlas, {
y = -slot0.rtBottomAtlas.rect.height
})
slot0.wsTimer:AddTween(LeanTween.moveY(slot0.rtBottomAtlas, 0, WorldConst.UIEaseFasterDuration):setEase(LeanTweenType.easeInSine):setOnComplete(System.Action(slot0)).uniqueId)
end,
function (slot0)
setAnchoredPosition(slot0.rtRightAtlas, {
x = slot0.rtRightAtlas.rect.width
})
slot0.wsTimer:AddTween(LeanTween.moveX(slot0.rtRightAtlas, 0, WorldConst.UIEaseFasterDuration):setEase(LeanTweenType.easeInSine):setOnComplete(System.Action(slot0)).uniqueId)
end
}, function ()
return existCall(existCall)
end)
end
slot0.EaseOutAtlasUI = function (slot0, slot1)
slot0:CancelAtlasUITween()
parallelAsync({
function (slot0)
setAnchoredPosition(slot0.rtTopAtlas, {
y = 0
})
slot0.wsTimer:AddTween(LeanTween.moveY(slot0.rtTopAtlas, slot0.rtTopAtlas.rect.height, WorldConst.UIEaseFasterDuration):setEase(LeanTweenType.easeOutSine):setOnComplete(System.Action(slot0)).uniqueId)
end,
function (slot0)
setAnchoredPosition(slot0.rtBottomAtlas, {
y = 0
})
slot0.wsTimer:AddTween(LeanTween.moveY(slot0.rtBottomAtlas, -slot0.rtBottomAtlas.rect.height, WorldConst.UIEaseFasterDuration):setEase(LeanTweenType.easeOutSine):setOnComplete(System.Action(slot0)).uniqueId)
end,
function (slot0)
setAnchoredPosition(slot0.rtRightAtlas, {
x = 0
})
slot0.wsTimer:AddTween(LeanTween.moveX(slot0.rtRightAtlas, slot0.rtRightAtlas.rect.width, WorldConst.UIEaseFasterDuration):setEase(LeanTweenType.easeOutSine):setOnComplete(System.Action(slot0)).uniqueId)
end
}, function ()
return existCall(existCall)
end)
end
slot0.CancelAtlasUITween = function (slot0)
LeanTween.cancel(go(slot0.rtTransportAtlas))
LeanTween.cancel(go(slot0.rtTopAtlas))
LeanTween.cancel(go(slot0.rtBottomAtlas))
LeanTween.cancel(go(slot0.rtRightAtlas))
end
slot0.DisposeAtlasUI = function (slot0)
slot0:HideAtlasUI()
slot0:DisposeAtlasTransport()
slot0:DisposeAtlasTop()
slot0:DisposeAtlasRight()
slot0:DisposeAtlasBottom()
end
slot0.DisplayAtlas = function (slot0)
slot0.wsAtlas:SwitchArea((slot0.atlasDisplayInfo and slot0.atlasDisplayInfo.entrance) or nowWorld:GetActiveEntrance():GetAreaId())
slot0.wsAtlas:UpdateActiveMark()
slot0.wsAtlas:ShowOrHide(true)
end
slot0.HideAtlas = function (slot0)
slot0.wsAtlas:UpdateSelect()
slot0.wsAtlas:ShowOrHide(false)
end
slot0.ClickAtlas = function (slot0, slot1)
pg.CriMgr.GetInstance():PlaySoundEffect_V3(SFX_PANEL)
if not nowWorld:CheckAreaUnlock(slot1:GetAreaId()) then
pg.TipsMgr.GetInstance():ShowTips(i18n("area_lock"))
return
end
if slot0.wsAtlas.nowArea then
slot0.wsAtlas:UpdateSelect()
if slot0.wsAtlas.selectEntrance ~= slot1 then
slot0.wsAtlas:UpdateSelect(slot1)
end
else
slot0:EnterToModelMap(slot2)
end
end
slot0.LoadAtlas = function (slot0, slot1)
slot2 = {}
if not slot0.wsAtlas then
table.insert(slot2, function (slot0)
slot0.wsAtlas = slot0:NewAtlas()
slot0.wsAtlas:LoadScene(function ()
slot0.wsAtlas:AddListener(WSAtlasWorld.EventUpdateselectEntrance, slot0.onModelSelectMap)
slot0.wsAtlas.AddListener.wsAtlas:UpdateAtlas(nowWorld:GetAtlas())
return slot0.wsAtlas.AddListener.wsAtlas()
end)
end)
end
seriesAsync(slot2, function ()
return existCall(existCall)
end)
end
slot0.NewAtlas = function (slot0)
slot1 = WSAtlasWorld.New()
slot1.wsTimer = slot0.wsTimer
slot1.onClickColor = function (slot0, slot1)
if slot0.wsAtlas:CheckIsTweening() then
return
end
slot0:Op("OpCall", function (slot0)
slot0()
slot0:ClickAtlas(slot0.ClickAtlas)
end)
end
slot1.Setup(slot1)
return slot1
end
slot0.DisposeAtlas = function (slot0)
if slot0.wsAtlas then
slot0:HideAtlas()
slot0.wsAtlas:RemoveListener(WSAtlasWorld.EventUpdateselectEntrance, slot0.onModelSelectMap)
slot0.wsAtlas:Dispose()
slot0.wsAtlas = nil
end
end
slot0.DisplayAtlasTop = function (slot0)
slot0.wsAtlasTop = slot0.wsAtlasTop or slot0:NewAtlasTop(slot0.rtTopAtlas)
setActive(slot0.rtTopAtlas, true)
setActive(slot0.rtTopAtlas:Find("print/title_world"), true)
setActive(slot0.rtTopAtlas:Find("print/title_view"), false)
setActive(slot0.rtTopAtlas:Find("sairen_warning"), slot0.warningSairen and #nowWorld:GetAtlas().sairenEntranceList > 0)
slot0.warningSairen = false
end
slot0.HideAtlasTop = function (slot0)
setActive(slot0.rtTopAtlas, false)
end
slot0.NewAtlasTop = function (slot0, slot1)
onButton(slot0, slot1:Find("back_button"), function ()
slot0:Op("OpCall", function (slot0)
slot0()
slot0:BackToMap()
end)
end, SFX_CANCEL)
return {
transform = slot1
}
end
slot0.DisposeAtlasTop = function (slot0)
slot0.wsAtlasTop = nil
end
slot0.DisplayAtlasRight = function (slot0)
slot0.wsAtlasRight = slot0.wsAtlasRight or slot0:NewAtlasRight(slot0.rtRightAtlas)
slot0.wsAtlasRight:SetOverSize(slot0.rtTop:Find("adapt").offsetMax.x)
setActive(slot0.rtRightAtlas, true)
end
slot0.HideAtlasRight = function (slot0)
setActive(slot0.rtRightAtlas, false)
end
slot0.NewAtlasRight = function (slot0, slot1, slot2)
slot3 = WSAtlasRight.New()
slot3.transform = slot1
slot3:Setup()
onButton(slot0, slot3.btnSettings, function ()
slot0:Op("OpOpenScene", SCENE.SETTINGS, {
scroll = "world_settings",
toggle = SettingsScene.EnterToggle.options
})
end, SFX_PANEL)
return slot3
end
slot0.DisposeAtlasRight = function (slot0)
if slot0.wsAtlasRight then
slot0.wsAtlasRight:Dispose()
slot0.wsAtlasRight = nil
end
end
slot0.DisplayAtlasBottom = function (slot0)
slot0.wsAtlasBottom = slot0.wsAtlasBottom or slot0:NewAtlasBottom(slot0.rtBottomAtlas)
slot0.wsAtlasBottom:SetOverSize(slot0.rtTop:Find("adapt").offsetMax.x)
slot0.wsAtlasBottom:UpdateScale(1)
setActive(slot0.rtBottomAtlas, true)
end
slot0.HideAtlasBottom = function (slot0)
setActive(slot0.rtBottomAtlas, false)
end
slot0.NewAtlasBottom = function (slot0, slot1)
slot2 = WSAtlasBottom.New()
slot2.transform = slot1
slot2.wsTimer = slot0.wsTimer
slot2:Setup()
if CAMERA_MOVE_OPEN then
slot2:AddListener(WSAtlasBottom.EventUpdateScale, slot0.onUpdateScale)
end
onButton(slot0, slot2.btnOverview, function ()
if slot0.wsAtlas:CheckIsTweening() then
return
end
slot0:Op("OpCall", function (slot0)
slot0.wsAtlas:LoadModel(function ()
slot0()
slot1:ReturnToModelArea()
end)
end)
end, SFX_PANEL)
onButton(slot0, slot2.btnBoss, function ()
if nowWorld:GetBossProxy():IsOpen() then
slot0:Op("OpOpenScene", SCENE.WORLDBOSS)
else
pg.TipsMgr.GetInstance():ShowTips(i18n("common_activity_end"))
end
end, SFX_PANEL)
onButton(slot0, slot2.btnShop, function ()
slot0:Op("OpOpenLayer", Context.New({
mediator = WorldShopMediator,
viewComponent = WorldShopLayer
}))
end, SFX_PANEL)
onButton(slot0, slot2.btnCollection, function ()
WorldConst.ReqWorldCheck(function ()
slot0:Op("OpOpenScene", SCENE.WORLD_COLLECTION, {
page = WorldMediaCollectionScene.PAGE_RECORD
})
end)
end, SFX_PANEL)
return slot2
end
slot0.DisposeAtlasBottom = function (slot0)
if slot0.wsAtlasBottom then
slot0.wsAtlasBottom:Dispose()
slot0.wsAtlasBottom = nil
end
end
slot0.DisplayAtlasTransport = function (slot0)
slot0.wsAtlasTransport = slot0.wsAtlasTransport or slot0:NewAtlasTransport(slot0.rtTransportAtlas)
setActive(slot0.rtTransportAtlas, true)
end
slot0.HideAtlasTransport = function (slot0)
setActive(slot0.rtTransportAtlas, false)
end
slot0.NewAtlasTransport = function (slot0, slot1)
onButton(slot0, ({
transform = slot1,
btnBack = slot1:Find("adapt/btn_back")
})["btnBack"], function ()
slot0:BackToMap()
end, SFX_CANCEL)
return
end
slot0.DisposeAtlasTransport = function (slot0)
slot0.wsAtlasTransport = nil
end
slot0.DisplayMapUI = function (slot0)
slot0:DisplayMapTop()
slot0:DisplayMapLeft()
slot0:DisplayMapRight()
slot0:DisplayMapOut()
slot0:UpdateSystemOpen()
end
slot0.HideMapUI = function (slot0)
slot0:HideMapTop()
slot0:HideMapLeft()
slot0:HideMapRight()
slot0:HideMapOut()
end
slot0.UpdateMapUI = function (slot0)
slot2 = nowWorld:GetActiveMap()
slot0.wsMapTop:Update(slot1, slot2)
slot0.wsMapLeft:UpdateMap(slot2)
slot0.wsMapRight:Update(slot1, slot2)
slot0.wsMapOut:UpdateMap(slot2)
end
slot0.EaseInMapUI = function (slot0, slot1)
slot0:CancelMapUITween()
parallelAsync({
function (slot0)
setAnchoredPosition(slot0.rtTopMap, {
y = slot0.rtTopMap.rect.height
})
slot0.wsTimer:AddTween(LeanTween.moveY(slot0.rtTopMap, 0, WorldConst.UIEaseFasterDuration):setEase(LeanTweenType.easeInSine):setOnComplete(System.Action(slot0)).uniqueId)
end,
function (slot0)
setAnchoredPosition(slot0.rtLeftMap, {
x = -slot0.rtLeftMap.rect.width
})
slot0.wsTimer:AddTween(LeanTween.moveX(slot0.rtLeftMap, 0, WorldConst.UIEaseFasterDuration):setEase(LeanTweenType.easeInSine):setOnComplete(System.Action(slot0)).uniqueId)
end,
function (slot0)
setAnchoredPosition(slot0.rtRightMap, {
x = slot0.rtRightMap.rect.width
})
slot0.wsTimer:AddTween(LeanTween.moveX(slot0.rtRightMap, 0, WorldConst.UIEaseFasterDuration):setEase(LeanTweenType.easeInSine):setOnComplete(System.Action(slot0)).uniqueId)
end
}, function ()
return existCall(existCall)
end)
end
slot0.EaseOutMapUI = function (slot0, slot1)
slot0:CancelMapUITween()
parallelAsync({
function (slot0)
setAnchoredPosition(slot0.rtTopMap, {
y = 0
})
slot0.wsTimer:AddTween(LeanTween.moveY(slot0.rtTopMap, slot0.rtTopMap.rect.height, WorldConst.UIEaseFasterDuration):setEase(LeanTweenType.easeOutSine):setOnComplete(System.Action(slot0)).uniqueId)
end,
function (slot0)
setAnchoredPosition(slot0.rtLeftMap, {
x = 0
})
slot0.wsTimer:AddTween(LeanTween.moveX(slot0.rtLeftMap, -slot0.rtLeftMap.rect.width, WorldConst.UIEaseFasterDuration):setEase(LeanTweenType.easeOutSine):setOnComplete(System.Action(slot0)).uniqueId)
end,
function (slot0)
setAnchoredPosition(slot0.rtRightMap, {
x = 0
})
slot0.wsTimer:AddTween(LeanTween.moveX(slot0.rtRightMap, slot0.rtRightMap.rect.width, WorldConst.UIEaseFasterDuration):setEase(LeanTweenType.easeOutSine):setOnComplete(System.Action(slot0)).uniqueId)
end
}, function ()
return existCall(existCall)
end)
end
slot0.CancelMapUITween = function (slot0)
LeanTween.cancel(go(slot0.rtTopMap))
LeanTween.cancel(go(slot0.rtLeftMap))
LeanTween.cancel(go(slot0.rtRightMap))
end
slot0.DisposeMapUI = function (slot0)
slot0:DisposeMapTop()
slot0:DisposeMapLeft()
slot0:DisposeMapRight()
slot0:DisposeMapOut()
end
slot0.DisplayMap = function (slot0)
setActive(slot0.rtUIMain, true)
end
slot0.HideMap = function (slot0)
setActive(slot0.rtUIMain, false)
end
slot0.ShowMargin = function (slot0, slot1)
if slot0.wsMap then
slot0.wsMap:UpdateTransportDisplay(slot1)
end
end
slot0.LoadMap = function (slot0, slot1, slot2)
slot3 = {}
if not slot1:IsValid() then
table.insert(slot3, function (slot0)
slot0:OpPush("OpFetchMap", slot1.id, slot0)
end)
end
seriesAsync(slot3, function ()
if slot0.wsMap then
return existCall(slot1)
else
slot2:AddListener(WorldMap.EventUpdateActive, slot0.onDisposeMap)
slot2:AddListener(WorldMap.EventUpdateMoveSpeed, slot0.onClearMoveQueue)
slot2.AddListener.wsMap = slot0:NewMap(slot0)
slot2.AddListener.wsMap:Load(function ()
slot0.wsMap.transform:SetParent(slot0.rtDragLayer, false)
setActive(slot0.wsMap.transform, true)
setActive:InitMap()
return existCall(setActive)
end)
end
end)
end
slot0.InitMap = function (slot0)
for slot4, slot5 in ipairs(slot0.wsMap.wsMapFleets) do
onButton(slot0, slot5.rtRetreat, function ()
slot0:Op("OpReqRetreat", slot1.fleet)
end, SFX_PANEL)
slot5.AddListener(slot5, WSMapFleet.EventUpdateSelected, slot0.onFleetSelected)
end
slot0.wsMap:AddListener(WSMap.EventUpdateEventTips, slot0.onUpdateEventTips)
nowWorld:AddListener(World.EventUpdateSubmarineSupport, slot0.onUpdateSubmarineSupport)
nowWorld:AddListener(World.EventAchieved, slot0.onAchievementAchieved)
slot0.wsDragProxy:UpdateMap(slot1)
slot0.wsDragProxy:Focus(slot0.wsMap:GetFleet().transform.position)
slot0.wsMapCamera:UpdateMap(slot0.wsMap.map)
slot0:OnUpdateSubmarineSupport()
end
slot0.NewMap = function (slot0, slot1)
slot2 = WSMap.New()
slot2.wsPool = slot0.wsPool
slot2.wsTimer = slot0.wsTimer
slot2:Setup(slot1)
slot0.rtGrid.localEulerAngles = Vector3(slot1.theme.angle, 0, 0)
return slot2
end
slot0.DisposeMap = function (slot0)
if slot0.wsMap then
slot0.wsTimer:ClearInMapTimers()
slot0.wsTimer:ClearInMapTweens()
slot0:HideMap()
nowWorld.RemoveListener(slot1, World.EventUpdateSubmarineSupport, slot0.onUpdateSubmarineSupport)
nowWorld.RemoveListener(slot1, World.EventAchieved, slot0.onAchievementAchieved)
slot0.wsMap.map.RemoveListener(slot2, WorldMap.EventUpdateActive, slot0.onDisposeMap)
slot0.wsMap.map.RemoveListener(slot2, WorldMap.EventUpdateMoveSpeed, slot0.onClearMoveQueue)
slot0.wsMap:Dispose()
slot0.wsMap = nil
end
end
slot0.OnDisposeMap = function (slot0, slot1, slot2)
slot3 = false
if slot1 == WorldMap.EventUpdateActive then
slot3 = not slot2.active
end
if slot3 then
slot0:DisposeMap()
end
end
slot0.DisplayMapTop = function (slot0)
slot0.wsMapTop = slot0.wsMapTop or slot0:NewMapTop(slot0.rtTopMap)
setActive(slot0.rtTopMap, true)
end
slot0.HideMapTop = function (slot0)
setActive(slot0.rtTopMap, false)
end
slot0.NewMapTop = function (slot0, slot1)
slot2 = WSMapTop.New()
slot2.transform = slot1
slot2:Setup()
slot2.cmdSkillFunc = function (slot0)
slot0:emit(WorldMediator.OnOpenLayer, Context.New({
mediator = CommanderSkillMediator,
viewComponent = CommanderSkillLayer,
data = {
isWorld = true,
skill = slot0
}
}))
end
slot2.poisonFunc = function (slot0)
slot0:ShowSubView("PoisonPanel", {
slot0
})
end
onButton(slot0, slot2.btnBack, function ()
slot0:Op("OpCall", function (slot0)
slot0:ExitWorld(slot0)
end)
end, SFX_CANCEL)
return slot2
end
slot0.DisposeMapTop = function (slot0)
if slot0.wsMapTop then
slot0:HideMapTop()
slot0.wsMapTop:Dispose()
slot0.wsMapTop = nil
end
end
slot0.DisplayMapLeft = function (slot0)
slot0.wsMapLeft = slot0.wsMapLeft or slot0:NewMapLeft(slot0.rtLeftMap)
setActive(slot0.rtLeftMap, true)
end
slot0.HideMapLeft = function (slot0)
setActive(slot0.rtLeftMap, false)
end
slot0.NewMapLeft = function (slot0, slot1)
slot2 = WSMapLeft.New()
slot2.transform = slot1
slot2:Setup()
slot2.onAgonyClick = function ()
slot0:Op("OpOpenLayer", Context.New({
mediator = WorldInventoryMediator,
viewComponent = WorldInventoryLayer,
data = {
currentFleetIndex = nowWorld:GetActiveMap().findex
}
}))
end
slot2.onLongPress = function (slot0)
slot0:Op("OpOpenScene", SCENE.SHIPINFO, {
shipId = slot0.id,
shipVOs = nowWorld:GetFleet(slot0.fleetId).GetShipVOs(slot1, true)
})
end
slot2.onClickSalvage = function (slot0)
slot0:Op("OpCall", function (slot0)
slot0()
slot0:ShowSubView("SalvageResult", {
slot0.ShowSubView
})
end)
end
slot2.AddListener(slot2, WSMapLeft.EventSelectFleet, slot0.onSelectFleet)
return slot2
end
slot0.DisposeMapLeft = function (slot0)
if slot0.wsMapLeft then
slot0:HideMapLeft()
slot0.wsMapLeft:RemoveListener(WSMapLeft.EventSelectFleet, slot0.onSelectFleet)
slot0.wsMapLeft:Dispose()
slot0.wsMapLeft = nil
end
end
slot0.DisplayMapRight = function (slot0)
slot0.wsMapRight = slot0.wsMapRight or slot0:NewMapRight(slot0.rtRightMap)
setActive(slot0.rtRightMap, true)
slot0:UpdateAutoFightDisplay()
end
slot0.HideMapRight = function (slot0)
setActive(slot0.rtRightMap, false)
end
slot0.HideMapRightCompass = function (slot0)
return
end
slot0.HideMapRightMemo = function (slot0)
return
end
slot0.NewMapRight = function (slot0, slot1)
slot2 = WSMapRight.New()
slot2.transform = slot1
slot2.wsPool = slot0.wsPool
slot2.wsTimer = slot0.wsTimer
slot2:Setup()
slot2:OnUpdateInfoBtnTip()
slot2:OnUpdateHelpBtnTip()
onButton(slot0, slot2.btnOrder, function ()
slot0:Op("OpShowOrderPanel")
end, SFX_PANEL)
onButton(slot0, slot2.btnScan, function ()
slot0:Op("OpShowScannerPanel")
end, SFX_PANEL)
onButton(slot0, slot2.btnDefeat, function ()
slot0:OnUpdateHelpBtnTip(true)
slot0:Op("OpOpenLayer", Context.New({
mediator = WorldHelpMediator,
viewComponent = WorldHelpLayer,
data = {
titleId = 4,
pageId = 5
}
}))
end, SFX_PANEL)
onButton(slot0, slot2.btnDetail, function ()
slot0:Op("OpOpenLayer", Context.New({
mediator = WorldDetailMediator,
viewComponent = WorldDetailLayer,
data = {
fleetId = nowWorld:GetActiveMap():GetFleet().id
}
}))
end, SFX_PANEL)
onButton(slot0, slot2.btnInformation, function ()
slot0:Op("OpOpenLayer", Context.New({
mediator = WorldInformationMediator,
viewComponent = WorldInformationLayer,
data = {
fleetId = nowWorld:GetActiveMap():GetFleet().id
}
}))
end, SFX_PANEL)
onButton(slot0, slot2.btnInventory, function ()
slot0:Op("OpOpenLayer", Context.New({
mediator = WorldInventoryMediator,
viewComponent = WorldInventoryLayer,
data = {
currentFleetIndex = nowWorld:GetActiveMap().findex
}
}))
end, SFX_PANEL)
onButton(slot0, slot2.btnTransport, function ()
slot0:OnClickTransport()
end, SFX_PANEL)
onButton(slot0, slot2.btnPort, function ()
slot0:Op("OpReqEnterPort")
end, SFX_PANEL)
onButton(slot0, slot2.btnExit, function ()
slot1 = {}
if nowWorld:GetActiveMap():CheckFleetSalvage(true) then
table.insert(slot1, function (slot0)
pg.MsgboxMgr.GetInstance():ShowMsgBox({
content = i18n("world_catsearch_leavemap"),
onYes = slot0
})
end)
end
seriesAsync(slot1, function ()
slot0:Op("OpReqJumpOut", slot1.gid)
end)
end, SFX_PANEL)
onButton(slot0, slot2.btnHelp, function ()
slot0:OnUpdateHelpBtnTip(true)
slot0:Op("OpOpenLayer", Context.New({
mediator = WorldHelpMediator,
viewComponent = WorldHelpLayer
}))
end, SFX_PANEL)
onButton(slot0, slot2.toggleAutoFight:Find("off"), function ()
slot0:Op("OpCall", function (slot0)
slot0()
slot1 = {}
if PlayerPrefs.GetInt("first_auto_fight_mark", 0) == 0 then
table.insert(slot1, function (slot0)
PlayerPrefs.SetInt("first_auto_fight_mark", 1)
slot0:Op("OpOpenLayer", Context.New({
mediator = WorldHelpMediator,
viewComponent = WorldHelpLayer,
data = {
titleId = 2,
pageId = 8
},
onRemoved = slot0
}))
end)
end
if nowWorld.IsSystemOpen(slot2, WorldConst.SystemOrderSubmarine) and PlayerPrefs.GetInt("world_sub_auto_call", 0) == 1 and nowWorld:GetActiveMap():GetConfig("instruction_available")[1] == 1 and nowWorld:CanCallSubmarineSupport() and not nowWorld:IsSubmarineSupporting() then
if nowWorld:CalcOrderCost(WorldConst.OpReqSub) <= PlayerPrefs.GetInt("world_sub_call_line", 0) and slot2 <= nowWorld.staminaMgr:GetTotalStamina() then
if slot2 > 0 then
table.insert(slot1, function (slot0)
pg.MsgboxMgr.GetInstance():ShowMsgBox({
content = i18n("world_instruction_submarine_2", setColorStr(slot0, COLOR_GREEN)),
onYes = function ()
PlayerPrefs.SetInt("autoSubIsAcitve" .. "_" .. SYSTEM_WORLD, 1)
PlayerPrefs.SetInt:Op("OpReqSub", PlayerPrefs.SetInt)
end,
onNo = slot0
})
end)
else
PlayerPrefs.SetInt("autoSubIsAcitve" .. "_" .. SYSTEM_WORLD, 1)
table.insert(slot1, function (slot0)
slot0:Op("OpReqSub", slot0)
end)
end
end
end
seriesAsync(slot1, function ()
pg.TipsMgr.GetInstance():ShowTips(i18n("autofight_tip_bigworld_begin"))
getProxy(MetaCharacterProxy):setMetaTacticsInfoOnStart()
triggerToggle(slot0.wsMapRight.toggleSkipPrecombat, true)
PlayerPrefs.SetInt("autoBotIsAcitve" .. AutoBotCommand.GetAutoBotMark(SYSTEM_WORLD), 1)
nowWorld:TriggerAutoFight(true)
nowWorld.TriggerAutoFight:Op("OpInteractive")
end)
end)
end, SFX_PANEL)
onButton(slot0, slot2.toggleAutoFight:Find("on"), function ()
slot0:Op("OpCall", function (slot0)
slot0()
nowWorld:TriggerAutoFight(false)
slot0:Op("OpInteractive")
end)
end, SFX_PANEL)
return slot2
end
slot0.DisposeMapRight = function (slot0)
if slot0.wsMapRight then
slot0:HideMapRight()
slot0.wsMapRight:Dispose()
slot0.wsMapRight = nil
end
end
slot0.DisplayMapOut = function (slot0)
slot0.wsMapOut = slot0.wsMapOut or slot0:NewMapOut(slot0.rtOutMap)
setActive(slot0.rtOutMap, true)
end
slot0.HideMapOut = function (slot0)
setActive(slot0.rtOutMap, false)
end
slot0.NewMapOut = function (slot0, slot1)
slot2 = WSMapOut.New()
slot2.transform = slot1
slot2:Setup()
return slot2
end
slot0.DisposeMapOut = function (slot0)
if slot0.wsMapOut then
slot0:HideMapOut()
slot0.wsMapOut:Dispose()
slot0.wsMapOut = nil
end
end
slot0.DisplayAtlasOverall = function (slot0)
if slot0.wsAtlasOverall then
slot0.wsAtlasOverall:ShowOrHide(true)
end
end
slot0.HideAtlasOverall = function (slot0)
if slot0.wsAtlasOverall then
slot0.wsAtlasOverall:ShowOrHide(false)
end
end
slot0.LoadAtlasOverall = function (slot0, slot1)
slot2 = {}
if not slot0.wsAtlasOverall then
table.insert(slot2, function (slot0)
slot0.wsAtlasOverall = slot0:NewAtlasOverall()
slot0.wsAtlasOverall:LoadScene(function ()
slot0.wsAtlasOverall:UpdateAtlas(nowWorld:GetAtlas())
return slot0.wsAtlasOverall()
end)
end)
end
seriesAsync(slot2, function ()
return existCall(existCall)
end)
end
slot0.NewAtlasOverall = function (slot0)
slot1 = WSAtlasOverall.New()
slot1.onClickColor = function (slot0, slot1)
return
end
slot1.Setup(slot1)
return slot1
end
slot0.DisposeAtlasOverall = function (slot0)
if slot0.wsAtlasOverall then
slot0.wsAtlasOverall:Dispose()
slot0.wsAtlasOverall = nil
end
end
slot0.OnUpdateProgress = function (slot0, slot1, slot2, slot3, slot4)
slot0:UpdateSystemOpen()
if slot0.wsMapRight then
slot0.wsMapRight:OnUpdateHelpBtnTip()
end
end
slot0.OnUpdateScale = function (slot0, slot1, slot2, slot3)
if slot0.wsAtlas and not slot0.wsAtlasBottom:CheckIsTweening() then
slot0.wsAtlas:UpdateScale(slot3)
end
end
slot0.OnModelSelectMap = function (slot0, slot1, slot2, slot3, slot4, slot5)
if slot3 then
slot0:ShowSubView("FloatPanel", {
slot3,
slot4,
slot5,
slot2
})
else
slot0:HideSubView("FloatPanel")
end
end
slot0.OnUpdateSubmarineSupport = function (slot0, slot1)
slot0.wsMap:UpdateSubmarineSupport()
if slot0.wsMapLeft then
slot0.wsMapLeft:OnUpdateSubmarineSupport()
end
end
slot0.OnFleetSelected = function (slot0, slot1, slot2)
if slot2.selected then
slot0.wsDragProxy:Focus(slot2.transform.position, nil, LeanTweenType.easeInOutSine)
end
end
slot0.OnSelectFleet = function (slot0, slot1, slot2, slot3)
if slot3 == nowWorld:GetActiveMap():GetFleet() then
slot0:Op("OpMoveCamera", 0, 0.1)
else
slot0:Op("OpReqSwitchFleet", slot3)
end
end
slot0.OnClickCell = function (slot0, slot1, slot2)
slot3 = nowWorld:GetActiveMap()
slot4 = slot3:GetFleet()
if slot3:FindFleet(slot3:GetCell(slot1, slot2).row, slot3.GetCell(slot1, slot2).column) and slot6 ~= slot4 then
slot0:Op("OpReqSwitchFleet", slot6)
elseif slot3:CheckInteractive() then
slot0:Op("OpInteractive", true)
elseif slot3:IsSign(slot1, slot2) and ManhattonDist({
row = slot4.row,
column = slot4.column
}, {
row = slot5.row,
column = slot5.column
}) <= 1 then
slot0:Op("OpTriggerSign", slot4, slot5:GetEventAttachment(), function ()
slot0:Op("OpInteractive")
end)
elseif slot3.CanLongMove(slot3, slot4) then
slot0:Op("OpLongMoveFleet", slot4, slot5.row, slot5.column)
else
slot0:Op("OpReqMoveFleet", slot4, slot5.row, slot5.column)
end
end
slot0.OnClickTransport = function (slot0)
if slot0.svScannerPanel:isShowing() then
return
end
slot0:Op("OpCall", function (slot0)
slot0()
slot0:QueryTransport(function ()
slot0:EnterTransportWorld()
end)
end)
end
slot0.QueryTransport = function (slot0, slot1)
slot2 = nowWorld:GetActiveMap()
slot3 = {}
if not nowWorld:IsSystemOpen(WorldConst.SystemOutMap) then
pg.TipsMgr.GetInstance():ShowTips(i18n("word_systemClose"))
return
end
if slot2:CheckAttachmentTransport() == "story" then
slot5 = pg.gameset.world_transfer_eventstory.description[1]
table.insert(slot3, function (slot0)
pg.NewStoryMgr.GetInstance():Play(slot0, function (slot0, slot1)
if slot1 == 1 then
slot0()
end
end, true)
end)
end
if nowWorld.IsSubmarineSupporting(slot5) and slot2:GetSubmarineFleet():GetAmmo() > 0 then
table.insert(slot3, function (slot0)
pg.MsgboxMgr.GetInstance():ShowMsgBox({
content = i18n("world_instruction_submarine_6"),
onYes = slot0
})
end)
end
if slot2.CheckFleetSalvage(slot2, true) then
table.insert(slot3, function (slot0)
pg.MsgboxMgr.GetInstance():ShowMsgBox({
content = i18n("world_catsearch_leavemap"),
onYes = slot0
})
end)
end
slot5 = nil
for slot9, slot10 in ipairs(slot2.GetNormalFleets(slot2)) do
for slot14, slot15 in ipairs(slot10:GetCarries()) do
if slot15.config.out_story ~= "" then
slot5 = slot15.config.out_story
end
end
end
if slot5 then
slot6 = pg.NewStoryMgr.GetInstance()
table.insert(slot3, function (slot0)
slot0:Play(slot0.Play, function (slot0, slot1)
if slot1 == 1 then
slot0()
end
end, true)
end)
end
slot6, slot7 = slot2.CkeckTransport(slot2)
if not slot6 then
table.insert(slot3, function (slot0)
pg.MsgboxMgr.GetInstance():ShowMsgBox({
content = slot0,
onYes = slot0
})
end)
end
seriesAsync(slot3, slot1)
end
slot0.OnUpdateEventTips = function (slot0, slot1, slot2)
if slot0.wsMapRight then
slot0.wsMapRight:OnUpdateEventTips()
end
if slot0.wsMapTop then
slot0.wsMapTop:OnUpdatePoison()
end
end
slot0.OnClickMap = function (slot0, slot1, slot2)
pg.CriMgr.GetInstance():PlaySoundEffect_V3(SFX_PANEL)
slot5 = slot0.wsMap.map.bottom
slot6 = slot0.wsMap.map.left
slot7 = slot0.wsMap.map.right
if slot1 < slot0.wsMap.map.top or slot5 < slot1 or slot2 < slot6 or slot7 < slot2 then
slot0:OnClickTransport()
else
slot0:OnClickCell(slot1, slot2)
end
end
slot0.CheckScannerEnable = function (slot0, slot1, slot2)
if nowWorld:IsSystemOpen(WorldConst.SystemScanner) and slot0.wsMap.map:GetCell(slot1, slot2) and slot4:GetInFOV() and not slot4:InFog() and slot4:GetScannerAttachment() then
return slot5, slot0.camera:WorldToScreenPoint(slot0.wsMap:GetCell(slot1, slot2).rtAttachments.position)
end
end
slot0.OnLongPressMap = function (slot0, slot1, slot2)
if not slot0.svScannerPanel:isShowing() then
slot3, slot4 = slot0:CheckScannerEnable(slot1, slot2)
if slot3 then
slot0:Op("OpShowScannerPanel", slot3, slot4)
end
end
end
slot0.OnAchievementAchieved = function (slot0, slot1, slot2, slot3, slot4)
for slot8, slot9 in ipairs(slot3) do
pg.TipsMgr.GetInstance():ShowTips(slot9)
end
if slot4 then
if nowWorld.isAutoFight then
nowWorld:AddAutoInfo("message", i18n("autofight_discovery", slot4.config.target_desc))
else
table.insert(slot0.achievedList, {
slot4,
slot0.wsMapRight.btnInformation.position
})
end
end
end
slot0.DoAnim = function (slot0, slot1, slot2)
if not slot0.wsAnim:GetAnim(slot1) then
slot3:SetAnim(slot1, slot0:NewUIAnim(slot1))
end
slot3:GetAnim(slot1):Play(slot2)
end
slot0.NewUIAnim = function (slot0, slot1)
slot2 = UIAnim.New()
slot2:Setup(slot1)
slot2:AddListener(UIAnim.EventLoaded, function ()
slot0.transform:SetParent(slot1.rtTop, false)
end)
slot2.Load(slot2)
return slot2
end
slot0.DoStrikeAnim = function (slot0, slot1, slot2, slot3)
if not slot0.wsAnim:GetAnim(slot1) then
slot4:SetAnim(slot1, slot0:NewStrikeAnim(slot1, slot2))
else
slot4:GetAnim(slot1):ReloadShip(slot2)
end
slot4:GetAnim(slot1):Play(slot3)
end
slot0.NewStrikeAnim = function (slot0, slot1, slot2)
slot3 = UIStrikeAnim.New()
slot3:Setup(slot1, slot2)
slot3:AddListener(UIStrikeAnim.EventLoaded, function ()
slot0.transform:SetParent(slot1.rtTop, false)
end)
slot3.Load(slot3)
return slot3
end
slot0.StopAnim = function (slot0)
slot0.wsAnim:Stop()
end
slot0.UpdateSystemOpen = function (slot0)
if slot0:GetInMap() then
slot0.wsMapLeft.onAgonyClickEnabled = nowWorld:IsSystemOpen(WorldConst.SystemInventory)
setActive(slot0.wsMapRight.btnInventory, nowWorld:IsSystemOpen(WorldConst.SystemInventory))
setActive(slot0.wsMapRight.btnTransport, nowWorld:IsSystemOpen(WorldConst.SystemOutMap))
setActive(slot0.wsMapRight.btnDetail, nowWorld:IsSystemOpen(WorldConst.SystemFleetDetail))
setActive(slot0.wsMapRight.rtCompassPanel, nowWorld:IsSystemOpen(WorldConst.SystemCompass))
setActive(slot0.wsMapRight.toggleAutoFight, nowWorld:GetActiveMap():CanAutoFight())
else
setActive(slot0.wsAtlasBottom.btnBoss, nowWorld:IsSystemOpen(WorldConst.SystemWorldBoss))
setActive(slot0.wsAtlasBottom.btnBoss:Find("tip"), nowWorld:GetBossProxy():NeedTip() or nowWorld:GetBossProxy():CanUnlock())
setActive(slot0.wsAtlasBottom.btnBoss:Find("sel"), not (not nowWorld:GetBossProxy():ExistSelfBoss() and not nowWorld.GetBossProxy().CanUnlock()))
if slot3 then
WorldGuider.GetInstance():PlayGuideAndUpdateOnEnd("WorldG191")
end
onButton(slot0, slot5, function ()
pg.MsgboxMgr.GetInstance():ShowMsgBox({
type = MSGBOX_TYPE_HELP,
helps = i18n("world_reset_tip")
})
end, SFX_PANEL)
setActive(slot5, nowWorld.IsSystemOpen(slot6, WorldConst.SystemResetCountDown) and nowWorld:CheckResetProgress())
if nowWorld.IsSystemOpen(slot6, WorldConst.SystemResetCountDown) and nowWorld.CheckResetProgress() then
if math.floor(nowWorld:GetResetWaitingTime() / 86400) > 0 then
setText(slot5:Find("Text"), i18n("world_reset_1", string.format(" %d ", slot8)))
elseif slot8 == 0 then
setText(slot5:Find("Text"), i18n("world_reset_2", string.format(" %d ", 0)))
elseif slot8 < 0 then
setText(slot5:Find("Text"), i18n("world_reset_3"))
end
end
setActive(slot0.wsAtlasBottom.btnShop, nowWorld:IsSystemOpen(WorldConst.SystemResetShop))
end
setActive(slot0.resAtlas._tf, nowWorld:IsSystemOpen(WorldConst.SystemResource))
setActive(slot0.resMap._tf, nowWorld:IsSystemOpen(WorldConst.SystemResource))
end
slot0.EnterToModelMap = function (slot0, slot1)
table.insert(slot2, function (slot0)
setActive(slot0.rtTopAtlas:Find("print/title_world"), true)
setActive(slot0.rtTopAtlas:Find("print/title_view"), false)
slot0.wsAtlasBottom:UpdateScale(1, true, slot0)
end)
table.insert(slot2, function (slot0)
slot0.wsAtlas:SwitchArea(slot0.wsAtlas.SwitchArea, true, slot0)
end)
parallelAsync(slot2, function ()
slot0 = nowWorld:GetAtlas():GetActiveEntrance()
if slot0 == slot0:GetAreaId() then
slot1.wsAtlas:UpdateSelect(slot0)
end
end)
end
slot0.ReturnToModelArea = function (slot0)
slot0.wsAtlas:UpdateSelect()
table.insert(slot1, function (slot0)
setActive(slot0.rtTopAtlas:Find("print/title_world"), false)
setActive(slot0.rtTopAtlas:Find("print/title_view"), true)
slot0.wsAtlasBottom:UpdateScale(0, true, slot0)
end)
table.insert(slot1, function (slot0)
slot0.wsAtlas:SwitchArea(nil, true, slot0)
end)
parallelAsync(slot1, function ()
return
end)
end
slot0.EnterTransportWorld = function (slot0)
slot0:Op("OpSetInMap", false, function (slot0, slot1, slot2)
slot0.wsAtlas:SwitchArea(slot0 or nowWorld:GetActiveEntrance():GetAreaId(), false, function ()
slot0.wsAtlas:UpdateSelect(slot0.wsAtlas, , )
slot0(slot0.wsAtlas.UpdateSelect.wsAtlas, slot0.contextData.displayTransDic or {}, function ()
slot0.contextData.displayTransDic = Clone(nowWorld:GetAtlas().transportDic)
end)
end)
end)
end
slot0.BackToMap = function (slot0)
if slot0.wsAtlas:CheckIsTweening() then
return
end
slot0:Op("OpSetInMap", true)
end
slot0.DisplayEnv = function (slot0)
if nowWorld:GetActiveMap() and #slot1.config.map_bg > 0 then
GetImageSpriteFromAtlasAsync("world/map/" .. slot1.config.map_bg[1], "", slot0.rtEnvBG)
else
GetImageSpriteFromAtlasAsync("world/map/model_bg", "model_bg", slot0.rtEnvBG)
end
end
slot0.ScreenPos2MapPos = function (slot0, slot1)
slot3 = slot0.wsMap.map
slot6, slot7 = Plane.New(slot0.wsMap.rtQuads.forward, -Vector3.Dot(slot0.wsMap.rtQuads.position, slot0.wsMap.rtQuads.forward)).Raycast(slot5, slot0.camera:ScreenPointToRay(slot1))
if slot6 then
return slot3.theme:Y2Row(slot2.rtQuads:InverseTransformPoint(slot8).y), slot3.theme:X2Column(slot2.rtQuads.InverseTransformPoint(slot8).x)
end
end
slot0.BuildCutInAnim = function (slot0, slot1, slot2)
slot0.tfAnim = slot0.rtPanelList:Find(slot1 .. "(Clone)")
slot3 = {}
if not slot0.tfAnim then
table.insert(slot3, function (slot0)
PoolMgr.GetInstance():GetUI(slot0, true, function (slot0)
slot0:SetActive(false)
slot0.tfAnim = tf(slot0)
slot0.tfAnim:SetParent(slot0.rtPanelList, false)
return slot0.tfAnim.SetParent()
end)
end)
end
table.insert(slot3, function (slot0)
slot0.inCutIn = true
slot0.tfAnim:GetComponent("DftAniEvent"):SetEndEvent(function (slot0)
if not IsNil(slot0.tfAnim) then
slot0.inCutIn = false
pg.UIMgr.GetInstance():UnOverlayPanel(slot0.tfAnim, slot0.rtPanelList)
setActive(slot0.tfAnim, false)
return setActive()
end
end)
pg.UIMgr.GetInstance().OverlayPanel(slot1, slot0.tfAnim)
setActive(slot0.tfAnim, true)
end)
seriesAsync(slot3, function ()
return existCall(existCall)
end)
end
slot0.PlaySound = function (slot0, slot1, slot2)
if slot0.cueName then
pg.CriMgr.GetInstance():StopSE_V3()
slot0.cueName = nil
end
pg.CriMgr.GetInstance():PlaySE_V3(slot1, function ()
slot0.cueName = nil
end)
return existCall(slot2)
end
slot0.ChangeTopRaycasts = function (slot0, slot1)
GetComponent(slot0.rtTop, typeof(CanvasGroup)).blocksRaycasts = tobool(slot1)
end
slot0.DoTopBlock = function (slot0, slot1)
slot0:ChangeTopRaycasts(false)
return function (...)
slot0:ChangeTopRaycasts(true)
return existCall(slot0, ...)
end
end
slot0.SetMoveQueue = function (slot0, slot1)
slot0:ReContinueMoveQueue()
slot0.moveQueue = slot1
end
slot0.ClearMoveQueue = function (slot0)
slot0:DisplayMoveStopClick(false)
slot0.moveQueueInteractive = true
if #slot0.moveQueue > 0 then
slot0.moveQueue = {}
end
slot0:ShowFleetMoveTurn(false)
end
slot0.DoQueueMove = function (slot0, slot1)
slot0:DisplayMoveStopClick(true)
slot2 = nowWorld:GetActiveMap()
slot3 = _.detect(slot0.moveQueue, function (slot0)
return slot0.stay
end)
if #slot0.moveQueue == 1 and slot2.IsSign(slot2, slot3.row, slot3.column) then
slot0:ClearMoveQueue()
slot0:Op("OpTriggerSign", slot1, slot2:GetCell(slot3.row, slot3.column).GetEventAttachment(slot4), function ()
slot0:Op("OpInteractive")
end)
else
slot0.ReContinueMoveQueue(slot0)
slot0:ShowFleetMoveTurn(true)
slot0:Op("OpReqMoveFleet", slot1, slot3.row, slot3.column)
end
end
slot0.CheckMoveQueue = function (slot0, slot1)
if #slot0.moveQueue < #slot1 or #slot1 == 0 then
slot0:ClearMoveQueue()
elseif slot0.moveQueue[#slot1].row ~= slot1[#slot1].row or slot0.moveQueue[#slot1].column ~= slot2.column then
slot0:ClearMoveQueue()
else
for slot6 = 1, #slot1, 1 do
table.remove(slot0.moveQueue, 1)
end
if #slot0.moveQueue == 0 then
slot0.moveQueueInteractive = true
end
end
end
slot0.InteractiveMoveQueue = function (slot0)
if slot0.moveQueueInteractive then
slot0:ClearMoveQueue()
else
slot0:DisplayMoveStopClick(false)
slot0.moveQueueInteractive = true
end
end
slot0.ReContinueMoveQueue = function (slot0)
slot0.moveQueueInteractive = false
end
slot0.DisplayMoveStopClick = function (slot0, slot1)
setActive(slot0.rtClickStop, slot1)
if slot1 then
setActive(slot0.rtClickStop:Find("long_move"), not nowWorld.isAutoFight)
setActive(slot0.rtClickStop:Find("auto_fight"), nowWorld.isAutoFight)
end
end
slot0.ShowFleetMoveTurn = function (slot0, slot1)
if slot0.wsMap then
if slot1 then
slot0.wsMap:GetFleet():PlusMoveTurn()
else
slot0.wsMap:GetFleet():ClearMoveTurn()
end
end
end
slot0.GetAllPessingAward = function (slot0, slot1)
slot3 = nowWorld.GetAtlas(slot2)
slot4 = {}
for slot8, slot9 in pairs(nowWorld.pressingAwardDic) do
if slot9.flag then
slot2:FlagMapPressingAward(slot8)
slot3:MarkMapTransport(slot8)
if #pg.world_event_complete[slot9.id].event_reward_slgbuff > 0 then
slot4[slot11[1]] = defaultValue(slot4[slot11[1]], 0) + slot11[2]
end
end
end
if not nowWorld:GetActiveMap().visionFlag and nowWorld:IsMapVisioned(slot5.id) then
slot5:UpdateVisionFlag(true)
end
if slot0.wsAtlas then
slot0.wsAtlas:OnUpdatePressingAward()
end
if slot0.wsAtlasOverall then
slot0.wsAtlasOverall:OnUpdatePressingAward()
end
slot6 = {}
for slot10, slot11 in pairs(slot4) do
table.insert(slot6, function (slot0)
nowWorld:GetGlobalBuff(slot0):GetFloor():ShowSubView("GlobalBuff", {
{
id = slot0,
floor = slot1,
before = nowWorld.GetGlobalBuff(slot0).GetFloor()
},
slot0
})
end)
table.insert(slot6, function (slot0)
nowWorld:AddGlobalBuff(slot0, nowWorld.AddGlobalBuff)
slot0()
end)
end
seriesAsync(slot6, function ()
return existCall(existCall)
end)
end
slot0.CheckGuideSLG = function (slot0, slot1, slot2)
table.insert(slot3, {
"WorldG007",
function ()
return slot0:InPort(slot1.id, nowWorld:GetRealm())
end
})
table.insert(slot3, {
"WorldG111",
function ()
return slot0:canExit()
end
})
table.insert(slot3, {
"WorldG112",
function ()
return nowWorld:GetActiveEntrance().becomeSairen and slot0:GetSairenMapId() == slot0.id
end
})
table.insert(slot3, {
"WorldG124",
function ()
return nowWorld:IsSystemOpen(WorldConst.SystemOrderSubmarine) and slot0:GetConfig("instruction_available")[1] ~= 0 and nowWorld:CanCallSubmarineSupport()
end
})
table.insert(slot3, {
"WorldG162",
function ()
return _.any(slot0:GetNormalFleets(), function (slot0)
return _.any(slot0:GetShips(true), function (slot0)
return slot0:IsBroken()
end)
end)
end
})
table.insert(slot3, {
"WorldG163",
function ()
return underscore.any(nowWorld:GetTaskProxy():getDoingTaskVOs(), function (slot0)
return not slot0:IsAutoSubmit() and slot0:isFinished()
end)
end
})
table.insert(slot3, {
"WorldG164",
function ()
return slot0:CheckFleetSalvage(true)
end
})
table.insert(slot3, {
"WorldG181",
function ()
return nowWorld:GetInventoryProxy().GetItemCount(slot0, 102) > 0
end
})
slot4 = _.filter(slot1.FindAttachments(slot1, WorldMapAttachment.TypeEvent), function (slot0)
return slot0:IsAlive()
end)
for slot8, slot9 in ipairs(pg.gameset.world_guide_event.description) do
table.insert(slot3, {
slot9[2],
function ()
return _.any(_.any, function (slot0)
return slot0.id == slot0[1]
end)
end
})
end
slot5 = pg.NewStoryMgr.GetInstance()
for slot9, slot10 in ipairs(slot3) do
if not slot5:IsPlayed(slot10[1]) and slot10[2]() then
WorldGuider.GetInstance():PlayGuide(slot10[1])
break
end
end
end
slot0.CheckEventForMsg = function (slot0, slot1)
return pg.SystemOpenMgr.GetInstance():isOpenSystem(slot0.player.level, "EventMediator") and getProxy(EventProxy).eventForMsg
end
slot0.CheckMarkOverallClose = function (slot0)
if slot0.svMarkOverall:isShowing() then
slot0:HideSubView("MarkOverall")
return true
else
return false
end
end
slot0.OpenPortLayer = function (slot0, slot1)
slot0:Op("OpOpenLayer", Context.New({
mediator = WorldPortMediator,
viewComponent = WorldPortLayer,
data = slot1
}))
end
slot0.ShowTransportMarkOverall = function (slot0, slot1, slot2)
if nowWorld:GetActiveMap():CheckFleetSalvage(true) then
slot0:Op("OpShowMarkOverall", slot1, function ()
pg.NewStoryMgr.GetInstance():Play(pg.gameset.world_catsearch_special.description[1], pg.NewStoryMgr.GetInstance().Play, true)
end)
else
slot0.Op(slot0, "OpShowMarkOverall", slot1, slot2)
end
end
slot0.UpdateAutoFightDisplay = function (slot0)
slot0:ClearMoveQueue()
slot1 = nowWorld.isAutoFight
if slot0.wsMapRight then
setActive(slot0.wsMapRight.toggleAutoFight:Find("off"), not slot1)
setActive(slot0.wsMapRight.toggleAutoFight:Find("on"), slot1)
setActive(slot0.wsMapRight.toggleSkipPrecombat, not slot1)
end
end
slot0.GuideShowScannerEvent = function (slot0, slot1)
slot8, slot9 = slot0:CheckScannerEnable(slot0.wsMap.map:FindAttachments(WorldMapAttachment.TypeEvent, slot1)[1].row, slot0.wsMap.map.FindAttachments(WorldMapAttachment.TypeEvent, slot1)[1].column)
slot0.svScannerPanel:ActionInvoke("DisplayWindow", slot3, slot4)
end
slot0.DisplayAwards = function (slot0, slot1, slot2, slot3)
slot4 = {}
slot5 = {}
for slot9, slot10 in ipairs(slot1) do
if slot10.type == DROP_TYPE_WORLD_COLLECTION then
table.insert(slot5, slot10)
else
table.insert(slot4, slot10)
end
end
seriesAsync({
function (slot0)
if #slot0 == 0 then
return slot0()
end
slot1.items = slot0
slot1.removeFunc = slot0
slot0:emit(BaseUI.ON_WORLD_ACHIEVE, slot0.emit)
end,
function (slot0)
if not slot0[1] then
slot0()
return
end
slot1:emit(WorldMediator.OnOpenLayer, Context.New({
mediator = WorldMediaCollectionFilePreviewMediator,
viewComponent = WorldMediaCollectionFilePreviewLayer,
data = {
collectionId = slot1.id
},
onRemoved = slot0
}))
end
}, slot3)
end
slot0.DisplayPhaseAction = function (slot0, slot1)
function slot2(slot0)
if table.remove(slot0, 1).anim then
slot1:BuildCutInAnim(slot1.anim, slot0)
elseif slot1.story then
if nowWorld.isAutoFight then
slot0()
else
pg.NewStoryMgr.GetInstance():Play(slot1.story, slot0, true)
end
elseif slot1.drops then
if nowWorld.isAutoFight then
nowWorld:AddAutoInfo("drops", slot1.drops)
slot0()
else
slot1:DisplayAwards(slot1.drops, {}, slot0)
end
end
end
slot3 = {}
for slot7 = 1, #slot1, 1 do
table.insert(slot3, slot2)
end
seriesAsync(slot3, function ()
slot0:Op("OpInteractive")
end)
end
slot0.GetDepth = function (slot0)
return #slot0.wsCommands
end
slot0.GetCommand = function (slot0, slot1)
return slot0.wsCommands[slot1 or slot0:GetDepth()]
end
slot0.Op = function (slot0, slot1, ...)
slot0:GetCommand():Op(slot1, ...)
end
slot0.OpPush = function (slot0, slot1, ...)
slot0:GetCommand():OpPush(slot1, ...)
end
slot0.OpOpen = function (slot0)
WorldConst.Print("open operation stack: " .. slot0:GetDepth() + 1)
table.insert(slot0.wsCommands, WSCommand.New(slot0.GetDepth() + 1))
end
slot0.OpClose = function (slot0)
slot1 = slot0:GetDepth()
WorldConst.Print("close operation stack: " .. slot1)
slot0.wsCommands[slot1].Dispose(slot2)
table.remove(slot0.wsCommands, slot1)
end
slot0.OpClear = function (slot0)
for slot4, slot5 in ipairs(slot0.wsCommands) do
slot5:OpClear()
end
end
slot0.OpDispose = function (slot0)
for slot4, slot5 in ipairs(slot0.wsCommands) do
slot5:Dispose()
end
slot0.wsCommands = nil
end
slot0.NewMapOp = function (slot0, slot1)
WBank:Fetch(WorldMapOp).depth = slot0:GetDepth()
for slot6, slot7 in pairs(slot1) do
slot2[slot6] = slot7
end
return slot2
end
slot0.RegistMapOp = function (slot0, slot1)
table.insert(slot0.mapOps, slot1)
slot1:AddCallbackWhenApplied(function ()
for slot3 = #slot0.mapOps, 1, -1 do
if slot0.mapOps[slot3] == slot1 then
table.remove(slot0.mapOps, slot3)
end
end
end)
end
slot0.VerifyMapOp = function (slot0)
for slot4 = #slot0.mapOps, 1, -1 do
if not table.remove(slot0.mapOps, slot4).applied then
slot5:Apply()
end
end
slot0:OpClear()
end
slot0.GetCompassGridPos = function (slot0, slot1, slot2, slot3)
WorldGuider.GetInstance():SetTempGridPos(slot0.wsMapRight.wsCompass:GetMarkPosition(slot1, slot2), slot3)
end
slot0.GetEntranceTrackMark = function (slot0, slot1, slot2)
WorldGuider.GetInstance():SetTempGridPos(slot0.wsMapRight.wsCompass:GetEntranceTrackMark(slot1), slot2)
end
slot0.GetSlgTilePos = function (slot0, slot1, slot2, slot3)
WorldGuider.GetInstance():SetTempGridPos2(slot0.wsMap:GetCell(slot1, slot2):GetWorldPos(), slot3)
end
slot0.GetScannerPos = function (slot0, slot1)
WorldGuider.GetInstance():SetTempGridPos(slot0.svScannerPanel.rtPanel.transform.TransformPoint(slot2, slot4), slot1)
end
slot0.GuideSelectModelMap = function (slot0, slot1)
slot0:ClickAtlas(nowWorld:GetEntrance(slot1))
end
return slot0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.