Skip to content

Commit 8217610

Browse files
authored
Merge pull request #27 from Joglacraft/dev
Fixed many, many of my goofs...
2 parents 4c2b6b3 + 861a696 commit 8217610

5 files changed

Lines changed: 13 additions & 8 deletions

File tree

content/aux_functions.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function FG.alternate_card(key,card,table)
4141
key = tostring(convert_to),
4242
})
4343
if card.edition then
44-
FG.update_edition(new_card)
44+
FG.update_edition(card,new_card)
4545
end
4646
card:start_dissolve(nil,false,0,true)
4747
end
@@ -69,11 +69,11 @@ end
6969

7070
-- Transfers the edition from the old card to the new card.
7171
-- card is the card object of which the edition has to be updated.
72-
function FG.update_edition(card)
73-
if card.edition then
74-
card:set_edition(tostring(card.edition.key),true,true)
72+
function FG.update_edition(old_card,new_card)
73+
if old_card.edition then
74+
new_card:set_edition(tostring(old_card.edition.key),true,true)
7575
else
76-
card:set_edition(nil,true,true)
76+
new_card:set_edition(nil,true,true)
7777
end
7878
end
7979

content/jokers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ SMODS.Joker {
469469
key = 'joker',
470470
config = { extra = { mult = 0.5 } },
471471
loc_vars = function(self, info_queue, card)
472-
info_queue[#info_queue + 1] = G.P_CENTERS['j_joker']
472+
--info_queue[#info_queue + 1] = G.P_CENTERS['j_joker']
473473
return { vars = { card.ability.extra.mult } }
474474
end,
475475
rarity = "fg_common",

content/test.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FG.test = {}
2+
-- Test any variables and functions here, under FG.test

fools_gambit.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"priority": 0,
1010
"badge_colour": "6fa0e8",
1111
"badge_text_colour": "e6eaf0",
12-
"version": "0.1.0-pre4",
12+
"version": "0.1.0-pre5",
1313
"dependencies": [
1414
"Steamodded (>=1.*)",
1515
"Lovely (>=0.6)"

main.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FG = {}
22
FG.config = SMODS.current_mod.config
3+
FG.config.version = SMODS.current_mod.version
34

45
-- This is in preparation for file splitting. I'll do that later. - Jogla
56
-- im splitting jokers and stuff into sections to make this easier later - jenku
@@ -11,7 +12,8 @@ local mod_contents = {
1112
"booster_packs",
1213
"rarities",
1314
"vouchers",
14-
"enhancements"
15+
"enhancements",
16+
"test"
1517
}
1618

1719
for k, v in pairs(mod_contents) do -- Load this mod's files
@@ -52,6 +54,7 @@ SMODS.current_mod.extra_tabs = function()
5254
}, nodes = {
5355
-- work your UI wizardry here, see 'Building a UI' page
5456
{n = G.UIT.R, config = {align = "tm"}, nodes = {{n = G.UIT.T, config = {text = "Fool's Gambit", colour = G.C.PURPLE, scale = .7}}}},
57+
{n = G.UIT.R, config = {align = "tm"}, nodes = {{n = G.UIT.T, config = {text = tostring("Version: "..FG.config.version), colour = G.C.GREY, scale = .3}}}},
5558
{n = G.UIT.R, config = {align = "tm", minh = .2}},
5659
{n = G.UIT.R, config = {align = "tm"}, nodes = {{n = G.UIT.T, config = {text = "Lead developer", colour = G.C.GOLD, scale = .5}}}},
5760
{n = G.UIT.R, config = {align = "tm"}, nodes = {{n = G.UIT.T, config = {text = "GoldenLeaf", colour = G.C.WHITE, scale = .3}}}},

0 commit comments

Comments
 (0)