Skip to content

Commit 2db312d

Browse files
committed
raido rune
1 parent 4dc1314 commit 2db312d

File tree

7 files changed

+60
-1
lines changed

7 files changed

+60
-1
lines changed

assets/1x/rune_indicators.png

166 Bytes
Loading

assets/1x/runes.png

923 Bytes
Loading

assets/2x/rune_indicators.png

144 Bytes
Loading

assets/2x/runes.png

906 Bytes
Loading

items/misc/runes.lua

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,27 @@ function Entropy.create_rune(key, pos, indicator_key, order, credits, loc_vars)
375375
}
376376
end
377377

378+
local raido = Entropy.create_rune("raido", {x=4,y=0}, "rune_entr_raido", 6005)
379+
local raido_indicator = {
380+
object_type = "RuneTag",
381+
order = 7005,
382+
key = "raido",
383+
atlas = "rune_atlas",
384+
pos = {x=4,y=0},
385+
atlas = "rune_indicators",
386+
dependencies = {items = {"set_entr_runes"}},
387+
calculate = function(self, rune, context)
388+
if context.entr_ante_change then
389+
return {
390+
ante_mod = G.GAME.providence and -context.entr_ante_change or 0,
391+
func = function()
392+
return true
393+
end,
394+
}
395+
end
396+
end
397+
}
398+
378399
local kaunan = Entropy.create_rune("kaunan", {x=5,y=0}, "rune_entr_kaunan", 6006)
379400
local kaunan_indicator = {
380401
object_type = "RuneTag",
@@ -535,6 +556,7 @@ local jera_indicator = {
535556

536557
return {
537558
items = {
559+
raido, raido_indicator,
538560
kaunan, kaunan_indicator,
539561
gebo, gebo_indicator,
540562
naudiz, naudiz_indicator,

lib/hooks.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,6 +1717,16 @@ function ease_ante(mod)
17171717
end
17181718
end
17191719
end
1720+
for i, v in pairs(G.GAME.runes or {}) do
1721+
local ret = G.P_RUNES[v.key]:calculate(v, {entr_ante_change = mod})
1722+
if ret and ret.ante_mod then
1723+
v:yep("+", G.C.DARK_EDITION, function()
1724+
return true
1725+
end)
1726+
mod = ret.ante_mod
1727+
break;
1728+
end
1729+
end
17201730
ease_anteref(mod * mult, a)
17211731
end
17221732
end

localization/en-us.lua

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2626,6 +2626,20 @@ local decs = {
26262626
},
26272627
},
26282628
["Rune Tag"] = {
2629+
rune_entr_raido = {
2630+
name = "Raido",
2631+
text = {
2632+
"Cancels the next",
2633+
"change of Ante",
2634+
}
2635+
},
2636+
rune_entr_raido_providence = {
2637+
name = "Raido{C:purple}+{}",
2638+
text = {
2639+
"{C:purple,E:1}Inverts{} the next",
2640+
"change of Ante",
2641+
}
2642+
},
26292643
rune_entr_kaunan = {
26302644
name = "Kaunan",
26312645
text = {
@@ -2695,7 +2709,20 @@ local decs = {
26952709
},
26962710
},
26972711
Rune = {
2698-
2712+
c_entr_raido = {
2713+
name = "Rune of Raido",
2714+
text = {
2715+
"The next {C:attention}change{} in",
2716+
"Ante is cancelled out"
2717+
}
2718+
},
2719+
c_entr_raido_providence = {
2720+
name = "Rune of Raido{C:purple}+{}",
2721+
text = {
2722+
"The next {C:attention}change{} in",
2723+
"Ante is {C:purple,E:1}Inverted{}"
2724+
}
2725+
},
26992726
c_entr_kaunan = {
27002727
name = "Rune of Kaunan",
27012728
text = {

0 commit comments

Comments
 (0)