Add dedicated file for credits

This commit is contained in:
Emik 2026-07-15 01:18:18 +02:00
parent 805be430b0
commit e3b01d9a03
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 40 additions and 46 deletions

View file

@ -3,7 +3,7 @@
"id": "Roland", "id": "Roland",
"name": "Roland", "name": "Roland",
"prefix": "Roland", "prefix": "Roland",
"version": "2.9.55", "version": "2.9.56",
"badge_colour": "8BE9FD", "badge_colour": "8BE9FD",
"display_name": "Roland", "display_name": "Roland",
"main_file": "src/main.lua", "main_file": "src/main.lua",

33
src/credits.lua Normal file
View file

@ -0,0 +1,33 @@
-- Special shoutout to all contributors. <3
return {
aster = {
name = "asterSSH",
fg = HEX "f8f8f2ff",
bg = HEX "bd93f9ff",
},
bakersdozenbagels = {
name = "BakersDozenBagels",
fg = HEX "362708ff",
bg = HEX "edd198ff",
},
char = {
name = "char (@irregulester)",
fg = HEX "f8f8f2ff",
bg = HEX "ff79c6ff",
},
ghostlyfield = {
name = "ghostlyfield",
fg = HEX "ffffffff",
bg = HEX "b290e6ff",
},
hamester = {
name = "Hamester",
fg = HEX "ffffffff",
bg = HEX "ffa100ff",
},
redstoad = {
name = "RedsToad",
fg = HEX "ffffffff",
bg = HEX "da4044ff",
},
}

View file

@ -13,44 +13,8 @@ q {
return false return false
end end
-- Special shoutout to all contributors. <3 f(assert(SMODS.load_file "src/credits.lua")() or require "credits"):each(function(v, k)
local credits = {
aster = {
name = "asterSSH",
fg = HEX "f8f8f2ff",
bg = HEX "bd93f9ff",
},
bakersdozenbagels = {
name = "BakersDozenBagels",
fg = HEX "362708ff",
bg = HEX "edd198ff",
},
char = {
name = "char (@irregulester)",
fg = HEX "f8f8f2ff",
bg = HEX "ff79c6ff",
},
ghostlyfield = {
name = "ghostlyfield",
fg = HEX "ffffffff",
bg = HEX "b290e6ff",
},
hamester = {
name = "Hamester",
fg = HEX "ffffffff",
bg = HEX "ffa100ff",
},
redstoad = {
name = "RedsToad",
fg = HEX "ffffffff",
bg = HEX "da4044ff",
},
}
f(credits):each(function(v, k)
contributors["Roland_" .. k] = v contributors["Roland_" .. k] = v
-- G.ARGS.LOC_COLOURS["Bakery_credit_fg_Roland_" .. k] = v.fg
-- G.ARGS.LOC_COLOURS["Bakery_credit_bg_Roland_" .. k] = v.bg
end) end)
if not SMODS.Mods.DebugPlus or not SMODS.Mods.Roland.config.import_funky then if not SMODS.Mods.DebugPlus or not SMODS.Mods.Roland.config.import_funky then
@ -65,6 +29,7 @@ f {
"challenge", "challenge",
"spectral", "spectral",
"edition", "edition",
"voucher",
"tweaks", "tweaks",
"blind", "blind",
"charm", "charm",
@ -73,16 +38,13 @@ f {
"back", "back",
"seal", "seal",
"tag", "tag",
"voucher",
}:each(function(v) }:each(function(v)
assert(SMODS.load_file("src/" .. v .. ".lua"))(qol) assert(SMODS.load_file("src/" .. v .. ".lua"))(qol)
end) end)
if Balatest then local _ = Balatest and f {"joker", "blind", "spectral"}:each(function(v)
f {"joker", "blind", "spectral"}:each(function(v)
assert(SMODS.load_file("src/tests/" .. v .. ".tests.lua"))(qol) assert(SMODS.load_file("src/tests/" .. v .. ".tests.lua"))(qol)
end) end)
end
local function toggle(id) local function toggle(id)
return create_toggle { return create_toggle {
@ -93,6 +55,7 @@ local function toggle(id)
} }
end end
SMODS.current_mod.qol = qol
local animated = SMODS.Mods.Roland.config.animated_icon local animated = SMODS.Mods.Roland.config.animated_icon
SMODS.Atlas { SMODS.Atlas {
@ -127,5 +90,3 @@ function SMODS.current_mod.config_tab()
}}, }},
} }
end end
SMODS.current_mod.qol = qol