Skip to content

Commit 8b2e7f3

Browse files
committed
idk why i didnt do this before
1 parent 8316802 commit 8b2e7f3

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/misprintize.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,20 +540,27 @@ function Cryptid.manipulate_value(num, args, is_big, name)
540540
then
541541
num = to_big(num) * to_big(new_value)
542542
end
543+
elseif args.type == "^" then
544+
num = to_big(num) ^ to_big(new_value)
543545
elseif args.type == "hyper" then
544546
if to_big(num) ~= to_big(0) and to_big(num) ~= to_big(1) then
545547
num = to_big(num):arrow(args.value.arrows, to_big(new_value))
546548
end
547549
end
548550
elseif args.value then
549551
if args.type == "+" then
550-
num = to_big(num) + to_big(args.value)
552+
if to_big(num) ~= to_big(0) and to_big(num) ~= to_big(1) then
553+
num = to_big(num) + to_big(args.value)
554+
end
551555
elseif args.type == "X" then
552556
if
553557
to_big(num) ~= to_big(0) and (to_big(num) ~= to_big(1) or (name ~= "x_chips" and name ~= "x_mult"))
554558
then
555559
num = to_big(num) * to_big(args.value)
556560
end
561+
elseif args.type == "^" then
562+
num = to_big(num) ^ to_big(args.value)
563+
end
557564
elseif args.type == "hyper" then
558565
num = to_big(num):arrow(args.value.arrows, to_big(args.value.height))
559566
end

0 commit comments

Comments
 (0)