Skip to content

Commit 9586666

Browse files
committed
add the chromatic
1 parent e3827ae commit 9586666

File tree

5 files changed

+40
-0
lines changed

5 files changed

+40
-0
lines changed

assets/1x/bl_cry_two.png

2.64 KB
Loading

assets/2x/bl_cry_two.png

3.69 KB
Loading

items/blind.lua

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,34 @@ local repulsor = {
884884
end,
885885
}
886886

887+
local chromatic = {
888+
dependencies = {
889+
items = {
890+
"set_cry_blind",
891+
},
892+
},
893+
mult = 2,
894+
object_type = "Blind",
895+
name = "cry-chromatic",
896+
key = "chromatic",
897+
pos = { x = 0, y = 1 },
898+
dollars = 5,
899+
boss = {
900+
min = 1,
901+
max = 666666,
902+
},
903+
atlas = "blinds_two",
904+
order = 25,
905+
boss_colour = HEX("a34f98"),
906+
cry_modify_score = function(self, score)
907+
if math.floor(G.GAME.current_round.hands_played + 1) % 2 == 1 then
908+
return score * -1
909+
else
910+
return score
911+
end
912+
end,
913+
}
914+
887915
--It seems Showdown blind order is seperate from normal blind collection order? convenient for me at least
888916
--Nvm they changed it
889917
local lavender_loop = {
@@ -1670,5 +1698,6 @@ local items_togo = {
16701698
lavender_loop,
16711699
trophy,
16721700
decision,
1701+
chromatic
16731702
}
16741703
return { name = "Blinds", items = items_togo }

lib/misc.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,9 @@ end
621621
function Blind:cry_cap_score(score)
622622
if not self.disabled then
623623
local obj = self.config.blind
624+
if obj.cry_modify_score and type(obj.cry_modify_score) == "function" then
625+
score = obj:cry_modify_score(score)
626+
end
624627
if obj.cry_cap_score and type(obj.cry_cap_score) == "function" then
625628
return obj:cry_cap_score(score)
626629
end

localization/en-us.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,14 @@ return {
413413
"Jokers do not trigger",
414414
},
415415
},
416+
bl_cry_chromatic = {
417+
name = "The Chromatic",
418+
text = {
419+
"Hand score is",
420+
"subtracted on",
421+
"odd numbered hands"
422+
},
423+
},
416424
bl_cry_pinkbow = {
417425
name = "Pink Bow",
418426
text = {

0 commit comments

Comments
 (0)