Skip to content

Commit 44dbf2c

Browse files
committed
weird value manipulation bug with 1 values
1 parent 3790ac2 commit 44dbf2c

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

lib/misprintize.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -532,16 +532,16 @@ function Cryptid.manipulate_value(num, args, is_big, name)
532532
)
533533
if args.type == "+" then
534534
if to_big(num) ~= to_big(0) and to_big(num) ~= to_big(1) then
535-
num = to_big(num) + to_big(new_value)
535+
num = num + new_value
536536
end
537537
elseif args.type == "X" then
538538
if
539539
to_big(num) ~= to_big(0) and (to_big(num) ~= to_big(1) or (name ~= "x_chips" and name ~= "x_mult"))
540540
then
541-
num = to_big(num) * to_big(new_value)
541+
num = num * new_value
542542
end
543543
elseif args.type == "^" then
544-
num = to_big(num) ^ to_big(new_value)
544+
num = to_big(num) ^ new_value
545545
elseif args.type == "hyper" then
546546
if to_big(num) ~= to_big(0) and to_big(num) ~= to_big(1) then
547547
num = to_big(num):arrow(args.value.arrows, to_big(new_value))
@@ -550,16 +550,16 @@ function Cryptid.manipulate_value(num, args, is_big, name)
550550
elseif args.value then
551551
if args.type == "+" then
552552
if to_big(num) ~= to_big(0) and to_big(num) ~= to_big(1) then
553-
num = to_big(num) + to_big(args.value)
553+
num = num + to_big(args.value)
554554
end
555555
elseif args.type == "X" then
556556
if
557557
to_big(num) ~= to_big(0) and (to_big(num) ~= to_big(1) or (name ~= "x_chips" and name ~= "x_mult"))
558558
then
559-
num = to_big(num) * to_big(args.value)
559+
num = num * args.value
560560
end
561561
elseif args.type == "^" then
562-
num = to_big(num) ^ to_big(args.value)
562+
num = to_big(num) ^ args.value
563563
elseif args.type == "hyper" then
564564
num = to_big(num):arrow(args.value.arrows, to_big(args.value.height))
565565
end

lovely/code.toml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -781,13 +781,4 @@ position = "at"
781781
payload = '''
782782
for k, v in pairs(SMODS.PokerHands[key] or {}) do
783783
'''
784-
match_indent = true
785-
786-
[[patches]]
787-
[patches.pattern]
788-
target = "functions/common_events.lua"
789-
pattern = "if G.GAME.hands[h].played > 0 then"
790-
position = "at"
791-
payload = '''
792-
'''
793-
match_indent = true
784+
match_indent = true

0 commit comments

Comments
 (0)