-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathutilCommands.txt
More file actions
66 lines (50 loc) · 1.83 KB
/
utilCommands.txt
File metadata and controls
66 lines (50 loc) · 1.83 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
//to list the edition for each card in the hand
for _, jokerCard in ipairs(G.your_collection[1]) do
print(jokerCard.edition)
end
// to load a function while debugging Balatro, run the following
eval local function forceEditionCollectionView(s)
for _, jokerCard in ipairs(G.your_collection[1].cards) do
jokerCard:set_edition(s, true)
end
for _, jokerCard in ipairs(G.your_collection[2].cards) do
jokerCard:set_edition(s, true)
end
for _, jokerCard in ipairs(G.your_collection[3].cards) do
jokerCard:set_edition(s, true)
end
end
//this then allows us to open the collection joker view and run the following to see how a given shaders edition looks on each card
eval forceEditionCollectionView("e_Fox_ghostRare")
eval forceEditionCollectionView("e_Fox_goldRare")
// to monitor a shader file for real time changes, great for debugging
watch shader Mods/FickleFox/assets/shaders/glimmer3.fs
watch shader Mods/FickleFox/assets/shaders/ghostRare.fs
// random helper functions
function StartsWith(String, Start)
return string.sub(String, 1, string.len(Start)) == Start
end
function string.starts(String, Start)
return string.sub(String, 1, string.len(Start)) == Start
end
function getResourceWithPrefix(s)
local results = {}
for k, v in pairs(G.P_CENTERS) do
if StartsWith(k, s) then --and k.unlocked == true then
print(k)
table.insert(results, k)
end
end
return results
end
local getEditions = getResourceWithPrefix("e_")
print(getEditions[2] .. " e")
for index, value in ipairs(getEditions) do
local ed = G.P_CENTERS[value]
local w = ed.weight or 1
print("This edition is " .. value .. " weight = " .. w)-- .. ed.weight or 1)
end
//ref - how to add a tag to a commit
v 0.5.0 - Half Moon Release
git tag v0.5 -a -m "Half-Moon Release v0.5"
git push origin --tags