-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlsp_defs.lua
More file actions
41 lines (33 loc) · 2.09 KB
/
Copy pathlsp_defs.lua
File metadata and controls
41 lines (33 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---@meta
---@class ColorRGBA
---@field [1] number Red (0–1)
---@field [2] number Green (0–1)
---@field [3] number Blue (0–1)
---@field [4] number? Alpha (0–1)
---@param hex string Don't prepend the hash!!! No hash!!!!!
---@return ColorRGBA
function HEX(hex) end
---@class BibCredit
---@field type string What the credit is for
---@field credit string Who's being credited
---@class BibCreditBadgeSingle
---@field type string What the credit is for
---@field credit string Who's being credited
---@field bcol? ColorRGBA Background color as formatted by `HEX()`; default #ca7ca7
---@field tcol? ColorRGBA Text color; default #fff
---@field scale? number Scale (default 0.7 to standard badges' 1)
---@class BibCreditBadgeMulti
---@field credits BibCredit[] List of credits for a multi-credit badge
---@field bcol? ColorRGBA Background color as formatted by `HEX()`; default #ca7ca7
---@field tcol? ColorRGBA Text color; default #fff
---@field scale? number Scale (default 0.7 to standard badges' 1)
---@alias BibCreditBadge BibCreditBadgeSingle | BibCreditBadgeMulti
---@class SMODS.Center
---@field biblio_evolution? (string | string[] | fun(self:SMODS.Joker|table, card:Card|table, crucible:Card|table):string) Key of center to evolve into, or table of such keys to be selected randomly, or function which returns such a key
---@field biblio_evol_effect? fun(self:SMODS.Joker|table, newcard:Card|table, oldextra:table):nil Effect to be applied after evolution, by base card to new card
---@field biblio_crucible_check? fun(self:SMODS.Joker|table, card:Card|table, crucible:Card|table):boolean Must return `true` for this card to be Crucible-eligible
---@field biblio_crucible_effect? fun(self:SMODS.Joker|table, card:Card|table, crucible:Card|table):nil Alternative effect of a Crucible, instead of changing center
---@field biblio_bound_compat? boolean Compatibility flag for the Bound sticker; inherits Perishable compatibility by default
---@class SMODS.Joker
---@field alt_use? fun(self:SMODS.Joker|table, card:SMODS.Joker|table):nil
---@field can_alt_use? fun(self:SMODS.Joker|table, card:SMODS.Joker|table):boolean