Skip to content

Commit 729470b

Browse files
authored
pretend this is merging a pull request
github why are you tweaking
1 parent 11aa917 commit 729470b

1 file changed

Lines changed: 168 additions & 0 deletions

File tree

content/jokers.lua

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ joker_equivalents = {
5454
["j_family"] = "j_fg_family",
5555
["j_order"] = "j_fg_order",
5656
["j_loyalty_card"] = "j_fg_loyalty",
57+
["j_greedy_joker"] = "j_fg_greedy",
58+
["j_lusty_joker"] = "j_fg_lusty",
59+
["j_wrathful_joker"] = "j_fg_wrathful",
60+
["j_gluttenous_joker"] = "j_fg_gluttenous",
5761
}
5862

5963
--
@@ -988,6 +992,170 @@ SMODS.Joker {
988992
end
989993
}
990994

995+
SMODS.Joker {
996+
key = 'greedy',
997+
loc_txt = {
998+
name = 'Greedy Joker?',
999+
text = {
1000+
"Each played card with {C:diamonds}Diamond{} suit",
1001+
"temporarily gains {C:mult}+#1#{} mult, resets",
1002+
"when {C:attention}Boss Blind{} is defeated",
1003+
"{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult)",
1004+
}
1005+
},
1006+
config = { extra = { mult_gain = 1, currentMult = 0 } },
1007+
rarity = 1,
1008+
cost = 0,
1009+
atlas = 'jokers_alt',
1010+
pos = { x = 6, y = 1 },
1011+
loc_vars = function(self, info_queue, card)
1012+
return { vars = { card.ability.extra.mult_gain, card.ability.extra.currentMult }}
1013+
end,
1014+
calculate = function(self, card, context)
1015+
if context.cardarea == G.play and context.individual then
1016+
playingCard = context.other_card
1017+
if playingCard:is_suit('Diamonds') then
1018+
card.ability.extra.currentMult = card.ability.extra.currentMult + card.ability.extra.mult_gain
1019+
return {
1020+
message = "Increased!"
1021+
}
1022+
end
1023+
end
1024+
if context.joker_main and card.ability.extra.currentMult > 0 then
1025+
return {
1026+
mult = card.ability.extra.currentMult
1027+
}
1028+
end
1029+
if context.end_of_round and G.GAME.blind.boss and context.cardarea ~= G.hand then
1030+
card.ability.extra.currentMult = 0
1031+
card_eval_status_text(card, 'extra', nil, nil, nil, { message = "Reset!"})
1032+
end
1033+
end
1034+
}
1035+
1036+
SMODS.Joker {
1037+
key = 'lusty',
1038+
loc_txt = {
1039+
name = 'Lusty Joker?',
1040+
text = {
1041+
"Each played card with {C:hearts}Heart{} suit",
1042+
"temporarily gains {C:mult}+#1#{} mult, resets",
1043+
"when {C:attention}Boss Blind{} is defeated",
1044+
"{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult)",
1045+
}
1046+
},
1047+
config = { extra = { mult_gain = 1, currentMult = 0 } },
1048+
rarity = 1,
1049+
cost = 0,
1050+
atlas = 'jokers_alt',
1051+
pos = { x = 7, y = 1 },
1052+
loc_vars = function(self, info_queue, card)
1053+
return { vars = { card.ability.extra.mult_gain, card.ability.extra.currentMult }}
1054+
end,
1055+
calculate = function(self, card, context)
1056+
if context.cardarea == G.play and context.individual then
1057+
playingCard = context.other_card
1058+
if playingCard:is_suit('Hearts') then
1059+
card.ability.extra.currentMult = card.ability.extra.currentMult + card.ability.extra.mult_gain
1060+
return {
1061+
message = "Increased!"
1062+
}
1063+
end
1064+
end
1065+
if context.joker_main and card.ability.extra.currentMult > 0 then
1066+
return {
1067+
mult = card.ability.extra.currentMult
1068+
}
1069+
end
1070+
if context.end_of_round and G.GAME.blind.boss and context.cardarea ~= G.hand then
1071+
card.ability.extra.currentMult = 0
1072+
card_eval_status_text(card, 'extra', nil, nil, nil, { message = "Reset!"})
1073+
end
1074+
end
1075+
}
1076+
1077+
SMODS.Joker {
1078+
key = 'wrathful',
1079+
loc_txt = {
1080+
name = 'Wrathful Joker?',
1081+
text = {
1082+
"Each played card with {C:spades}Spade{} suit",
1083+
"temporarily gains {C:mult}+#1#{} mult, resets",
1084+
"when {C:attention}Boss Blind{} is defeated",
1085+
"{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult)",
1086+
}
1087+
},
1088+
config = { extra = { mult_gain = 1, currentMult = 0 } },
1089+
rarity = 1,
1090+
cost = 0,
1091+
atlas = 'jokers_alt',
1092+
pos = { x = 8, y = 1 },
1093+
loc_vars = function(self, info_queue, card)
1094+
return { vars = { card.ability.extra.mult_gain, card.ability.extra.currentMult }}
1095+
end,
1096+
calculate = function(self, card, context)
1097+
if context.cardarea == G.play and context.individual then
1098+
playingCard = context.other_card
1099+
if playingCard:is_suit('Spades') then
1100+
card.ability.extra.currentMult = card.ability.extra.currentMult + card.ability.extra.mult_gain
1101+
return {
1102+
message = "Increased!"
1103+
}
1104+
end
1105+
end
1106+
if context.joker_main and card.ability.extra.currentMult > 0 then
1107+
return {
1108+
mult = card.ability.extra.currentMult
1109+
}
1110+
end
1111+
if context.end_of_round and G.GAME.blind.boss and context.cardarea ~= G.hand then
1112+
card.ability.extra.currentMult = 0
1113+
card_eval_status_text(card, 'extra', nil, nil, nil, { message = "Reset!"})
1114+
end
1115+
end
1116+
}
1117+
1118+
SMODS.Joker {
1119+
key = 'gluttenous',
1120+
loc_txt = {
1121+
name = "Gluttonous Joker?",
1122+
text = {
1123+
"Each played card with {C:clubs}Club{} suit",
1124+
"temporarily gains {C:mult}+#1#{} mult, resets",
1125+
"when {C:attention}Boss Blind{} is defeated",
1126+
"{C:inactive}(Currently {C:mult}+#2#{C:inactive} Mult)",
1127+
}
1128+
},
1129+
config = { extra = { mult_gain = 1, currentMult = 0 } },
1130+
rarity = 1,
1131+
cost = 0,
1132+
atlas = 'jokers_alt',
1133+
pos = { x = 9, y = 1 },
1134+
loc_vars = function(self, info_queue, card)
1135+
return { vars = { card.ability.extra.mult_gain, card.ability.extra.currentMult }}
1136+
end,
1137+
calculate = function(self, card, context)
1138+
if context.cardarea == G.play and context.individual then
1139+
playingCard = context.other_card
1140+
if playingCard:is_suit('Clubs') then
1141+
card.ability.extra.currentMult = card.ability.extra.currentMult + card.ability.extra.mult_gain
1142+
return {
1143+
message = "Increased!"
1144+
}
1145+
end
1146+
end
1147+
if context.joker_main and card.ability.extra.currentMult > 0 then
1148+
return {
1149+
mult = card.ability.extra.currentMult
1150+
}
1151+
end
1152+
if context.end_of_round and G.GAME.blind.boss and context.cardarea ~= G.hand then
1153+
card.ability.extra.currentMult = 0
1154+
card_eval_status_text(card, 'extra', nil, nil, nil, { message = "Reset!"})
1155+
end
1156+
end
1157+
}
1158+
9911159
----------- Collectives
9921160

9931161
SMODS.Joker {

0 commit comments

Comments
 (0)