Skip to content

Commit 2549e4d

Browse files
committed
add the repulsor
1 parent 6ab9ee7 commit 2549e4d

File tree

5 files changed

+72
-1
lines changed

5 files changed

+72
-1
lines changed

assets/1x/bl_cry_two.png

2.37 KB
Loading

assets/2x/bl_cry_two.png

4.29 KB
Loading

items/blind.lua

Lines changed: 55 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,7 @@ local decision = {
766766
max = 666666,
767767
},
768768
atlas = "blinds",
769-
order = 22,
769+
order = 23,
770770
boss_colour = HEX("474931"),
771771
get_loc_debuff_text = function(self)
772772
return localize("cry_blind_baneful_pack")
@@ -832,6 +832,59 @@ local decision = {
832832
G.GAME.cry_fastened = nil
833833
end,
834834
}
835+
836+
837+
local repulsor = {
838+
dependencies = {
839+
items = {
840+
"set_cry_blind",
841+
},
842+
},
843+
mult = 2,
844+
object_type = "Blind",
845+
name = "cry-repulsor",
846+
key = "repulsor",
847+
pos = { x = 0, y = 0 },
848+
dollars = 5,
849+
boss = {
850+
min = 4,
851+
max = 666666,
852+
},
853+
atlas = "blinds_two",
854+
order = 24,
855+
boss_colour = HEX("7c5798"),
856+
calculate = function(self, blind, context)
857+
if not G.GAME.blind.disabled then
858+
if context.before then
859+
for i, v in pairs(G.jokers.cards) do
860+
if v ~= G.jokers.cards[1] and v ~= G.jokers.cards[#G.jokers.cards] then
861+
if not v.debuff then
862+
G.GAME.blind.triggered = true
863+
v.debuff = true
864+
v.debuff_from_repulsor = true
865+
end
866+
end
867+
end
868+
end
869+
if context.retrigger_joker_check and not context.retrigger_joker then
870+
if context.other_card == G.jokers.cards[1] or context.other_card == G.jokers.cards[#G.jokers.cards] then
871+
return {
872+
repetitions = 1,
873+
}
874+
end
875+
end
876+
if context.after then
877+
for i, v in pairs(G.jokers.cards) do
878+
if v.debuff_from_repulsor then
879+
v.debuff = nil
880+
v.debuff_from_repulsor = true
881+
end
882+
end
883+
end
884+
end
885+
end,
886+
}
887+
835888
--It seems Showdown blind order is seperate from normal blind collection order? convenient for me at least
836889
--Nvm they changed it
837890
local lavender_loop = {
@@ -1609,6 +1662,7 @@ local items_togo = {
16091662
pin,
16101663
scorch,
16111664
greed,
1665+
repulsor,
16121666
vermillion_virus,
16131667
tornado,
16141668
sapphire_stamp,

lib/content.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,15 @@ SMODS.Atlas({
717717
py = 34,
718718
frames = 21,
719719
})
720+
--splitting these up because like more than 20 on one atlas is a crime
721+
SMODS.Atlas({
722+
key = "blinds_two",
723+
atlas_table = "ANIMATION_ATLAS",
724+
path = "bl_cry_two.png",
725+
px = 34,
726+
py = 34,
727+
frames = 21,
728+
})
720729
SMODS.Atlas({
721730
key = "nostalgia",
722731
atlas_table = "ANIMATION_ATLAS",

localization/en-us.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,14 @@ return {
405405
"per $#1# when selected",
406406
},
407407
},
408+
bl_cry_repulsor = {
409+
name = "The Repulsor",
410+
text = {
411+
"Retrigger rightmost and",
412+
"leftmost Jokers, all other",
413+
"Jokers do not trigger",
414+
},
415+
},
408416
bl_cry_pinkbow = {
409417
name = "Pink Bow",
410418
text = {

0 commit comments

Comments
 (0)