content stringlengths 5 1.05M |
|---|
return {
version = "1.4",
luaversion = "5.1",
tiledversion = "1.4.3",
orientation = "orthogonal",
renderorder = "right-down",
width = 32,
height = 22,
tilewidth = 8,
tileheight = 8,
nextlayerid = 5,
nextobjectid = 610,
properties = {},
tilesets = {
{
name = "tiles-overworld",
f... |
object_tangible_item_beast_converted_rock_mite_decoration = object_tangible_item_beast_shared_converted_rock_mite_decoration:new {
}
ObjectTemplates:addTemplate(object_tangible_item_beast_converted_rock_mite_decoration, "object/tangible/item/beast/converted_rock_mite_decoration.iff")
|
local M = {}
M.defaultIM = "com.apple.keylayout.ABC"
M.currentIM = M.defaultIM
|
---@class mediator
local mediator = {}
---Creates mediator.
---@return mediator
function mediator.create_mediator()
end
---Setups mediator
---@param mediator mediator
---@param networks table array with all available networks
---@param order table order of show ad. Array with objects like `{id = net_id, count = 2}`
-... |
local lspconfig_ok, lspconfig = pcall(require, "lspconfig")
if not lspconfig_ok then
vim.notify("nvim-lspconfig not found. LSP is disabled.", "warn")
return
end
local capabilities = vim.lsp.protocol.make_client_capabilities()
local cmp_nvim_lsp_ok, cmp_nvim_lsp = pcall(require, "cmp_nvim_lsp")
if cmp_nvim_lsp_o... |
local item = {
type = "selection-tool",
name = "station-group-nominator",
subgroup = "tool",
order = "z[station-group-nominator]",
show_in_library = false,
icons = {
{
icon = "__station-group-nominator__/graphics/icons/station-group-nominator.png",
icon_size = 32,
}
},
flags = {"only... |
-- print("**************准备就绪*******************")
-- --初始化所有准备好的类别名
-- require("InitClass")
-- --初始化道具表信息
-- require("ItemData")
-- --玩家信息获取
-- --1.从本地读取 本地存储有几种方式 PlayerPrefabs 和 json 或者二进制
-- --2.网络游戏 从服务器读取
-- require("PlayerData")
-- PlayerData:Init()
-- --之后的逻辑可以直接使用
-- require("BasePanel")
-- require("MainPane... |
function create_centrifuge(args)
local centrifuge = table.deepcopy(data.raw["assembling-machine"]["centrifuge-mk3"])
centrifuge.name = args.name
centrifuge.icon = "__built-in-beacons-fe-plus__/graphics/icons/" .. args.name .. ".png"
centrifuge.icon_size = 64
centrifuge.icon_mipmaps = nil
... |
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by shuieryin.
--- DateTime: 12/01/2018 9:30 PM
---
function getVocabList()
--GETVOCABLIST reads the fixed vocabulary list in vocab.txt and returns a
--cell array of the words
-- vocabList = GETVOCABLIST() reads the fixed vocabulary list... |
--[[
Локальный чат
--]]
--------------------------------------------------------------------------------
--<[ Общие события ]>-----------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------... |
local factory = require "bw.orm.factory"
local util = require "bw.util"
local log = require "bw.log"
return function()
log.debug("test_factory")
local obj = factory.create_obj("role", {
roleid = 123
})
log.debug(obj)
obj = factory.create_obj("user", {
uid = 10001,
... |
print(12 < 1);
print(1 < 12);
print(11 < 12);
print(12 < 12);
|
--!A cross-platform build utility based on Lua
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law... |
require("status")
require("loadfile")
filePath = ""
alreadyRepacking = false
-- General state
KEYFRAME_LIST_GLOBAL = {}
CURRENT_TEXT_BOX = require "textbox"
CURRENT_MOUSEOVER_TARGET = ""
CURRENT_MODE = "default"
MAP_ON = false
MAP_LOCK = true
UI_FLIP = false
-- Image extraction
THREAD_POOL = {}
CURRENT_FRAMES_DIR = ... |
if ( SERVER ) then
AddCSLuaFile( "shared.lua" )
end
SWEP.BulletLength = 9
SWEP.CaseLength = 19
SWEP.MuzVel = 255.905
SWEP.Attachments = {
[1] = {"reflex"},
[2] = {"laser"}}
SWEP.InternalParts = {
[1] = {{key = "hbar"}, {key = "lbar"}},
[2] = {{key = "hframe"}},
[3] = {{key = "ergonomichandle"}},
[4] = {{key... |
-- Use a very weak pseudo-number generator just for testing purpose.
local function my_random(s)
s.x = (16807 * s.x) % 2147483647
return s.x % 50
end
local function foo(a)
local s = { x = 13 }
local ls = { }
::a::
local x = 2*a + 1
ls[#ls+1] = function() return x end
if my_r... |
local lib2 = import("lib2");
local sublib2 = import("sublib2");
return cbinary(
"bin1",
{
ccompile{
"main.c",
},
lib2,
sublib2,
}
); |
local util = require("data-util");
util.replace_ingredient("car", "iron-plate", "aluminum-6061")
util.replace_some_ingredient("car", "steel-plate", 3, "aluminum-6061", 6) -- if iron was removed from car already
util.add_prerequisite("automobilism", "basic-alloys")
util.add_prerequisite("railway", "basic-alloys")
util... |
slot6 = 0.085
slot6 = 0.085
slot6 = 0.915
slot8 = 0
slot8 = 0
({
CannonPosition = {
{
seatDirection = 3.14,
seatId = 0,
seatPosition = cc.p(slot4, 0.3)
},
{
seatDirection = 3.14,
seatId = 1,
seatPosition = cc.p(slot4, 0.7)
},
{
seatDirection = 0,
seatId = 2,
seatPosition = cc.p(slo... |
return { 'nvim-treesitter/nvim-treesitter', opt = true,
as = 'treesitter',
cmd = {
'TSUpdate',
'TSInstall',
},
event = {
'BufEnter',
},
requires = {
{'nvim-treesitter/nvim-treesitter-textobjects'}, -- "smart" textobjects
{'JoosepAlviste/nvim-ts-context-commentstring'}... |
--[[
<expression>
<statements>
]]
return
function(self, node)
node.condition = node[1]
node[1] = nil
node.body = node[2]
node[2] = nil
end
|
--helper functions
function loadResources(a, b)
local base_folder, resource_table
if type(a) == 'string' then
base_folder = a
elseif type(b) == 'string' then
base_folder = b
else
base_folder = ''
end
if type(a) == 'table' then
resource_table = a
elseif type(b... |
TrackSales.db = TrackSales:NewModule("DB", "AceConsole-3.0")
local _, ts = ...
function TrackSales.db:TrackSale(item, gold)
local matchedProfession = ts:MatchProfession(item)
if matchedProfession ~= nil then
self:AddGold(matchedProfession, gold)
end
end
function TrackSales.db:AddGold(profession, gold)
loca... |
local Job = require("plenary.job")
local M = {}
local function candidates(input, callback)
if input == "" then
return
end
Job
:new({
command = "mocword",
args = { "-q", input },
on_exit = function(job, return_val)
local result = job:result()
local items = vim.tbl_map(function(w)
return {
... |
--ZFUNC-same-v1
local function same( tab, other ) --> res
if type( tab ) ~= 'table' or type( other ) ~= 'table' then
return tab == other
end
for k, v in pairs( tab ) do
local otherVal = other[ k ]
if otherVal == nil or not same( v, otherVal ) then
return false
end
end
... |
--===================================================================--
-- DMC AutoStore Plugin
--===================================================================--
local function encode( data )
print("AutoStore Plugin: encoding data")
return data
end
local function decode( data )
print("AutoStore Plugin: deco... |
return 'http://192.168.1.165:4001/sessions/new'
|
local transfer = {}
--消息传递接口,API保持一致即可,可用agent代替
function transfer:sMsg(...)
end
return transfer |
local Q = require 'Q'
local Vector = require 'libvec'
local Scalar = require 'libsclr'
local run_dt = require 'Q/ML/DT/lua/run_dt'
local make_dt = require 'Q/ML/DT/lua/dt'['make_dt']
local check_dt = require 'Q/ML/DT/lua/dt'['check_dt']
local ml_utils = require 'Q/ML/UTILS/lua/ml_utils'
local extract_goal = requ... |
local TeamActivityModule = require "module.TeamActivityModule"
local Time = require "module.Time"
local View = {};
local reward = {};
reward[1] = {type = 41, id = 90002, value = 500};
reward[2] = {type = 41, id = 90010, value = 1};
reward[3] = {type = 41, id = 90016, value = 5};
function View:Start(data)
self.view = ... |
local fn = vim.fn
local function t(str)
return vim.api.nvim_replace_termcodes(str, true, true, true)
end
local check_back_space = function()
local col = vim.fn.col "." - 1
return col == 0 or vim.fn.getline("."):sub(col, col):match "%s" ~= nil
end
local function tab(fallback)
local luasnip = require "luasnip"... |
assert(term.isColor(),"colorful terminal is required (use advanced computer/turtle)")assert(http and http.websocket,"http/websocket extension is required")local term=term;local a,b,c=term.setCursorPos,term.write,term.blit;term.setTextColor(colors.lightBlue)term.setBackgroundColor(colors.black)term.clear()a(1,1)print("E... |
local U = require "togo.utility"
local P = require "Pickle"
local Layout = require "core/Layout"
local NavItem = require "core/NavItem"
local M = U.module("Page")
U.class(M)
local page_vf = P.ValueFilter("Page")
:filter("layout", {"string", Layout})
:filter("file", "string")
:filter("page_source", "string")
:filter(... |
local kPhaseGateTimeout = 0.6 -- 0.3
if Server then
local GetDestinationGate = debug.getupvaluex(PhaseGate.Update, "GetDestinationGate")
local ComputeDestinationLocationId = debug.getupvaluex(PhaseGate.Update, "ComputeDestinationLocationId")
local DestroyRelevancyPortal = debug.getupvaluex(PhaseGate.Update... |
-- Mylly GUI renderer
project "Lib-MGUI-Renderer-Xlib"
kind "StaticLib"
language "C"
files { "*.h", "*.c", "premake4.lua" }
includedirs { ".", "..", "../..", "../../.." }
vpaths { [""] = { "../Libraries/MGUI/Renderer/Xlib" } }
location ( "../../../../Projects/" .. os.get() .. "/" .. _ACTION )
-- Linu... |
AddCSLuaFile()
local A = "AMBER"
local W = "WHITE"
local name = "Code 3 RX2700 Blue"
local COMPONENT = {}
COMPONENT.Model = "models/schmal/code3_rx2700.mdl"
COMPONENT.Lightbar = true
COMPONENT.Skin = 2
COMPONENT.Category = "Lightbar"
COMPONENT.Bodygroups = {}
COMPONENT.DefaultColors = {
[1] = "BLUE",
[2] = "BLUE"... |
local playsession = {
{"Kruv", {215969}},
{"Zory", {176300}},
{"Attackerdino", {191633}},
{"ersu", {123555}},
{"MeggalBozale", {83476}},
{"Nikkichu", {91443}},
{"RAFEDAS", {6331}},
{"chrisisthebe", {77991}},
{"jockelpeter", {55400}},
{"hectormalot", {29855}}
}
return playsession |
function displayFirebrandHp()
local firebrandHp = firebrand.getHp()
if (firebrandHp <= 9) then
draw.text(156, 1, firebrandHp)
else
draw.text(153, 1, firebrandHp)
end
end
|
if CLIENT then return end
local alias =
{
players = "user",
default = "user",
admin = "superadmin",
moderators = "superadmin",
developers = "superadmin",
owners = "superadmin",
superadmins = "superadmin",
administrator = "superadmin",
}
aowl = {}
--[[ this might not be needed
local handle = {
vote = functi... |
modifier_item_yasha_custom = class({})
function modifier_item_yasha_custom:IsHidden() return false end
function modifier_item_yasha_custom:IsDebuff() return false end
function modifier_item_yasha_custom:IsPurgable() return true end
function modifier_item_yasha_custom:DeclareFunctions()
return {
MODIFIER_P... |
local uv = vim.loop
local DIR_SEP = package.config:sub(1, 1)
local log = require("go.utils").log
local url = {
gofumpt = "mvdan.cc/gofumpt",
golines = "github.com/segmentio/golines",
["golangci-lint"] = "github.com/golangci/golangci-lint/cmd/golangci-lint",
goimports = "golang.org/x/tools/cmd/goimports",
gor... |
local stringsMain, stringsChangeLabel, stringKeyDown, stringsFilesystem, colorsTitle, colorsBackground, colorsText, colorsSelectionBackground, colorsSelectionText, componentProxy, componentList, pullSignal, uptime, tableInsert, mathMax, mathMin, mathHuge, mathFloor = "BootX", "Change label", "key_down", "filesystem", ... |
hp = 6000
attack = 425
defense = 300
speed = 80
mdefense = 300
luck = 80
strength = ELEMENT_FIRE
weakness = ELEMENT_ICE
function initId(id)
myId = id
end
function start()
preloadSpellSFX("Blaze")
end
function get_action(step)
local n = getRandomNumber(2)
if (n == 0) then
return COMBAT_ATT... |
--[[
Author: Ractidous
Date: 02.16.2015.
Create a linear projectile, then keep it tracked.
]]
function CastIllusoryOrb( event )
local caster = event.caster
local ability = event.ability
local point = event.target_points[1]
local radius = event.radius
local maxDist = event.max_distance
local orbSpeed ... |
-- Path of Building
--
-- Module: Calc Offence
-- Performs offence calculations.
--
local calcs = ...
local pairs = pairs
local ipairs = ipairs
local unpack = unpack
local t_insert = table.insert
local m_floor = math.floor
local m_modf = math.modf
local m_min = math.min
local m_max = math.max
local m_sqrt = math.sqrt
... |
_coverage['world'] = _world
_tests['world'] = {
function()
local world = _world{}
local mob_table = world.mobs
local count = #world.mobs
world:add_mob({})
assert(
#mob_table == count + 1,
"mob table didn't increase"
)
assert(
mob_table[#mob_table].world == world,
"m... |
local mod = yatm_armoury_c4
mod:register_tool("c4_detonator", {
description = "C4 Detonator",
groups = {
c4_detonator = 1,
},
inventory_image = "yatm_c4_detonator.png",
on_place = function (itemstack, _user, _pointed_thing)
-- TODO: place any remote detonatable c4s from inventory on place
retu... |
data:extend({
{
type = "technology",
name = "repair-pack-tier-1",
icon = "__repair-packs-tiers__/graphics/icons/civilian-repair-pack.png",
icon_size = 128,
effects =
{
{
type = "unlock-recipe",
recipe = "civilian-repair-pack"
},
},
prerequisites = {"automobi... |
local io = require 'iox'
local string = require 'stringx'
local M = _ENV
local inspect = require 'inspect'
local print = print
function M.show(v)
print(inspect(v))
end
return M
|
-- creates new Text object with given string
local function message_factory( font, str, limit, padX, padY )
local text = love.graphics.newText( font, nil )
text:addf( str, limit - (padX * 2), "left", padX, padY )
return text
end
-- OBJECT DEFINITION
local textbox = {}
-- member functions
functi... |
local t = require('luatest')
local net = require('net.box')
local cluster = require('test.luatest_helpers.cluster')
local server = require('test.luatest_helpers.server')
local g = t.group('gh_6260')
g.test_subscriptions_outside_box_cfg = function()
local sys_events = {'box.id', 'box.status', 'box.election', 'box.... |
--[[
desc: a type of Attri and a part of Renderer.
author: Musoucrow
since: 2018-3-7
alter: 2019-9-17
]]--
local _Color = require("graphics.drawunit.color")
---@type Graphics.Renderer.Part
local _Base = require("graphics.renderer.part.base")
---@class Graphics.Renderer.Part.Point:Graphics.Renderer.Part
local _Po... |
-- A Multibow keyboard layout for the VisualStudio Go extension
-- (https://github.com/Microsoft/vscode-go).
--[[
Copyright 2019 Harald Albrecht
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 wi... |
conf = require("config");
m = nil;
connAttempts = conf.connectionAttempts;
function main()
enduser_setup.start(start, function(err, str) print("Error: "..err.." "..str) end);
end
function start()
print("Connected to wifi as:" .. wifi.sta.getip())
gpio.mode(conf.outputPin,gpio.OUTPUT);
mqtt = mqtt.Client("MQT... |
-- Copyright (C) 2011 - 2013 David Reid. See included LICENCE file.
-- Enumerator representing the result from the Yes/No dialog.
Editor.YesNoDialogResult =
{
No = 0,
Yes = 1,
}
-- Enumerator representing the result from the Yes/No/Cancel dialog.
Editor.YesNoCancelDialogResult =
{
No = 0,
Yes ... |
configurations {
"Default",
}
flags {
"FatalWarnings",
"MultiProcessorCompile",
"NoPCH",
"Symbols",
"Unicode",
}
workspace "cli"
language "C++"
location "build"
flags {
"C++11"
}
project "tests"
files {
"tests/**",
"include/**",
}
includedirs {
"include",
"dep/include",
}
location "build"
k... |
--[[
Copyright (C) 2013-2018 Draios Inc dba Sysdig.
This file is part of sysdig.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by ... |
ENT.Base = "base_entity"
ENT.Type = "filter"
--[[---------------------------------------------------------
Name: Initialize
-----------------------------------------------------------]]
function ENT:Initialize()
end
--[[---------------------------------------------------------
Name: KeyValue
Desc: Cal... |
#!/usr/bin/env lua
-- MoonFLTK example: scroll.lua
--
-- Derived from the FLTK test/scroll.cxx example (http://www.fltk.org)
--
fl = require("moonfltk")
cos = math.cos
sin = math.sin
floor = math.floor
PI = math.pi
function Drawing(X,Y,W,H,L)
local wid = fl.widget_sub(X,Y,W,H,L)
wid:align('top')
wid:box('fl... |
--
-- Created by IntelliJ IDEA.
-- User: xiaofa
-- Date: 2016/1/26
-- Time: 10:31
-- To change this template use File | Settings | File Templates.
--
local semaphore = require "ngx.semaphore"
local common = require "ngx.semaphore"
local _M = { _VERSION = '0.01' }
local semaMap = {}
local messageList = {};
local work... |
imageProfile_Size = Vector2f:new(80,80)
imageProfile_Image = 'OgreHead.png'
|
--[[
Parses a payload containing the contents of the output from the Nginx `stub_status`
module. See: http://nginx.org/en/docs/http/ngx_http_stub_status_module.html
Config:
- payload_keep (bool, optional, default false)
Always preserve the original log line in the message payload.
*Example Heka Configuration*
... |
local destination = Position(32766, 32275, 14)
local topLeftPosition = Position(32817, 32333, 9)
local pillowPositions = {
{itemid = 1686, center = topLeftPosition + Position(2, 2, 0)},
{itemid = 1687, center = topLeftPosition + Position(2, 5, 0)},
{itemid = 1688, center = topLeftPosition + Position(5, 2, 0)},
{it... |
local termopen = require("rust-tools/executors/termopen")
local quickfix = require("rust-tools/executors/quickfix")
local toggleterm = require("rust-tools/executors/toggleterm")
local M = {}
M.termopen = termopen
M.quickfix = quickfix
M.toggleterm = toggleterm
return M
|
----------------------------------------------------------------------------------------------------
------------------------------------ Menu Item Definition ------------------------------------------
----------------------------------------------------------------------------------------------------
local MenuItem ... |
local ffi = require "ffi"
ffi.cdef[[
int sleep(int millis);
//int nanosleep(const struct timespec *req, struct timespec *rem);
int open(const char *path, int flags, int mode);
int close(int fd);
size_t write(int fildes, const void *buf, size_t nbytes);
void *mmap(void *addr, size_t length, int prot, int flags, int f... |
-- init mqtt client with keepalive timer 120sec
m = mqtt.Client(cfg.hostname, 120, "user", "password")
-- setup Last Will and Testament (optional)
-- Broker will publish a message with qos = 0, retain = 0, data = "offline"
-- to topic "/lwt" if client don't send keepalive packet
m:lwt("/lwt", cfg.hostname.." offline",... |
-- https://blog.csdn.net/goodai007/article/details/59579515
--[[
local res = {}
for var=1, 100 do
local num = math.random(10)
if(res[num] == nil) then
res[num] = 0
end
res[num] = res[num] + 1
end
for var=1, 100 do
if(res[var] ~= nil) then
print("num=" .. var... |
-- Modules loaded here will not be cleared and reloaded by Busted.
-- Busted started doing this to help provide more isolation. See issue #62
-- for more information about this.
local helpers = require('test.functional.helpers')(nil)
local iswin = helpers.iswin
if iswin() then
local ffi = require('ffi')
ffi.cdef[... |
local _Settings = {}
_Settings.file = os.getenv("userprofile") .. "\\Documents\\Test Drive Unlimited\\DA\\settings.tdu"
_Settings.logs = os.getenv("userprofile") .. "\\Documents\\Test Drive Unlimited\\DA\\logs\\"
_Settings.logFormat = "tdu_%d_%m_%Y.log"
function _Settings:read()
local file = io.open(self.file)
... |
project "BulletInverseDynamicsUtils"
kind "StaticLib"
includedirs {
"../../src"
}
files {
"*.cpp",
"*.hpp"
}
|
msg = {"manje", "više"}
|
--[[ $%BEGINLICENSE%$
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; version 2 of the
License.
This program is dis... |
--
-- config.lua
--
-- Configuration values for lsso.
--
config = {
-- Settings for Redis
redis_address = "127.0.0.1",
redis_port = 6379,
redis_secret = nil,
redis_db = 1,
redis_key_prefix = "lsso:",
-- lsso general settings
-- Auth cookie settings
cookie_prefix = "LSSO_",
coo... |
local tiny = require "tiny"
local system = tiny.processingSystem()
system.filter = tiny.requireAll("position")
-- update interval, less than 3 will cause bug
system.interval = 100
function system:process(e, dt)
print("wind blows, position ("..e.position.x..","..e.position.y..")")
e.position.x = e.position.x ... |
describe('takeLast', function()
it('produces an error if its parent errors', function()
expect(Rx.Observable.throw():takeLast(1).subscribe).to.fail()
end)
it('produces an error if the count is not specified', function()
expect(Rx.Observable.fromRange(3):takeLast().subscribe).to.fail()
end)
it('produ... |
-- Copyright (c) 2010, Thomas Goyne <plorkyeran@aegisub.org>
--
-- Permission to use, copy, modify, and distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" ... |
local E, L, V, P, G = unpack(select(2, ...)); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local UF = E:GetModule('UnitFrames');
local _, ns = ...
local ElvUF = ns.oUF
assert(ElvUF, "ElvUI was unable to locate oUF.")
--Cache global variables
--Lua functions
local max = math.max
--WoW API / Variables
local... |
local class = require("pl.class")
local EventEmitter = require("core.EventEmitter")
local tablex = require("pl.tablex")
local wrapper = require("core.lib.wrapper")
---@class Effect : EventEmitter
---@field id string
---@field flags any
---@field config table
---@field startedAt number
---@field pause... |
package.path = package.path .. ";game/?.lua"
-- Include game helpers
require "common"
require "collusion"
-- Load game common modules
Queue = require "Queue"
Object = require "Object"
Entity = require "Entity"
-- Gui
GuiFrame = require "GuiFrame"
MainMenu = require "MainMenu"
-- Game specific section
Stats = re... |
local ns = require('namespace')
local SoundSystem = ns.class("SoundSystem",ns.System)
function SoundSystem:requires()
return {"boombox"}
end
function SoundSystem:onPlay(music)
if music.channel == -1 then
--we play for the first time
music.channel = playSound(music.sound.id)
else
resumeChannel(music.channel... |
----------------------------------
-- Area: Selbina
-- NPC: Boris
-- Type: Item Deliverer
-- !pos 61.074 -14.655 -7.1 248
-----------------------------------
local ID = require("scripts/zones/Selbina/IDs")
-----------------------------------
function onTrade(player,npc,trade)
end
function onTrigger(player,npc)
p... |
----------------------------
-- SSBase --
-- Created by Skeyler.com --
----------------------------
SS.MapList = {}
local filename = "maplist.txt"
-- Set this to run in the SS.SetupGamemode function in your init.lua
function SS:LoadMaps()
if !SS.ServerDir then Error("YOU HAVE NO SE... |
--monitor_mgr.lua
import("network/http_client.lua")
local ljson = require("lcjson")
local log_page = import("monitor/log_page.lua")
local RpcServer = import("network/rpc_server.lua")
local HttpServer = import("network/http_server.lua")
local jdecode = ljson.decode
local env_get = enviro... |
Oldhand_SaveData = nil;
function Resurrection()
if (UnitExists("target") and UnitIsPlayer("target") and UnitCanAssist("player", "target")) then
local btCustom = {
[1] = {
},
[2] = {
{"YELL", "我感觉得到你的恐惧,%t!赐于你新的生命,勇敢地站起来吧!"},
{"YELL", "起来!不愿做尸体的%t... |
-- luacheck: globals vim
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
local packer_bootstrap = nil
if fn.empty(fn.glob(install_path)) > 0 then
packer_bootstrap = fn.system(
{'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_p... |
#****************************************************************************
#**
#** File : /units/URL0310/URL0310_script.lua
#** Author(s): neagix
#**
#** Summary : Seraphim Unit Script
#**
#** Copyright © 2020 neagix - licensed under a BSD 3-clause license
#***********************************************... |
local ERRORCODE = {
moneyandtype=10011,--钱和水果类型不合法
nopeople=10012,--此人不存在
dealerya=10013,--地主不能压
havedya=10014,--已经压过此类型
yanoenoughmoney=10015,--没有足够的钱
uppermoneylimit=10016,--压钱超上限
gameisprepare=10017,--游戏正在准备中,稍后再压
--新玩家
useralreadyexit=10021,--已经存在该玩家
--退出队列
notinlist=10022,--不在队列列表
--想加入庄家队列
alreadyi... |
--[[
GD50
Legend of Zelda
Author: Colton Ogden
cogden@cs50.harvard.edu
]]
Doorway = Class{}
function Doorway:init(direction, open, room)
self.direction = direction
self.open = open
self.room = room
if direction == 'left' then
self.x = MAP_RENDER_OFFSET_X
self.y = MAP_... |
---@class CS.UnityEngine.RelativeJoint2D : CS.UnityEngine.Joint2D
---@field public maxForce number
---@field public maxTorque number
---@field public correctionScale number
---@field public autoConfigureOffset boolean
---@field public linearOffset CS.UnityEngine.Vector2
---@field public angularOffset number
---@field p... |
-- Creator:
-- EarthSalamander, May 12th, 2019
-- Leshrac Diabolic Edict luafied
LinkLuaModifier("modifier_imba_leshrac_diabolic_edict", "components/abilities/heroes/hero_leshrac", LUA_MODIFIER_MOTION_NONE)
imba_leshrac_diabolic_edict = class({})
function imba_leshrac_diabolic_edict:GetAbilityTextureName()
if not I... |
local array, it, set = require "util.array", require "util.iterators", require "util.set";
local mm = require "core.modulemanager";
function reload_all()
local modules = module:get_option_set("reload_modules", {});
if not modules then
module:log("warn", "No modules listed in the config to reload - set reload_modul... |
local gm = require "GameManager"
io.stdout:setvbuf("no")
local isActive = false
function love.load()
gm.load()
gm.start()
end
function love.update(dt)
gm.update(dt)
if isActive then d:updateText(dt) end
end
function love.mousepressed(...)
isActive = true
end
function love.draw()
gm.draw()
if isActive then d... |
ILevel =
{
_name = "NULL",
_tmxPath = "NULL",
_rows = -1,
_columns = -1,
_beatPause = -1,
_beatBuffer = -1,
_heroX = -1,
_heroY = -1,
_enemies = {},
_levelMatrix = {},
_triggers = {}
}
function ILevel:Create()
local b = {}
setmetatable(b, self)
b.__index = self
return b
end
function ILevel:... |
return {'duvel','duvelen','duvels','duvelstoejager','duveltje','duvekot','duvelde','duvelse','duvelt','duveltjes','duvelstoejagers'} |
---------------------------------------------
-- Level 5 Petrify
--
-- Description: AOE Petrify and on multiples of 5.
-- Type: Physical
-- Utsusemi/Blink absorb: Ignore
-- Range: 15' radial
-- Notes:
---------------------------------------------
require("scripts/globals/monstertpmoves")
require("scripts/globals/settin... |
local api = trinium.api
local function reg(name, tbl)
api.delayed_call("trinium_materials", trinium.mapgen.register_vein, name, tbl)
end
reg("diamond", {
ore_list = {"trinium_materials:ore_diamond", "trinium_materials:ore_antracite",
"trinium_materials:ore_coal", "trinium_materials:ore_graphite"},
ore_chances ... |
local os = require "os"
local urllib = require "hawk/sparkle/urllib"
local osx = {}
local function execute(command, msg)
local code = os.execute(command .. " > /dev/null 2>&1")
if code ~= 0 then
error(msg)
end
end
function osx.getApplicationPath(workingdir)
local path = workingdir:sub(0, -20)
if p... |
local constants = require("bufferline.constants")
local utils = require("bufferline.utils")
local api = vim.api
local fn = vim.fn
local fmt = string.format
-- string.len counts number of bytes and so the unicode icons are counted
-- larger than their display width. So we use nvim's strwidth
local strwidth = vim.fn.str... |
-- デバッグ出力
function PutsDubug(msg)
if msg == nil or msg == '' then
return
end
TraceAI(string.format("%q", msg))
end
require './AI/USER_AI/Extend'
require './AI/USER_AI/Queue'
require './AI/USER_AI/Array'
require './AI/USER_AI/Logger'
require './AI/USER_AI/Setting'
require './AI/USER_AI/Common'
require './AI/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.